slave AXFR bind9

hugo hugoo hugobxl at hotmail.com
Thu Apr 21 06:55:13 UTC 2011


Dear all,
I am really lost with the working of my slave zone.
Here the situation/configuration.
 
 
I use a server called "lenny" where the zone is idendified as slave.
I use a server called custmaster where the zone is master.
 
After a stop/start of the BIND9 in the Lenny server (slave zone), the slave zone is never synchronised with the master zone.
In my test, the serial number in the master is greater than in the slave.
 


lennydnstest01:~# dig @194.78.73.65 bind9testcarlos.be AXFR      è what is on the master zone (dig use the IP address of the  master)
 
; <<>> DiG 9.6-ESV-R3 <<>> @194.78.73.65 bind9testcarlos.be AXFR
; (1 server found)
;; global options: +cmd
bind9testcarlos.be.     86400   IN      SOA     ns1.skynet.be. dnsmaster.skynet.be. 1999101725 600 3600 604800 86400
bind9testcarlos.be.     86400   IN      NS      ns.uat.
bind9testcarlos.be.     86400   IN      NS      ns2.uat.
ns.bind9testcarlos.be.  3600    IN      A       1.2.3.4
ns2.bind9testcarlos.be. 3600    IN      A       1.2.3.4
sgtest1.bind9testcarlos.be. 3600 IN     A       1.2.3.30
cs1.sgtest1.bind9testcarlos.be. 3600 IN A       1.2.3.4
bind9testcarlos.be.     86400   IN      SOA     ns1.skynet.be. dnsmaster.skynet.be. 1999101725 600 3600 604800 86400
;; Query time: 5 msec
;; SERVER: 194.78.73.65#53(194.78.73.65)
;; WHEN: Wed Apr 20 14:03:20 2011
;; XFR size: 8 records (messages 1, bytes 250)
 
dnscustmaster901:/etc/bind/zones/master# cat bind9testcarlos.be                  ==> master zone file
$TTL 3600        ;Positive Caching
bind9testcarlos.be.      86400   IN SOA  ns1.skynet.be.  dnsmaster.skynet.be.    (
         1999101725     ; Serial
         600  ; Refresh
         3600   ; Retry
         604800         ; Expire
         86400 )        ; Negative Caching
 
bind9testcarlos.be.      86400   IN      NS     ns.uat.
bind9testcarlos.be.      86400   IN      NS     ns2.uat.
cs1.sgtest1.bind9testcarlos.be.  3600    IN      A       1.2.3.4 
ns.bind9testcarlos.be.   3600    IN      A       1.2.3.4
ns2.bind9testcarlos.be.  3600    IN      A       1.2.3.4 
sgtest1.bind9testcarlos.be.      3600    IN      A       1.2.3.30
 
 
lennydnstest01:~# dig @localhost bind9testcarlos.be AXFR     è what is on the slave zone
 
; <<>> DiG 9.6-ESV-R3 <<>> @localhost bind9testcarlos.be AXFR
; (2 servers found)
;; global options: +cmd
bind9testcarlos.be.     86400   IN      SOA     ns1.skynet.be. dnsmaster.skynet.be. 1999101723 600 3600 604800 86400
bind9testcarlos.be.     86400   IN      NS      ns.uat.
bind9testcarlos.be.     86400   IN      NS      ns2.uat.
ns.bind9testcarlos.be.  3600    IN      A       1.2.3.4
ns2.bind9testcarlos.be. 3600    IN      A       1.2.3.4
sgtest1.bind9testcarlos.be. 3600 IN     A       1.2.3.20
cs1.sgtest1.bind9testcarlos.be. 3600 IN A       1.2.3.4
bind9testcarlos.be.     86400   IN      SOA     ns1.skynet.be. dnsmaster.skynet.be. 1999101723 600 3600 604800 86400
;; Query time: 3 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Apr 20 14:03:21 2011
;; XFR size: 8 records (messages 1, bytes 250)
 
 
ennydnstest01:~# cat /etc/bind/zones/slave/bind9testcarlos.be    ==> slave zone file
$ORIGIN .
$TTL 86400      ; 1 day
bind9testcarlos.be      IN SOA  ns1.skynet.be. dnsmaster.skynet.be. (
                                1999101723 ; serial
                                600        ; refresh (10 minutes)
                                3600       ; retry (1 hour)
                                604800     ; expire (1 week)
                                86400      ; minimum (1 day)
                                )
                        NS      ns.uat.
                        NS      ns2.uat.
$ORIGIN bind9testcarlos.be.
$TTL 3600       ; 1 hour
ns                      A       1.2.3.4
ns2                     A       1.2.3.4
sgtest1                 A       1.2.3.20
$ORIGIN sgtest1.bind9testcarlos.be.
cs1                     A       1.2.3.4
 
 
 
 
After a reload zonefile (not working with "rndc reload")   ==> AXFR is done!
 
lennydnstest01:~# rndc reload bind9testcarlos.be
zone refresh queued
lennydnstest01:~# dig @localhost bind9testcarlos.be AXFR
 
; <<>> DiG 9.6-ESV-R3 <<>> @localhost bind9testcarlos.be AXFR
; (2 servers found)
;; global options: +cmd
bind9testcarlos.be.     86400   IN      SOA     ns1.skynet.be. dnsmaster.skynet.be. 1999101725 600 3600 604800 86400
bind9testcarlos.be.     86400   IN      NS      ns.uat.
bind9testcarlos.be.     86400   IN      NS      ns2.uat.
ns.bind9testcarlos.be.  3600    IN      A       1.2.3.4
ns2.bind9testcarlos.be. 3600    IN      A       1.2.3.4
sgtest1.bind9testcarlos.be. 3600 IN     A       1.2.3.30
cs1.sgtest1.bind9testcarlos.be. 3600 IN A       1.2.3.4
bind9testcarlos.be.     86400   IN      SOA     ns1.skynet.be. dnsmaster.skynet.be. 1999101725 600 3600 604800 86400
;; Query time: 3 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Apr 20 14:08:16 2011
;; XFR size: 8 records (messages 1, bytes 250)
 
 
Log in the the master:
 
Apr 20 14:08:03 dnscustmaster901 named[5672]: client 194.78.73.88#50411: transfer of 'bind9testcarlos.be/IN': AXFR-style IXFR started
Apr 20 14:08:03 dnscustmaster901 named[5672]: client 194.78.73.88#50411: transfer of 'bind9testcarlos.be/IN': AXFR-style IXFR ended 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20110421/e0c76e56/attachment.html>


More information about the bind-users mailing list