LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-10-2009, 02:36 PM   #1
ACDII
Member
 
Registered: Aug 2006
Posts: 87

Rep: Reputation: 16
Bind Master > Slave not updating


I have a DNS master and two DNS Slaves. The master has the allow-transfer setup as

allow-transfer { ip.address; ip .address; };

When I made a zone change and reloaded named, I did not see the server try to send any updates for the zone to the second server, which is a new one on FC10, while it did send the update to the other slave. I also noticed that when I first got the new server online, the zone transfers didn't happen until I restarted named on the new server, then all the zones updated. I swapped the ip's in named.conf so the new server address was first, changed the zone file serial in question so it updated, and reloaded named, and again, did not see the server try to update the new server, in fact I saw nothing except the update to the old server. Here are the options on the new server.

options {
listen-on port 53 { any; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { any; };
recursion yes;


As far as name resolution, the server is working fine, I can resolve against it both for dns and nslookup. This appears to be my only problem, sending updated zones to it from the master.
 
Old 06-11-2009, 08:47 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Check the master's logs, to see if it sends notifies to the 2nd slave and that in turn receives them. Also look at the serial on the secondary to see if it's greater than the one on the master.

Last edited by bathory; 06-11-2009 at 08:57 AM.
 
Old 06-11-2009, 11:31 AM   #3
ACDII
Member
 
Registered: Aug 2006
Posts: 87

Original Poster
Rep: Reputation: 16
I did both, on the master I ran tail -f /var/log/messages, I see the notify go out to the old server, but not to the new one. The serial on the new server is 20080xxxx the master serial is 20090xxxx. What I did notice the first time I brought the server up to synch with the master, none of the zone transfers occurred until I did a restart of named on the new server. I am thinking I have something incorrect somewhere on the master.
 
Old 06-11-2009, 12:22 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Make sure that you have added the new secondary dns in the zone file of the domain(s) that your master is authoritative for. E.g:
Code:
...
      NS master.domain.com.
      NS old-slave.domain.com.
      NS new-slave.domain.com.
 
Old 06-11-2009, 01:54 PM   #5
ACDII
Member
 
Registered: Aug 2006
Posts: 87

Original Poster
Rep: Reputation: 16
Well now this is odd. I added the NS record, and I did see our primary zone transfer, so then I upped the serial on the other zone, and it did not transfer, but here is the odd thing, some time since I opened this thread and now, the zone file did get transferred. I will give it a day or so and then check the files again and try another zone update and see what happens. For the most part, it looks like it may have been the NS record that was missing.
 
Old 06-11-2009, 03:48 PM   #6
ACDII
Member
 
Registered: Aug 2006
Posts: 87

Original Poster
Rep: Reputation: 16
Its working now, but taking nearly 2 hours before the zone transfer occurs. The other server is immediate. Could this be OS related? The other server is FC6, this is FC10. The master is RH9.
 
Old 06-11-2009, 04:24 PM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
The underlying OS has nothing to do with bind behavior. 2h is most likely the default retry value in your zone file. Since you didn't post the named.conf of your master, maybe you have to add the new slave in a "notify" statement for your zone.
You can do more checking by enabling logging in the slave, increase the serial in master, reload bind and look at both logs to see if a notify is send and received respectively.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to synchronize BIND 9 Master Slave Servers dholgado Linux - Server 1 09-19-2008 12:10 PM
DNS BIND Zone transfer fails from Master to Slave ALInux Linux - Networking 0 08-28-2007 05:19 AM
HELP: slave DNS is not updating Zone FIle from Master Cypher12 Linux - Networking 2 09-12-2006 06:12 PM
BIND Slave server never gets zone transfer from master. HELP!! quackking Linux - Networking 2 08-30-2006 12:54 PM
Tranferring Zones, Master to Slave, DNS - BIND newpylong Linux - Networking 0 09-02-2004 08:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration