Box keeps talking to old DNS but config has changed
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Box keeps talking to old DNS but config has changed
I'm in the process of removing an old DNS server from our network and have been logging queries in order to update machines to point to our current DNS servers however I'm having the hardest time with two boxes. One is running Redhat and the other HP-Unix and both are doing the same thing.
After resolv.conf has been updated with new DNS settings (and no references to DNS in ifcfg file), these two boxes still query the old DNS server from time to time and I can't figure out what's causing this. Is there another place I could look for DNS configurations? I've restarted the network service on the Redhat box but that didn't correct the problem.
Check /etc/nscd.conf for anything relevant and then do a `service ncsd restart`. Personally, I'd turn that service off completely (all run levels) and permanently.
Check /etc/nscd.conf for anything relevant and then do a `service ncsd restart`. Personally, I'd turn that service off completely (all run levels) and permanently.
Ran the command but it still talked to the old DC last night. Same time every night! I don't want to disable it because I'm not sure if the service is needed by the processes on the box (this is a very old box that's been passed down through generations of IT...) and I don't know enough about Linux to figure it out (hence me being here!)
Would restarting the service accomplish the same as 'nscd -i hosts' ? I found that command to clear the caches but haven't run it yet.
You can run that command without worry. Also, nscd provides no critical service of it's own. It is safe to turn it off, if you choose.
Another possibility is that you have a nameserver running and it is using the old DNS server as a forwarder. Try `netstat -lnvp` and see if anything is listening on port 53. bind (named) is common. If so, it's config file is usually found at /etc/named.conf. Look for a
Unless you have set a nonstandard "time to live" on your old DNS server, you must wait a considerable amount of time (typically 1-7 days) for remote users' cached DNS records to expire.
Ehh it's still talking to the box at the same time every day... I think I need to talk to the one guy who runs stuff on it to see what's going on at that time and maybe trace back from there.
Ehh it's still talking to the box at the same time every day... I think I need to talk to the one guy who runs stuff on it to see what's going on at that time and maybe trace back from there.
Unless anyone else has any more ideas?
What version of Red Hat?
What is in /etc/resolv.conf (IOW, are the contents changing, or static?)?
Also, are you performing a 'service network restart' or using stop/start? Has this persisted after a reboot?
You may need to add 'PEERDNS=no' to your ifcfg files for it to stop picking up on random DNS servers-depending on your version of RH.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.