Slave zones not working (DNS)

8 posts / 0 new
Last post
#1 Sat, 04/16/2011 - 17:20
Tito

Slave zones not working (DNS)

I created a new slave server for DNS and when I applied the changes, it copied all of the zones to the slave server. When I go into the slave server to verify, I see all of the zone there except that when I click on an individual zone, it's not copying over the records for the zones. I tried deleting and re-adding and still nothing.

Any thoughts anyone?

Sat, 04/16/2011 - 17:37
Tito

I fixed it by finding this thread: https://www.virtualmin.com/node/11364

Mon, 04/18/2011 - 09:56
Tito

Well, I was a bit wrong. This is not actually working well. If I create a new record, it replicates to the slave server. However, if I update an existing record, it doesn't get updated in my slave server. The master IP is correct but I don't know why updates are not being replicated to the slave. Any thoughts?

Mon, 04/18/2011 - 11:02
Locutus

You might want to check /var/log/syslog on the master and slave after you changed a record. It should read something like this:

Master

Apr 18 17:57:55 lyra named[10380]: received control channel command 'reload test.tianet.de'
Apr 18 17:57:55 lyra named[10380]: zone test.tianet.de/IN: loaded serial 1295986909
Apr 18 17:57:55 lyra named[10380]: zone test.tianet.de/IN: sending notifies (serial 1295986909)
Apr 18 17:57:55 lyra named[10380]: client 46.4.181.245#50069: transfer of 'test.tianet.de/IN': AXFR-style IXFR started
Apr 18 17:57:55 lyra named[10380]: client 46.4.181.245#50069: transfer of 'test.tianet.de/IN': AXFR-style IXFR ended

Slave

Apr 18 17:57:03 ara named[1022]: client 46.4.181.243#58709: received notify for zone 'test.tianet.de'
Apr 18 17:57:03 ara named[1022]: zone test.tianet.de/IN: Transfer started.
Apr 18 17:57:03 ara named[1022]: transfer of 'test.tianet.de/IN' from 46.4.181.243#53: connected using 46.4.181.245#50069
Apr 18 17:57:03 ara named[1022]: zone test.tianet.de/IN: transferred serial 1295986909
Apr 18 17:57:03 ara named[1022]: transfer of 'test.tianet.de/IN' from 46.4.181.243#53: Transfer completed: 1 messages, 11 records, 328 bytes, 0.003 secs (109333 bytes/sec)
Apr 18 17:57:03 ara named[1022]: zone test.tianet.de/IN: sending notifies (serial 1295986909)

Do you get any errors in your syslog, or indications of problem? How did you check/notice that the slave is not updated?

Tue, 04/19/2011 - 07:09
Tito

I noticed it was not updating because I went into the slave and checked the record both via webmin and the backend and the old info was still there. However, creating a new record does work but updating doesn't. I deleted the entire slave server from the webmin server index and started over just so that it copies that updated record over.

Tue, 04/19/2011 - 10:25
Locutus

Okay, that answers half of my question. You unfortunately skipped the other, and more important one, namely checking the error logs for the stuff I mentioned...

Sat, 04/23/2011 - 13:05
Tito

Locutus,

Thanks for your help. I found a thread where Joe mentioned that I would have to go to each zone and enable the "notify slave" and also add the IP manually. I then had to ensure that for the zone file options (default), that I have the same settings, which I did. So only new zones were working fine but existing ones weren't because I needed to manually fix those after I did my transfer from one server to another.

Glad that's working :D

Sun, 04/24/2011 - 13:30
Locutus

Yep, and you could have found that out by just doing what I suggested, namely checking the log files. :)

Transfer errors due to incorrect slave IPs are logged there with lines that roughly read "zone transfer to unknown system rejected". I've had that happen multiple times when changing IP addresses.

Topic locked