Bind slave not updating

I have also disabled the iptables firewall, as that is not difficult to set up and allow port access between the 3 servers.I just wanted to cut that out of the equation to make sure DNS and replication is working. I also did an upgrade of all 3 servers, thanks for that.So if you telling me that your file replicates to the slave server 100%, as well as any changed or new zone files, that is great.Then I would like to have a look at your config files if you do not mind, minus your private info of course.Hi all, I have set up a master BIND DNS server with 2 slaves.All the services start up fine on all 3 servers, but zones and info is not being replicated.

Could you maybe point me into a direction where I can find a script that can convert this: [code] zone "yourdomain.com" IN ; [/code] to this: [code] zone "yourdomain.com" IN ; [/code] Many thanks I think you might need to have an also-notify ; line in your options stanza on the master server (with x.x.x.x being the IPs of your slave servers).Jan 28 ns2 named[1445]: transfer of 'yourdomain.com/IN' from 10.2.37.202#53: connected using 10.2.37.214#50135 Jan 28 ns2 named[1445]: dumping master file: slaves/tmp-9Pbqi Su0dz: open: file not found Jan 28 ns2 named[1445]: transfer of 'yourdomain.com/IN' from 10.2.37.202#53: failed while receiving responses: file not found Jan 28 ns2 named[1445]: transfer of 'yourdomain.com/IN' from 10.2.37.202#53: end of transfer [/code] [b]Slave 2:[/b] # tail -f /var/log/messages [code] Jan 28 ns3 named[1466]: zone yourdomain.com/IN: Transfer started.Jan 28 ns3 named[1466]: transfer of 'yourdomain.com/IN' from 10.2.37.202#53: connected using 10.2.37.225#52508 Jan 28 ns3 named[1466]: dumping master file: slaves/tmp-9r9qwh Sw Sj: open: file not found Jan 28 ns3 named[1466]: transfer of 'yourdomain.com/IN' from 10.2.37.202#53: failed while receiving responses: file not found Jan 28 ns3 named[1466]: transfer of 'yourdomain.com/IN' from 10.2.37.202#53: end of transfer [/code] When I test from the 2 slave server with your provided test command: # dig -t axfr 10.2.37.202 I get the below in the log on the Master server: [code] Jan 28 ns1 named[1465]: client 10.2.37.225#37852: transfer of 'yourdomain.com/IN': AXFR started Jan 28 ns1 named[1465]: client 10.2.37.225#37852: transfer of 'yourdomain.com/IN': AXFR ended Jan 28 ns1 named[1465]: client 10.2.37.225#49387: bad zone transfer request: '10.2.37.202/IN': non-authoritative zone (NOTAUTH) Jan 28 ns1 named[1465]: client 10.2.37.214#39761: transfer of 'yourdomain.com/IN': AXFR started Jan 28 ns1 named[1465]: client 10.2.37.214#39761: transfer of 'yourdomain.com/IN': AXFR ended Jan 28 ns1 named[1465]: client 10.2.37.214#57885: bad zone transfer request: '10.2.37.202/IN': non-authoritative zone (NOTAUTH) [/code] When doing a "netstat -ntpl" on all 3 servers, I get the following: [code] tcp 0 0 10.2.37.2 0.0.0.0:* LISTEN 1466/named tcp 0 0 127.0.0. 0.0.0.0:* LISTEN 1466/named tcp 0 0 127.0.0.3 0.0.0.0:* LISTEN 1466/named tcp 0 0 :::22 :::* LISTEN 1136/sshd tcp 0 0 ::3 :::* LISTEN 1466/named [/code] The permissions are as follows on all my directories and files starting from the "/" : [b]# ll /[/b] [quote]drwxr-xr-x 21 root root 4096 Jan 26 var[/quote] [b]# ll /var/[/b] [quote]drwxrwxr-x 5 named named 4096 Jan 26 named[/quote] [b]# ll /var/named/[/b] [quote]drwxrwxr-x 6 named named 4096 Jan 26 chroot drwxrwxr-x 2 named named 4096 Jan 20 data drwxrwxr-x 2 named named 4096 Jan 20 slaves[/quote] [b]# ll /var/named/chroot/[/b] [quote]drwxrwxr-x 2 root named 4096 Jan 26 dev drwxrwxr-x 2 named named 4096 Jan 28 etc drwxrwxr-x 70 root root 0 Jan 28 proc drwxrwxr-x 6 named named 4096 Jan 26 var[/quote] [b]# ll /var/named/chroot/etc/[/b] [quote]-rw-r--r-- 1 root root 245 Jan 14 localtime -rwxrwxr-x 1 named named 780 Jan 28 -rwxrwxr-x 1 named named 76 Jan 27 rndc.key[/quote] [b]# ll /var/named/chroot/var/[/b] [quote]drwxrwxr-x 2 named named 4096 Jan 20 log drwxrwxr-x 4 root named 4096 Jan 27 named drwxrwxr-x 4 named named 4096 Jan 26 run drwxrwxr-x 2 named named 4096 Mar 14 2003 tmp[/quote] [b]# ll /var/named/chroot/var/named/[/b] [quote]drwxrwxr-x 2 named named 4096 Aug 25 2004 data -rwxrwxr-x 1 named named 351 Jan 28 dbs.192.168.0 -rwxrwxr-x 1 named named 413 Jan 28 dbs.drwxrwxr-x 2 named named 4096 Jan 28 slaves[/quote] No files are located either in [b]/var/named/chroot/var/named/data[/b] or in [b]/var/named/chroot/var/named/slaves[/b].The zone file [b]/var/named/chroot/var/named/test1zone[/b] is also not transferred.The zone entry in the [b]named.conf[/b] file is not transfered either. Log on the Master server: # /etc/init.d/named restart ; tail -f /var/log/messages [quote] Feb 4 ns1 named[10157]: command channel listening on 127.0.0.1#953 Feb 4 ns1 named[10157]: zone 0.168.192.in-addr.arpa/IN: loaded serial 101 Feb 4 ns1 named[10157]: zone test1.com/IN: loaded serial 101 Feb 4 ns1 named[10157]: zone yourdomain.com/IN: loaded serial 101 Feb 4 ns1 named[10157]: running Feb 4 ns1 named[10157]: zone 0.168.192.in-addr.arpa/IN: sending notifies (serial 101) Feb 4 ns1 named[10157]: zone yourdomain.com/IN: sending notifies (serial 101) Feb 4 ns1 named[10157]: zone test1.com/IN: sending notifies (serial 101) [/quote] Neither of the Slave server show anything in their logs with regards to the new [b]test1[/b] entry. As currently I am testing on only 3 BIND DNS servers, but we will end up having close to 8 servers at all our branches.

Leave a Reply

  1. advice for dating someone with herpes 07-Dec-2019 14:59

    Out of all the quirky dating apps to have come and gone since the digital sex-plosion of the late Noughties, Tinder has managed to stick around.