zone "." IN {
type hint;
file "named.ca";
};
include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";
二、named.rfc1912.zones文件
zone "localhost.localdomain" IN {
type master;
file "named.localhost";
allow-update {none;};
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.loopback";
allow-update {none;};
};
zone "13.7.10.in-addr.arpa" IN {
type master;
file "13.7.10.zone";
//allow-update { none; };
};
zone "test2.com" IN {
type master;
file "test2.com.zone";
};
zone "14.7.10.in-addr.arpa" IN {
type master;
file "14.7.10.zone";
};
三、named.ca 就不用說了吧,都一樣,沒更改其中的內(nèi)容
四、test2.com.zone 文件
$TTL 1D
@ IN SOA ns.test2.com. root (
1 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
@ IN NS ns.test2.com.
ns IN A 10.7.14.15
www IN A 10.7.14.15
五、14.7.10.zone 文件
$TTL 1D
@ IN SOA ns.test2.com. root (
12 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
@ IN NS ns.test2.com.
15 IN PTR ns.test2.com.
15 IN PTR www.test2.com.