I install two dns server (BIND 9) was the first master, the second is slave.

In Master Server:

The file /etc/bind/named.conf.local

zone "globaltic.tk" {
    type master;
    file "/etc/bind/db.globaltic.tk";
    notify no;
    allow-transfer {; };


  zone "1.168.192.in-addr.arpa" {
    type master;
    notify no;
    file "/etc/bind/db.1.168.192.in-addr.arpa";
    allow-transfer {; };


NOW THE FILE ZONE:db.globaltic.tk

$TTL 604800
@  IN      SOA     NS1.globaltic.tk.      root.globaltic.tk. (
                                                    ** 1 ;serial **
                                                    3600 ;refresh
                                                    3600 ;retry
                                                    **2419200 ;expire**
                                                    3600 ;minimum TTL)
 @           IN      NS      NS1.globaltic.tk.
 @           IN      NS      NS2.globaltic.tk.
 @           IN      MX  10  mail.globaltic.tk.
 NS1         IN      A
 NS2         IN      A
 mail        IN      A
 www         IN      A

In Slave Server The file /etc/named.conf.local :

// Do any local configuration here
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";

zone "globaltic.tk" {
    type slave;
    file "/var/cache/bind/db.globaltic.tk";
    masters {; };


zone "1.168.192.in-addr.arpa" {
    type slave;
    file "/var/cache/bind/db.1.168.192.in-addr.arpa";
    masters {; };


The file /var/cache/bind/db.globaltic.tk

$TTL 604800     ; 1 week

globaltic.tk            IN SOA  NS1.globaltic.tk. root.globaltic.tk. (
                            **2011041410 ; serial**
                            3600       ; refresh (1 hour)
                            3600       ; retry (1 hour)
                            **3600       ; expire (1 hour)**
                            3600       ; minimum (1 hour)
                    NS      NS1.globaltic.tk.
                    NS      NS2.globaltic.tk.
                    MX      10 mail.globaltic.tk.

$ORIGIN globaltic.tk.
mail                    A
NS1                     A
NS2                     A
www                     A

the contents of / etc / resolv.conf in the master NS1 search globaltic.tk nameserver the contents of / etc / resolv.conf in the Slave NS2 search globaltic.tk nameserver nameserver

the problem is:

-the update can not be made between the master and slave, although I restart bind and reboot each server.

-when I did nslookup nslookup ns1 mail or on the Master server it works, but in the Slave it gives me this message:

  ;; connection timed out; No servers Could Be Reached
  • Can you use host/dig from your slave and get a good zone transfer? – Zoredache May 23 '11 at 21:20

There are at least two problems. (1) As highlighted in your post, something got messed up with the serial numbers. The slave has a greater serial number than the master so it will not update its zone data when it receives a notify from the master. Assuming you are using the YYYYMMDDNN convention for serial numbers, update the master zone file to 2011052300. (2) You have notify no; set so the master won't send notifications. Remove that (in both places). After that restarting named on the master should allow the slave to start updating.

As for the timeout running nslookup there may be a firewall blocking access from ns2 to ns1 or you have some acls in your named.conf that you aren't showing.

  • the same thing, I deleted (notify no;) in the configuration. then I change the serial in the two files (/ etc / bind / master & db.globaltic.tk in / var / cache / bind / db.globaltic.tk in Slavic). I gave the serial "1" I even reboot both systems. and the same thing:-( – tmedtcom May 23 '11 at 22:27
  • Is netfilter enabled on these servers? To debug you could start a packet capture on both hosts, delete /var/cache/bind/db.globaltic.tk on the slave and restart named on the slave. – Mark Wagner May 23 '11 at 22:38
  • I deleted the file (/ var / cache / bind / db.globaltic.tk). and I reboot the system (slave). in / var / cache / bind any files. the slave has not made ​​the update, well, this whole setup I did before she walks very well on both servers, but the only change I made is the installation of the package (IRedMail the slave (NS2)) I believe that IRedMail contains some configuration netfiltrer. quesque I should do? to test the netfilter and if there is a rule give me please. – tmedtcom May 23 '11 at 22:59
  • (from Slave)#telnet @ip_Master 53 Trying telnet: Unable to connect to remote host: Connection timed out – tmedtcom May 23 '11 at 23:38
  • # tail -f /var/log/syslog May 24 00:32:19 NS2 named[1684]: zone globaltic.tk/IN: refresh: retry limit for master exceeded (source May 24 00:32:19 NS2 named[1684]: zone globaltic.tk/IN: Transfer started. May 24 00:32:39 NS2 named[1684]: zone 1.168.192.in-addr.arpa/IN: refresh: retry limit for master exceeded (source May 24 00:32:39 NS2 named[1684]: zone 1.168.192.in-addr.arpa/IN: Transfer started. – tmedtcom May 24 '11 at 0:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.