主DNS设置采用“linux简单DNS设置”中的配置,从DNS域为abc.wisp.com,ip地址为:192.168.100.3。
修改主DNS的/etc/named.conf文件,修改我们之前建立的正反解数据文件:
zone "wisp.com" IN {
type master;
file "named.wisp.com";
allow-transfer {192.168.100.3;};
};
zone "100.168.192.in-addr.arpa" IN {
type master;
file "named.192.168.100";
allow-transfer {192.168.100.3;};
};
编辑从DNS的/etc/named.conf文件:
zone "wisp.com" IN {
type slvae;
file "named.wisp.com";
master {192.168.100.1;};
};
zone "100.168.192.in-addr.arpa" IN {
type slave;
file "named.192.168.100";
master {192.168.100.1;};
};
保存!
注意:如果启动服务从DNS复制不了数据文件,就将从DNS的/var/named/chroot/var/named这个文件夹的权限设置成770,然后再重新启动!
查看日志记录:/var/log/messages