LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-11-2008, 09:58 PM   #1
noir911
Member
 
Registered: Apr 2004
Posts: 682

Rep: Reputation: Disabled
Bind removing host


I remove a host from my primary NS - rm host.com file and removing host.com's entry from named.conf. One of my secondary NS still has the host.com file and an entry in named.conf - do I need to remove these entries by hand or it should have been done by zone transfer automagically?
 
Old 08-11-2008, 10:06 PM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
You didn't update the serial number. Update the serial number on the master, and reload named. The update will be sent after that.
 
Old 08-11-2008, 11:28 PM   #3
noir911
Member
 
Registered: Apr 2004
Posts: 682

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Mr. C. View Post
You didn't update the serial number. Update the serial number on the master, and reload named. The update will be sent after that.
Thanks for your help. As mentioned, I removed the file for host.com and it's entry from named.conf - there is nowhere to update the serial number.

Any further help would be appreciated. Thanks.
 
Old 08-11-2008, 11:36 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Your zone file should include a section that looks something like

Quote:
example.net IN SOA ns1.example.net. hostmaster.example.net. (
2008012788 ; serial
86400 ; refresh (1 day)
7200 ; retry (2 hours)
1209600 ; expire (2 weeks)
604800 ; minimum (1 week)
)
Note the position of the serial number.

Standard usage (by convention) is yyyymmddxx where xx are just incremented from, say, 01
 
Old 08-11-2008, 11:41 PM   #5
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
Yes, you need to manually remove the zone for any secondaries.
 
Old 08-11-2008, 11:45 PM   #6
noir911
Member
 
Registered: Apr 2004
Posts: 682

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by billymayday View Post
Your zone file should include a section that looks something like



Note the position of the serial number.

Standard usage (by convention) is yyyymmddxx where xx are just incremented from, say, 01
I did that in NS1 with no luck.

In my NS2 log I can see

[daemon.info] zone host.com/IN: refused notify from non-master: <ip of primary NS>
 
Old 08-12-2008, 12:40 AM   #7
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
You will want update the slave's version of named.conf file, so you can just as easily to a reload on the slave too.

Eventually the old zone on the slave will timeout (after the refresh period, or about a 15 minutes poll period).

Incremental transfer doesn't help here, because there is no new serial number or zone on which to increment. And from the BIND book 4th edition:

Quote:
...But a BIND primary master name server that reloads an entire zone data file can't compute the differences between that zone and the previous zone. Nor can a BIND slave that gets a full zone transfer figure out what changed between that zone and the last.

This means that, to take maximum advantage of IXFR, you should modify your zone only by using dynamic update, and never edit the zone data file by hand.
 
Old 08-12-2008, 01:08 AM   #8
noir911
Member
 
Registered: Apr 2004
Posts: 682

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Mr. C. View Post
You will want update the slave's version of named.conf file, so you can just as easily to a reload on the slave too.

Eventually the old zone on the slave will timeout (after the refresh period, or about a 15 minutes poll period).

Incremental transfer doesn't help here, because there is no new serial number or zone on which to increment. And from the BIND book 4th edition:
Thanks all for your help. I have now deleted the host.com file and removed the relevant named.conf file entry in the secondary and restarted named. Seems to be working fine.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
BIND/DNS Host resolution problem Seventh Linux - Newbie 1 03-21-2007 03:38 PM
BIND DNS Default Host movitto Linux - Networking 1 03-19-2006 06:02 PM
Setting up a domain host with bind. fur Linux - Networking 2 04-08-2004 07:45 PM
BIND 9 won't reslove host names jglazner Linux - Networking 4 02-23-2004 06:42 PM
BIND DNS client problems --unknown host Seneka Linux - Networking 4 12-28-2001 03:36 PM

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

All times are GMT -5. The time now is 12:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration