- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- DNS lookup's going to old nameserver after changin...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2005 04:25 PM
тАО08-14-2005 04:25 PM
DNS lookup's going to old nameserver after changing /etc/resolv.conf
We have recently replaced a couple of old DNS nameservers in our network, but after having updated the /etc/resolv.conf file on this particular server, with the details of the new DNS nameservers, we still find that DNS queries are being sent to the old nameservers.
My problem is that I am unsure of the effect on this server when the old nameservers are switched off.
In an attempt to resolve this I have tried a SIGHUP of inetd, but still have the same problem.
I would prefer to avoid a complete server restart if possible, so would be interested in any suggestions on how to resolve this problem.
Thanks.
Regards,
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2005 05:42 PM
тАО08-14-2005 05:42 PM
Re: DNS lookup's going to old nameserver after changing /etc/resolv.conf
since u have restarted inetd but the same problem persists.
have u confirm that amendment made to /etc/resolv.conf is correct or would u like to post it here?
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2005 05:51 PM
тАО08-14-2005 05:51 PM
Re: DNS lookup's going to old nameserver after changing /etc/resolv.conf
on windows clients, you can try to run: ipconfig /flushdns
on the hp-ux server, i don't know if something similar exists!
can you try to run nslookup and see what is really happening?
regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2005 06:02 PM
тАО08-14-2005 06:02 PM
Re: DNS lookup's going to old nameserver after changing /etc/resolv.conf
Post the content of /etc/resolv.conf and /etc/nsswitch.conf
If names are used /etc/hosts needed.
How did you conclude the server is still looking at the old DNS server?
Regds
TT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2005 02:31 AM
тАО08-15-2005 02:31 AM
Re: DNS lookup's going to old nameserver after changing /etc/resolv.conf
nslookup www.hp.com 12.34.56.78
where 12.34.56.78 is the specific nameserver to query. Then use nslookup without the 12.34.56.78 server and it should report the same results. However, the actual behavior of resolving hostnames depends on /etc/nsswitch.conf and often needs to be changed.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2005 02:34 AM
тАО08-15-2005 02:34 AM
Re: DNS lookup's going to old nameserver after changing /etc/resolv.conf
When the application starts, it will load and initialize the library with the resolver functions if it needs DNS. Reading /etc/nsswitch.conf and /etc/resolv.conf is one part of the initialization code of that library.
This means most programs will read /etc/resolv.conf only at the point when they're starting up. To activate the new settings, you must stop and restart the application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2005 09:57 AM
тАО08-15-2005 09:57 AM
Re: DNS lookup's going to old nameserver after changing /etc/resolv.conf
In answer to your questions ...
The amendment made to /etc/resolv.conf is correct (same used across many other servers).
nslookup is resolving correctly ... it appears to be a running process that is still querying the old nameserver.
Our network team records all IP's querying this 'old' nameserver, which is how I can identify this particular server.
I will try Matti's suggestion and stop and restart the applications on this server.
Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2005 02:48 AM
тАО08-18-2005 02:48 AM
Re: DNS lookup's going to old nameserver after changing /etc/resolv.conf
did you check that none of the apps was caching DNS entries? Also could it be that your box is running as a name caching server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2005 03:11 AM
тАО08-18-2005 03:11 AM
Re: DNS lookup's going to old nameserver after changing /etc/resolv.conf
..well fixing your /etc/resolv.conf is something you should have done.
I'm no DNS expert...but on ours we have to fix the master DNS configuration file when we remove or change DNS servers - and then we have to run the command to rebuild DNS from the hostfile (with the new host info now added) ??
Just a thought,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2005 06:10 AM
тАО08-18-2005 06:10 AM
Re: DNS lookup's going to old nameserver after changing /etc/resolv.conf
Just a dumb question. Is this host a named server ? or client ?
All changes I have ever made to a client in the resolv.conf file are immediate (hence the name Dynamic Named Service).
nslookup
> server localhost
> set swtrace
> set debug
> host_to_look_up
The output from the above may help troubleshoot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2005 09:45 AM
тАО08-18-2005 09:45 AM
Re: DNS lookup's going to old nameserver after changing /etc/resolv.conf
I have resolved this problem by restarting the server. It is now issuing queries to the new nameservers.
regards,
Dave