主服务器配置:
1.在/var/named/neo.zone里添加如下数据
...前面省略... SOA部分序号加大,其余不变
dep1.neo.com. IN NS dns.dep1.neo.com.
dns.dep1.neo.com. IN A 10.3.156.45
从服务器配置:
1.修改/etc/named.rfc1912.zones,假设文件名叫做dep1.neo.zone
zone "dep1.neo.com" IN {
type master;
file "dep1.neo.zone";
};
2.建立dep1.neo.zone
$TTL 86400
@ IN SOA dns.dep1.neo.com. root.neo.com. (
2013110901
2H
15M
1W
1D )
@ IN NS dns.dep1.neo.com.
dns IN A 10.3.156.45
www IN A 10.3.156.45
mail IN A 10.3.156.45
@ IN A 10.3.156.45
3.重启dns服务 service named restart