bind 主从同步问题
如题,我在测试机安装了两台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: running
Dec 13 16:05:33 localhost named: zone hh.com/IN/view_cnc: Transfer started.
Dec 13 16:05:33 localhost named: 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: zone hh.com/IN/view_cnc: transferred serial 2013111101: TSIG 'cnckey'
Dec 13 16:05:33 localhost named: 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: zone hh.com/IN/view_cnc: sending notifies (serial 2013111101)
Dec 13 16:05:34 localhost named: zone hh.net/IN/view_cnc: Transfer started.
Dec 13 16:05:34 localhost named: zone hh.com/IN/view_telcom: Transfer started.
Dec 13 16:05:34 localhost named: zone hh.net/IN/view_telcom: zone transfer deferred due to quota
Dec 13 16:05:34 localhost named: 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: zone hh.com/IN/other: zone transfer deferred due to quota
Dec 13 16:05:34 localhost named: zone hh.net/IN/other: zone transfer deferred due to quota
Dec 13 16:05:34 localhost named: 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: zone hh.net/IN/view_cnc: transferred serial 2013111201: TSIG 'cnckey'
Dec 13 16:05:34 localhost named: zone hh.net/IN/view_telcom: Transfer started.
Dec 13 16:05:34 localhost named: 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: zone hh.net/IN/view_cnc: sending notifies (serial 2013111201)
Dec 13 16:05:34 localhost named: zone hh.com/IN/view_telcom: transferred serial 2013111101: TSIG 'telcomkey'
Dec 13 16:05:34 localhost named: zone hh.com/IN/other: Transfer started.
Dec 13 16:05:34 localhost named: 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: zone hh.com/IN/view_telcom: sending notifies (serial 2013111101)
Dec 13 16:05:34 localhost named: 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: 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: zone hh.net/IN/view_telcom: transferred serial 2013111201: TSIG 'telcomkey'
Dec 13 16:05:34 localhost named: zone hh.net/IN/other: Transfer started.
Dec 13 16:05:34 localhost named: 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: zone hh.net/IN/view_telcom: sending notifies (serial 2013111201)
Dec 13 16:05:34 localhost named: zone hh.com/IN/other: transferred serial 2013111101: TSIG 'otherkey'
Dec 13 16:05:34 localhost named: 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: zone hh.com/IN/other: sending notifies (serial 2013111101)
Dec 13 16:05:34 localhost named: 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: zone hh.net/IN/other: transferred serial 2013111201: TSIG 'otherkey'
Dec 13 16:05:34 localhost named: 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: zone hh.net/IN/other: sending notifies (serial 2013111201)
Dec 13 16:05:52 localhost bash: 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: 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: HISTORY: IP=192.168.50.239 PID=31337 PPID=31335 UID=0 UNAME=root(root) CMD=ll
Dec 13 16:06:11 localhost bash: 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: HISTORY: IP=192.168.50.239 PID=31337 PPID=31335 UID=0 UNAME=root(root) CMD=cat telcom_hh.com.zone.slave
页:
[1]