Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
06-02-2014, 12:52 PM
|
#1
|
LQ Newbie
Registered: Oct 2013
Posts: 10
Rep:
|
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.
Where could I look next?
|
|
|
06-02-2014, 02:40 PM
|
#2
|
Senior Member
Registered: Apr 2009
Posts: 1,880
Rep:
|
Each interface can have their own DNS configuration.
|
|
|
06-02-2014, 02:44 PM
|
#3
|
LQ Newbie
Registered: Oct 2013
Posts: 10
Original Poster
Rep:
|
Oh I understand however these only have 1 interface each.
|
|
|
06-03-2014, 02:12 PM
|
#4
|
Senior Member
Registered: Apr 2009
Posts: 1,880
Rep:
|
The existing connection could still use old DNS configuration. If TCP connection, tcpkill can clean up these connection.
|
|
|
06-03-2014, 02:14 PM
|
#5
|
LQ Newbie
Registered: Oct 2013
Posts: 10
Original Poster
Rep:
|
Would these persist even if I've run service network restart?
|
|
|
06-03-2014, 03:11 PM
|
#6
|
Member
Registered: Apr 2013
Location: Arlington, WA
Distribution: Slackware
Posts: 96
Rep:
|
Are you running nscd on those 2 boxes?
|
|
|
06-03-2014, 03:16 PM
|
#7
|
LQ Newbie
Registered: Oct 2013
Posts: 10
Original Poster
Rep:
|
Quote:
Originally Posted by MikeDeltaBrown
Are you running nscd on those 2 boxes?
|
Had to search what that was and it appears that it is running on at least one of the boxes.
|
|
|
06-03-2014, 03:41 PM
|
#8
|
Member
Registered: Apr 2013
Location: Arlington, WA
Distribution: Slackware
Posts: 96
Rep:
|
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.
|
|
|
06-04-2014, 07:47 AM
|
#9
|
LQ Newbie
Registered: Oct 2013
Posts: 10
Original Poster
Rep:
|
Quote:
Originally Posted by MikeDeltaBrown
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.
|
|
|
06-04-2014, 10:21 AM
|
#10
|
Member
Registered: Apr 2013
Location: Arlington, WA
Distribution: Slackware
Posts: 96
Rep:
|
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
Code:
forwarders { 10.2.3.4; };
line.
|
|
|
06-04-2014, 11:01 AM
|
#11
|
LQ Newbie
Registered: Oct 2013
Posts: 10
Original Poster
Rep:
|
Thanks MikeDeltaBrown. I ran the command and will wait for tonight to see if it happens again.
Also, no nameserver running so I'm hoping it was just the cache.
|
|
|
06-04-2014, 02:30 PM
|
#12
|
Senior Member
Registered: Apr 2009
Posts: 1,880
Rep:
|
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.
|
|
|
06-06-2014, 07:50 AM
|
#13
|
LQ Newbie
Registered: Oct 2013
Posts: 10
Original Poster
Rep:
|
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?
|
|
|
06-06-2014, 11:20 AM
|
#14
|
Member
Registered: Apr 2013
Location: Arlington, WA
Distribution: Slackware
Posts: 96
Rep:
|
Since it happens at the same time you might want to check cron jobs: `crontab -l`
|
|
|
06-06-2014, 11:30 AM
|
#15
|
Member
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 457
Rep:
|
Quote:
Originally Posted by MarcLaf
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.
|
|
|
All times are GMT -5. The time now is 02:48 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|