Slave DNS not copying from master.

3 posts / 0 new
Last post
#1 Fri, 10/12/2018 - 08:20
Kivylius
Kivylius's picture

Slave DNS not copying from master.

Hey guys, this seemed to be working before and now for some strange reason its no longer working. I've a simple ns1 and ns2 (slave) setup that copies from ns1 to ns2. I've added a new domain and it added to the ns1 server and has DNS records and but on ns2 only the name without DNS records exist. I tried viewing the records file;

This page shows the DNS records file /var/lib/bind/test.com.hosts, created by BIND when the zone was transferred from the master server.
However the file is currently empty, probably because the zone has not yet been transferred from the master server.

Note I set this up a about a week ago so it can't be timing. I've also tried a test zone transfer and got;

Testing transfer of slave zone from ; ..
.. from ; : Failed : /usr/bin/dig: couldn't get address for ';': not found

I don't understand whats going on? the domain exist in ns2 but its DNS records do not? This i noticed exist on one other domain that was previously created about 2 weeks ago. Any ideas what to do? my registrar is complaining!

Edit

Checking bind its seems like BIND is not even running?

The following errors were found in the BIND configuration file /etc/bind/named.conf or referenced zone files ..
/etc/bind/named.conf.local:102: expected IP address or masters name near ';'

edit 2

Looking up the named.conf.local file it seems to be empty for the broken domain, but other seem fine?

zone "text.com" {
        type slave;
        masters {
                ;
                };
        allow-transfer {
                ;
                };
        file "/var/lib/bind/text.com.hosts";
        };

Even more confusion?

Final Edit

I was able to resolve this issue by manual putting in the IP address in master and allow-transfer, but what is the actual issue or was it just random error?

Fri, 10/12/2018 - 17:35
noisemarine

The error was as written in your post - bind expected to see an IP address in between the braces in the masters and allow-transfer stanzas. There is just a semi-colon.

Sat, 10/05/2019 - 07:25
eugenevdm.host
eugenevdm.host's picture

@Kivylius what was the resolution of your problem as I am experiencing the same?

Eugene van der Merwe

https://vander.host WordPress Website Hosting, VPS Hosting, and Domain Registration

Topic locked