Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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?
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.
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.
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
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. ?!?
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"?
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.