Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Hi,
After adding a new name to bind, and it just can't resolve it.
Trying to restart, this happens:
# /etc/init.d/bind9 restart
Stopping domain name service...: bind9rndc: neither /etc/bind/rndc.conf nor /etc/bind/rndc.key was found
.
Starting domain name service...: bind9.
When you restart bind, take a look at the logs and see if the zone is loading with the new serial?
Could you post the output of the following commands:
# named-checkzone -D myplace.edu.br /etc/bind/db.myplace.edu.br
zone myplace.edu.br/IN: loaded serial 2010012103
myplace.edu.br. 86400 IN SOA myproblematicserver.myplace.edu.br. root.myplace.edu.br. 2010012103 28800 7200 604800 86400
...
# dig soa www.techweek.myplace.edu.br
...
;; AUTHORITY SECTION:
myplace.edu.br. 0 IN SOA myproblematicserver.myplace.edu.br. root.myplace.edu.br. 2009120101 28800 7200 604800 86400
...
You see that you have 2 different serial numbers. That means that you edit the wrong zone file. I guess you're running named chrooted to some directory and /etc/bind/db.myplace.edu.br is relative to that directory. To find the chroot run
You see that you have 2 different serial numbers. That means that you edit the wrong zone file. I guess you're running named chrooted to some directory and /etc/bind/db.myplace.edu.br is relative to that directory. To find the chroot run
That means that named does not run chrooted. So the correct path to the zone files is defined by the "directory" directive in /etc/named.conf (I guess it's /etc/bind/)
Quote:
I didn't change a thing, and bind, out of nowhere, started to resolve the domain.
Are you sure about this? Because in the 1st dig query you got answer from 201.101.3.13 with serial 2009120101 (obviously wrong as it's from last December), while the last query was answered from 200.128.35.5 (serial 2010012103).
Maybe your changed nameservers in /etc/resolv.conf and now you're using the correct one/
The various times (ttl ,refresh etc) defined in a zone file are used by the clients, so you should always get a fresh answer if you query the authoritative dns.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.