Chinaunix

标题: linux bind主辅DNS不能同步,即辅DNS不能同步主DNS配置文件 [打印本页]

作者: ysjomje    时间: 2013-01-30 19:48
标题: linux bind主辅DNS不能同步,即辅DNS不能同步主DNS配置文件
本帖最后由 ysjomje 于 2013-01-30 19:55 编辑

linux bind主辅DNS不能同步,即辅DNS不能同步主DNS配置文件,

在辅助DNS主机上 ../named/slaves下没有同步主配置文件:
[root@localhost slaves]# ll
total 0
[root@localhost slaves]# pwd
/var/named/chroot/var/named/slaves


日志如下:
[root@localhost slaves]# tail /var/log/messages
Jan 30 14:38:58 localhost named[6539]: transfer of 'example.com/IN' from 10.1.5.247#53: failed while receiving responses: NOTAUTH
Jan 30 14:38:58 localhost named[6539]: transfer of 'example.com/IN' from 10.1.5.247#53: end of transfer
Jan 30 14:42:24 localhost named[6539]: network unreachable resolving 'search.szfw.org/A/IN': 2001:503:ba3e::2:30#53
Jan 30 14:42:24 localhost named[6539]: network unreachable resolving 'search.szfw.org/A/IN': 2001:500:c::1#53
Jan 30 14:42:24 localhost named[6539]: network unreachable resolving 'search.szfw.org/A/IN': 2001:500:48::1#53
Jan 30 14:42:24 localhost named[6539]: network unreachable resolving 'search.szfw.org/A/IN': 2001:500:b::1#53
Jan 30 14:42:24 localhost named[6539]: network unreachable resolving 'search.szfw.org/A/IN': 2001:500:e::1#53
Jan 30 14:42:24 localhost named[6539]: network unreachable resolving 'search.szfw.org/A/IN': 2001:500:40::1#53
Jan 30 14:42:24 localhost named[6539]: network unreachable resolving 'search.szfw.org/A/IN': 2001:500:f::1#53
Jan 30 14:42:25 localhost named[6539]: network unreachable resolving 'bsch.serving-sys.com/A/IN': 2600:1406:1b::64#53

主配置文件:named.zones

     53 zone "example.com" IN {
     54              type master;
     55              file "example.com.zero";
     56              allow-update { none; };
     57              allow-transfer { 10.1.5.9; };
     58 //           allow-notify { 10.1.5.9; };
     59              notify yes;
     60              also-notify{ 10.1.5.9; };
     61      };
     62
     63      zone "5.1.10.in-addr.arpa" IN {
     64              type master;
     65              file "5.1.10.local";
     66              allow-transfer { 10.1.5.9; };
     67 //           allow-notify { 10.1.5.9; };
     68              notify yes;
     69              also-notify{ 10.1.5.9; };
"named.zones" 71L, 1544C written



辅DNS主机:named.zones


zone "example.com" IN {
        type slave;
        masters {10.1.5.247;};
        file "slaves/example.com.zero";
        allow-update { none; };
};

zone "5.1.10.in-addr.arpa" IN {
        type slave;
        masters {10.1.5.247;};
        file "slaves/5.1.10.local";
        allow-update { none; };
};






欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2