假设server11192.168.0.111】为主DNS, host11192.168.0.210】为辅助DNS

DNS上的配置:

# vim /etc/named.conf

options {

allow-transfer { 192.168.0.210; };。。。。将文件备份到192.168.0.210

also-notify { 192.168.0.210; };。。。。实时同步

allow-query { any; }; 。。。。。。。。允许任何机子使用该DNS

};

DNS上的配置:

# vim /e/tc/named.conf

options {

listen-on port 53 { any; };。。。。。。。。。监听该端口

};

zone “ yyn.org” IN {

type slave;

masters { 192.168.0.111}

file “slaves/yyn.org.zone”;

allow-update { any; };

};

# vim /e/tc/named.rfc1912.zones

zone “ 0.168.192.in-addr.arpa” IN {

type slave;

masters { 192.168.0.111}

file “slaves/yyn.org.local”;

allow-update { none; };

};

# /etc/init.d/named restart

# cd /var/named/slaves

可以看到同步过来的文件 yyn.org.localyyn.org.zone