slave AXFR bind9

Torsten Segner torsten at segner.eu
Thu Apr 21 08:21:59 UTC 2011



My first thoughts on this:

Has the slave received a notify from the master server?
Does the slave accept the notify?
What else is in the logs?

Could you please also provide your named configuration (options and the zone statement) of both master and slave?


Ciao
Torsten



Am Thu, 21 Apr 2011 06:55:13 +0000
schrieb hugo hugoo <hugobxl at hotmail.com>:

> 
> 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 		 	   		  



More information about the bind-users mailing list