免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1704 | 回复: 0
打印 上一主题 下一主题

[DNS] bind 主从同步问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-12-13 16:14 |只看该作者 |倒序浏览
如题,我在测试机安装了两台bind做主从,实现视图和主从功能,发现从服务器同步过来的区文本文件内容怎么都是一样的。而日志又没错误,拿两个区文本文件做说明
主:
#cat cnc_hh.com.zone
$TTL    1D
@       IN      SOA     ns1.hh.com.  root.ns.hh.com.(
                                     2013111101 ;
                                     3H         ;
                                     15M        ;
                                     1W         ;
                                     1D )       ;
                                     IN NS      ns.hh.com.
;                                    IN NS      ns2.hh.com.
                                     IN MX 10   mail.hh.com.
;A recorder
@                                    IN A       2.2.2.1
ns1                                  IN A       192.168.50.171
;ns2                                 IN A       192.168.50.239
www                                  IN A       2.2.2.2
bbs                                  IN A       2.2.2.3
mail                                 IN A       2.2.2.4
sports                               IN A       2.2.2.5
;CNAME
;hh.com.                                     IN CNAME   www.hh.com.
bbx                                  IN CNAME   bbs
;
;end

##############################################
# cat telcom_hh.com.zone
$TTL    1D
@       IN      SOA     ns1.hh.com.  root.ns.hh.com.(
                                     2013111101 ;
                                     3H         ;
                                     15M        ;
                                     1W         ;
                                     1D )       ;
                                     IN NS      ns.hh.com.
;                                    IN NS      ns2.hh.com.
                                     IN MX 10   mail.hh.com.
;A recorder
@                                    IN A       3.3.3.1
ns1                                  IN A       192.168.50.171
;ns2                                 IN A       192.168.50.239
www                                  IN A       3.3.3.2
bbs                                  IN A       3.3.3.3
mail                                 IN A       3.3.3.4
sports                               IN A       3.3.3.5
;CNAME
;hh.com.                                     IN CNAME   www.hh.com.
bbx                                  IN CNAME   bbs
;
;end

同步到从服务器上,同一域名下都的文件内容都是第一个cnc_hh.com.zone 的内容,以下为从服务器message日志

