很奇怪的问题. 主 修改了 serial .然后重启, 域名解释正常了, 但 nslookup 域名 从的 时候 .却是解释不出来.查看了下从的 zone 文件. 数据已经同步过来了. 却就是不解释.然后重启 从 以后 解释又正常了. 难道每次修改了主 以后 要重启 主和从?? 太麻烦了.
后来发现两个服务器的 时间不准备
然后更正服务器时间
修改时区:
首先 rm /etc/localtime
找到相应的时区文件 /usr/share/zoneinfo/Asia/Shanghai替换当前的/etc/localtime。
修改/etc/sysconfig/clock文件的内容为:
ZONE=”Asia/Shanghai”
UTC=false
ARC=false
然后修改时间
date -s 10:18:00
然后再测试同步问题,就正常了.呵呵查看了下日志
看下 主的日志部分
17-Aug-2010 06:10:11.249 xfer-out: info: client 192.168.1.201#54541: view other_ww: transfer of 'baidu.com/IN': AXFR-style IXFR started 17-Aug-2010 06:10:11.251 notify: info: client 192.168.1.200#52977: view other_ww: received notify for zone '1.168.192.in-addr.arpa' 17-Aug-2010 06:10:11.252 notify: info: client 192.168.1.200#52977: view other_ww: received notify for zone 'baidu.com' 17-Aug-2010 06:10:11.252 xfer-out: info: client 192.168.1.201#54541: view other_ww: transfer of 'baidu.com/IN': AXFR-style IXFR ended 17-Aug-2010 06:10:11.731 notify: info: client 192.168.1.201#45374: view other_ww: received notify for zone 'baidu.com'
再看下从 的日志
17-Aug-2010 10:04:31.099 general: info: zone baidu.com/IN/other_ww: Transfer started. 17-Aug-2010 10:04:31.099 xfer-in: info: transfer of 'baidu.com/IN' from 192.168.1.200#53: connected using 192.168.1.201#54541 17-Aug-2010 10:04:31.100 notify: info: client 192.168.1.200#52977: view other_ww: received notify for zone 'baidu.com' 17-Aug-2010 10:04:31.100 general: info: zone baidu.com/IN/other_ww: notify from 192.168.1.200#52977: refresh in progress, refresh check queued 17-Aug-2010 10:04:31.106 general: info: zone baidu.com/IN/other_ww: transferred serial 599 17-Aug-2010 10:04:31.106 xfer-in: info: transfer of 'baidu.com/IN' from 192.168.1.200#53: end of transfer 17-Aug-2010 10:04:31.106 notify: info: zone baidu.com/IN/other_ww: sending notifies (serial 599) 17-Aug-2010 10:04:31.584 notify: info: client 192.168.1.201#45374: view other_ww: received notify for zone 'baidu.com' 17-Aug-2010 10:04:31.585 general: info: zone baidu.com/IN/other_ww: refused notify from non-master: 192.168.1.201#45374
看到了 xfer-in 和 xfer-out 证明 主从通讯很正常了.