LinuxQuestions.org
Review your favorite Linux distribution.
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 12-28-2012, 12:20 AM   #1
slackware_newbie
Member
 
Registered: Sep 2006
Posts: 57

Rep: Reputation: 15
Unhappy Newly added hosts to BIND...


Newly added hosts to BIND take long for other computer beeing found.

So what do I need to "propagate" them faster to other OS?

My Zone file:
Code:
$ttl 38400
local.	IN	SOA	lamp. info.xxxxx.de. (
			1356636207
			10800
			3600
			604800
			38400 )
local.	IN	NS	lamp.
www.zf-template.local.	IN	A	192.168.1.4
 
Old 12-28-2012, 02:44 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

If you add a new host in a zone, that host is not cached anywhere, so it can be resolved immediately from clients using your dns.
So, do you remember to increase the serial number and reload bind after adding/editing hosts?

Regards
 
Old 12-28-2012, 03:29 AM   #3
slackware_newbie
Member
 
Registered: Sep 2006
Posts: 57

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bathory View Post
So, do you remember to increase the serial number and reload bind after adding/editing hosts?
Hi,

don't know anything about a serial number (using webmin) but I definitely reloaded BIND after adding a host. Still needs approx. 15 minutes to be available.
 
Old 12-28-2012, 04:09 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
don't know anything about a serial number (using webmin) but I definitely reloaded BIND after adding a host. Still needs approx. 15 minutes to be available
In your case the serial is the number "1356636207", but since you're using webmin to administer your dns, I guess increasing is done automatically by webmin after editing the zone file..
Anyway a new host should be resolvable immediately after been added in the zone file, either from the nameserver and from the clients, because it's not cached.
Add a new host and see what gives:
Code:
dig new-host.local @x.x.x.x
(x.x.x.x is the dns IP) when you run it from the nameserver itself and from a client?
 
Old 01-07-2013, 02:08 AM   #5
slackware_newbie
Member
 
Registered: Sep 2006
Posts: 57

Original Poster
Rep: Reputation: 15
Problem is: After reboot of the client (and hence the server too because it's a VM) it takes approx. 15 minutes before the addresses the DNS handles can be resolved.
 
Old 01-07-2013, 02:38 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by slackware_newbie View Post
Problem is: After reboot of the client (and hence the server too because it's a VM) it takes approx. 15 minutes before the addresses the DNS handles can be resolved.
It's not possible, unless it takes 15min for bind to start, or there is some other networking problem.
Once named is up and running, the dns can resolve whatever domain it's authoritative for.
 
Old 01-07-2013, 02:40 AM   #7
slackware_newbie
Member
 
Registered: Sep 2006
Posts: 57

Original Poster
Rep: Reputation: 15
Hmmm...
Some other networking problem? Sounds reasonable. What comes to your mind looking at my situation?
 
Old 01-07-2013, 03:21 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by slackware_newbie View Post
Hmmm...
Some other networking problem? Sounds reasonable. What comes to your mind looking at my situation?
Doh. Since the client is also the host on which the VM is running, it could be that it takes some time for the VM to boot, get an IP (and configure its network settings) and start the services.
The fact is that once bind is up and running, the dns resolution should not be a problem
 
Old 01-07-2013, 03:23 AM   #9
slackware_newbie
Member
 
Registered: Sep 2006
Posts: 57

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bathory View Post
Doh. Since the client is also the host on which the VM is running, it could be that it takes some time for the VM to boot, get an IP (and configure its network settings) and start the services.
The fact is that once bind is up and running, the dns resolution should not be a problem
Hmmm... But using nslookup gets me the DNS server imediately. ?!?
 
Old 01-07-2013, 04:24 AM   #10
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by slackware_newbie View Post
Hmmm... But using nslookup gets me the DNS server imediately. ?!?
Dunno what you mean.
Try nslookup or better dig as it gives more details:
Code:
dig new-host.local @x.x.x.x
from both the server and the client, once the VM has booted and see what you get.
 
Old 01-09-2013, 10:12 AM   #11
slackware_newbie
Member
 
Registered: Sep 2006
Posts: 57

Original Poster
Rep: Reputation: 15
This is from dig:

Code:
; <<>> DiG 9.9.2-P1 <<>> www.zf-template.loc
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63289
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;www.zf-template.loc.              IN      A

;; ANSWER SECTION:
www.zf-template.loc.       38400   IN      A       192.168.1.4

;; AUTHORITY SECTION:
loc.                    38400   IN      NS      lamp.

;; Query time: 1 msec
;; SERVER: 192.168.1.4#53(192.168.1.4)
;; WHEN: Wed Jan 09 13:30:40 2013
;; MSG SIZE  rcvd: 79
but I cannot ping www.zf-template.loc for approx. 15 minutes after reboot.
 
Old 01-09-2013, 11:37 AM   #12
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
This is from dig:
<snip>
but I cannot ping www.zf-template.loc for approx. 15 minutes after reboot
Where did you run dig from? If you ran dig from the client and you got an answer right after booting the server, then you should get the same answer from whatever application that runs on the client and uses the server as a resolver.
Also what you mean by "I cannot ping www.zf-template.loc"?
When you run:
Code:
ping www.zf-template.loc
do you see the host IP but no replies, or you get a "host unknown"?
 
Old 01-09-2013, 01:03 PM   #13
slackware_newbie
Member
 
Registered: Sep 2006
Posts: 57

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bathory View Post
When you run:
Code:
ping www.zf-template.loc
do you see the host IP but no replies, or you get a "host unknown"?
"host unknown".

Very strange.
 
Old 01-09-2013, 04:37 PM   #14
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by slackware_newbie View Post
"host unknown".

Very strange.
Let me see if I understand well the situation.
You can dig the host www.zf-template.loc and get its IP address from a client, but right after that pinging that host from the same client you get a "host unkown"?
What's in the client /etc/resolv.conf and /etc/nsswitch.conf?
 
Old 01-10-2013, 12:54 AM   #15
slackware_newbie
Member
 
Registered: Sep 2006
Posts: 57

Original Poster
Rep: Reputation: 15
In this special case the host is running on Windows 7 but dig and ping from other Linux hosts gives the same result.
 
  


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
How to manage newly added 2nd HDD ? kcarun Solaris / OpenSolaris 11 09-07-2007 12:54 AM
how can i mount newly added H.D using SuSe 9.0 elbrens Linux - Software 3 08-14-2007 01:51 PM
No sound for newly added user... Lufbery Slackware 9 07-07-2007 08:51 PM
man page access for newly added users puffinman Linux - Newbie 3 01-22-2005 09:58 PM
newly added harddrive not showing.... pdmackenzie Linux - Hardware 4 03-02-2003 05:18 PM

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

All times are GMT -5. The time now is 04:31 AM.

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