Dec 13 16:05:33 localhost named[9523]: running
Dec 13 16:05:33 localhost named[9523]: zone hh.com/IN/view_cnc: Transfer started.
Dec 13 16:05:33 localhost named[9523]: transfer of 'hh.com/IN/view_cnc' from 192.168.5.11#53: connected using 192.168.5.7#35252
Dec 13 16:05:33 localhost named[9523]: zone hh.com/IN/view_cnc: transferred serial 2013111101: TSIG 'cnckey'
Dec 13 16:05:33 localhost named[9523]: transfer of 'hh.com/IN/view_cnc' from 192.168.5.11#53: Transfer completed: 1 messages, 11 records, 348 bytes, 0.002 secs (174000 bytes/sec)
Dec 13 16:05:33 localhost named[9523]: zone hh.com/IN/view_cnc: sending notifies (serial 2013111101)
Dec 13 16:05:34 localhost named[9523]: zone hh.net/IN/view_cnc: Transfer started.
Dec 13 16:05:34 localhost named[9523]: zone hh.com/IN/view_telcom: Transfer started.
Dec 13 16:05:34 localhost named[9523]: zone hh.net/IN/view_telcom: zone transfer deferred due to quota
Dec 13 16:05:34 localhost named[9523]: transfer of 'hh.net/IN/view_cnc' from 192.168.5.11#53: connected using 192.168.5.7#31612
Dec 13 16:05:34 localhost named[9523]: zone hh.com/IN/other: zone transfer deferred due to quota
Dec 13 16:05:34 localhost named[9523]: zone hh.net/IN/other: zone transfer deferred due to quota
Dec 13 16:05:34 localhost named[9523]: transfer of 'hh.com/IN/view_telcom' from 192.168.5.11#53: connected using 192.168.5.7#39790
Dec 13 16:05:34 localhost named[9523]: zone hh.net/IN/view_cnc: transferred serial 2013111201: TSIG 'cnckey'
Dec 13 16:05:34 localhost named[9523]: zone hh.net/IN/view_telcom: Transfer started.
Dec 13 16:05:34 localhost named[9523]: transfer of 'hh.net/IN/view_cnc' from 192.168.5.11#53: Transfer completed: 1 messages, 12 records, 376 bytes, 0.001 secs (376000 bytes/sec)
Dec 13 16:05:34 localhost named[9523]: zone hh.net/IN/view_cnc: sending notifies (serial 2013111201)
Dec 13 16:05:34 localhost named[9523]: zone hh.com/IN/view_telcom: transferred serial 2013111101: TSIG 'telcomkey'
Dec 13 16:05:34 localhost named[9523]: zone hh.com/IN/other: Transfer started.
Dec 13 16:05:34 localhost named[9523]: transfer of 'hh.com/IN/view_telcom' from 192.168.5.11#53: Transfer completed: 1 messages, 11 records, 351 bytes, 0.002 secs (175500 bytes/sec)
Dec 13 16:05:34 localhost named[9523]: zone hh.com/IN/view_telcom: sending notifies (serial 2013111101)
Dec 13 16:05:34 localhost named[9523]: transfer of 'hh.net/IN/view_telcom' from 192.168.5.11#53: connected using 192.168.5.7#39456
Dec 13 16:05:34 localhost named[9523]: transfer of 'hh.com/IN/other' from 192.168.5.11#53: connected using 192.168.5.7#9689
Dec 13 16:05:34 localhost named[9523]: zone hh.net/IN/view_telcom: transferred serial 2013111201: TSIG 'telcomkey'
Dec 13 16:05:34 localhost named[9523]: zone hh.net/IN/other: Transfer started.
Dec 13 16:05:34 localhost named[9523]: transfer of 'hh.net/IN/view_telcom' from 192.168.5.11#53: Transfer completed: 1 messages, 12 records, 379 bytes, 0.001 secs (379000 bytes/sec)
Dec 13 16:05:34 localhost named[9523]: zone hh.net/IN/view_telcom: sending notifies (serial 2013111201)
Dec 13 16:05:34 localhost named[9523]: zone hh.com/IN/other: transferred serial 2013111101: TSIG 'otherkey'
Dec 13 16:05:34 localhost named[9523]: transfer of 'hh.com/IN/other' from 192.168.5.11#53: Transfer completed: 1 messages, 11 records, 350 bytes, 0.002 secs (175000 bytes/sec)
Dec 13 16:05:34 localhost named[9523]: zone hh.com/IN/other: sending notifies (serial 2013111101)
Dec 13 16:05:34 localhost named[9523]: transfer of 'hh.net/IN/other' from 192.168.5.11#53: connected using 192.168.5.7#24322
Dec 13 16:05:34 localhost named[9523]: zone hh.net/IN/other: transferred serial 2013111201: TSIG 'otherkey'
Dec 13 16:05:34 localhost named[9523]: transfer of 'hh.net/IN/other' from 192.168.5.11#53: Transfer completed: 1 messages, 12 records, 378 bytes, 0.001 secs (378000 bytes/sec)
Dec 13 16:05:34 localhost named[9523]: zone hh.net/IN/other: sending notifies (serial 2013111201)
Dec 13 16:05:52 localhost bash[31337]: HISTORY: IP=192.168.50.239 PID=31337 PPID=31335 UID=0 UNAME=root(root) CMD=ll -R zone/
Dec 13 16:06:05 localhost bash[31337]: HISTORY: IP=192.168.50.239 PID=31337 PPID=31335 UID=0 UNAME=root(root) CMD=cd zone/hh.com/
Dec 13 16:06:06 localhost bash[31337]: HISTORY: IP=192.168.50.239 PID=31337 PPID=31335 UID=0 UNAME=root(root) CMD=ll
Dec 13 16:06:11 localhost bash[31337]: HISTORY: IP=192.168.50.239 PID=31337 PPID=31335 UID=0 UNAME=root(root) CMD=cat cnc_hh.com.zone.slave
Dec 13 16:06:15 localhost bash[31337]: HISTORY: IP=192.168.50.239 PID=31337 PPID=31335 UID=0 UNAME=root(root) CMD=cat telcom_hh.com.zone.slave
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP