搭建的主dns可以正常工作。
辅助dns配置文件
zone "huting.com" IN {
type slave;
file "slaves/huting.com.zone";
masters{ 192.168.137.100; };
};
zone "137.168.192.in-addr.arpa" IN {
type slave;
file "slaves/huting.local";
masters{ 192.168.137.100; };
};
include "/etc/rndc.key";
主dns服务器配置文件:
zone "huting.com" IN {
type master;
file "huting.com.zone";
allow-update { none; };
allow-transfer { 192.168.137.150; };
};
zone "137.168.192.in-addr.arpa" IN {
type master;
file "huting.local";
allow-update { none; };
allow-transfer { 192.168.137.150; } ;
};
include "/etc/rndc.key";
在辅助dns服务器上看 [root@localhost named]# cat /var/log/messages | grep named
May 6 16:54:01 localhost named[3604]: dumping master file: slaves/tmp-XXXXk2Le89: open: file not found
May 6 16:54:01 localhost named[3604]: transfer of '137.168.192.in-addr.arpa/IN' from 192.168.137.100#53: failed while receiving responses: file not found
May 6 16:54:01 localhost named[3604]: transfer of '137.168.192.in-addr.arpa/IN' from 192.168.137.100#53: end of transfer
在主dns服务器上看[root@localhost named]# cat /var/log/messages | grep named
May 6 16:50:10 localhost named[3214]: client 192.168.137.150#32785: transfer of 'huting.com/IN': AXFR started
May 6 16:53:33 localhost named[3214]: client 192.168.137.150#32786: transfer of '137.168.192.in-addr.arpa/IN': AXFR started
不知道是那里出错了,请各位多多指教。
mask宇 于 2012-05-20 00:31:18发表:
应该是 辅DNS 的 slaves文件夹的权限问题吧 。
以前我也出现过 ls slaves 没有文件 后来也没怎么管
现在回想起来应该 给slaves 加个权限就可以了
我是这么理解的。
likeLx 于 2012-05-10 14:20:27发表:
具体说说是怎么回事?
hackhu 于 2012-05-07 14:04:19发表:
呵呵!我已经搞定啦,是这个slaves文件夹的问题。