一个dns的示例文件

/ns/wz/sys/data/20020801152005.htm

Client
#/etc/nsswitch.dns:
#
# An example file that could be copied over to /etc/nsswitch.conf; it uses
# DNS for hosts lookups, otherwise it does not use any other naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

passwd: files
group: files
# You must also set up the /etc/resolv.conf file for DNS name
# server lookup. See resolv.conf(4).
hosts: files dns
networks: files
protocols: files
rpc: files
ethers: files
netmasks: files
bootparams: files
publickey: files
# At present there isn't a 'files' backend for netgroup; the system will
# figure it out pretty quickly, and won't use netgroups at all.
netgroup: files
automount: files
aliases: files
services: files
sendmailvars: files
/etc/resolv.conf
domainunisat.com.cn.
;search211.94.192.66
search192.167.1.201
;nameserver211.94.129.66
nameserver192.167.1.201

server
/etc/named.conf
options {
directory "/var/named";

};


zone "unisat.com.cn" in {
type master;
file "unisat.host";
};

zone "131.94.211.in-addr.arpa" in {
type master;
file "unisat.rev";
};

zone "1.167.192.in-addr.arpa" in {
type master;
file "unisat.167.rev";
};

zone "1.168.192.in-addr.arpa" in {
type master;
file "unisat.rev1";
};

zone "0.0.127.in-addr.arpa" in {
type master;
file "unisat.local";
};

zone "." in {
type hint;
file "unisat.ca";
};
/var/named/unisat.host
@insoans.unisat.com.cn. root.ns.unisat.com.cn.(
001.02
10800
3600
43200
86400 )
innsns.unisat.com.cn.
unisat.com.cn.in mx 10mail.unisat.com.cn.
;unisat.com.cn.in mx 10192.167.1.202
;unisat.com.cn.in mx 211.94.131.33
;ns.unisat.com.cn. ina211.94.129.66
ns.unsat.com.cn.ina211.94.131.34
dell.unisat.com.cn.ina192.168.1.153
;unisat.unisat.com.cn.ina192.168.1.178
localhost.unisat.com.cn.ina127.0.0.1
;www.unisat.com.cn.ina211.94.129.65
;unisat.unisat.com.cn.ina211.94.129.65
www.unisat.com.cn.ina211.94.131.33
;unisat.unisat.com.cn.ina211.94.131.33
unisat.unisat.com.cn.ina192.167.1.202
incnamemail.unisat.com.cn.
mail.unisat.com.cn.ina211.94.131.33
;incnameunisat.unisat.com.cn.
/var/named/unisat.rev
@insoans.unisat.com.cn. root.ns.unisat.com.cn. (
001.00
10800
3600
43200
86400 )
innsns.unisat.com.cn.
34inptrns.unisat.com.cn.
33inptrwww.unisat.com.cn.
33inptrmail.unisat.com.cn.
/var/named/unisat.167.rev
@insoans.unisat.com.cn. root.ns.unisat.com.cn. (
001.00
10800
3600
43200
86400 )
innsns.unisat.com.cn.
;66inptrns.unisat.com.cn.
201inptrns.unisat.com.cn.
202inptrwww.unisat.com.cn.
202inptrunisat.unisat.com.cn.
202inptrmail.unisat.com.cn.
;178inptrunisat.unisat.com.
;65inptrwww.unisat.com.cn.
/var/named/unisat.rev1
@insoans.unisat.com.cn. root.ns.unisat.com.cn. (
001.00
10800
3600
43200
86400 )
innsns.unisat.com.cn.
;66inptrns.unisat.com.cn.
153inptrdell.unisat.com.cn.
;178inptrunisat.unisat.com.
;65inptrwww.unisat.com.cn.

/var/named/unisat.ca

;.inNSrealserver.unisat.com.
;realserver.unisat.com.inA211.94.129.66
. 3600000 IN NS A.ROOT-SERVERS.NET.
A.ROOT-SERVERS.NET. 3600000 A 198.41.0.4
;
. 3600000 NS B.ROOT-SERVERS.NET.
B.ROOT-SERVERS.NET. 3600000 A 128.9.0.107
;
. 3600000 NS C.ROOT-SERVERS.NET.
C.ROOT-SERVERS.NET. 3600000 A 192.33.4.12
;
. 3600000 NS D.ROOT-SERVERS.NET.
D.ROOT-SERVERS.NET. 3600000 A 128.8.10.90
;
. 3600000 NS E.ROOT-SERVERS.NET.
E.ROOT-SERVERS.NET. 3600000 A 192.203.230.10
;
. 3600000 NS F.ROOT-SERVERS.NET.
F.ROOT-SERVERS.NET. 3600000 A 192.5.5.241
;
. 3600000 NS G.ROOT-SERVERS.NET.
G.ROOT-SERVERS.NET. 3600000 A 192.112.36.4
;
. 3600000 NS H.ROOT-SERVERS.NET.
H.ROOT-SERVERS.NET. 3600000 A 128.63.2.53
;
. 3600000 NS I.ROOT-SERVERS.NET.
I.ROOT-SERVERS.NET. 3600000 A 192.36.148.17
;
. 3600000 NS J.ROOT-SERVERS.NET.
J.ROOT-SERVERS.NET. 3600000 A 198.41.0.10;
/var/named/unisat.local
;
@ IN SOA ns.unisat.com.cn.root.ns.unisat.com.cn. (
2001022501; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
86400 ) ; Minimum TTL of 1 day
IN NS ns.unisat.com.cn.
1INPTRlocalhost.