- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Force A Re-Read of the /etc/resolv.conf File ?
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
тАО10-28-2008 03:54 AM
тАО10-28-2008 03:54 AM
Force A Re-Read of the /etc/resolv.conf File ?
We've got an odd sort of situation where we changed our dns look-up servers in the /etc/resolv.conf file, removing one.
However, since the servers have not been rebooted, the new /etc/resolv.conf file was never re-read to take effect.
All processes that were running when we made the change, are still "thinking" that the old resolv.conf is still in effect ( and are therefore now trying to resolve off of what will be an invalid dns ).
My question is two fold :
1) Is there a way to force a system to re-read the /etc/resolv.conf file?
2) If a dns is removed completely, will the system recognize that it is missing and then automatically re-read the /etc/resolv.conf file?
Thanks in advance for any info.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2008 04:08 AM
тАО10-28-2008 04:08 AM
Re: Force A Re-Read of the /etc/resolv.conf File ?
#sig_named restart
to re-read the /etc/resolv.conf.
Best read up on that first before trying...I don't have a system to double check for you right now.
Also do you have any old information still sitting around in your hosts file that could be causing an issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2008 04:09 AM
тАО10-28-2008 04:09 AM
Re: Force A Re-Read of the /etc/resolv.conf File ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2008 04:12 AM
тАО10-28-2008 04:12 AM
Re: Force A Re-Read of the /etc/resolv.conf File ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2008 04:13 AM
тАО10-28-2008 04:13 AM
Re: Force A Re-Read of the /etc/resolv.conf File ?
Thank you, I will read up on sig_named, thank you.
Right now, we're talking about a hundred servers or so, and they have varying nsswitch.conf files.
Do you have a suggestion where this is concerned?
Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2008 04:14 AM
тАО10-28-2008 04:14 AM
Re: Force A Re-Read of the /etc/resolv.conf File ?
The majority are running 11.11 right now ( with perhaps 10 or so at 11.23 ).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2008 04:20 AM
тАО10-28-2008 04:20 AM
Re: Force A Re-Read of the /etc/resolv.conf File ?
>>>1) Is there a way to force a system to re-read the /etc/resolv.conf file?
No need to run any command to re-read /etc/resolv.conf file. There will be immediate effect, after you edit the file.
>>>2) If a dns is removed completely, will the system recognize that it is missing and then automatically re-read the /etc/resolv.conf file?
It depends on your /etc/nsswitch.conf configuration. There, if you specified to check DNS for name resolution, server will definitely read /etc/resolv.conf and would try to contact the DNS server specified.
Rgds
Sreekanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2008 04:23 AM
тАО10-28-2008 04:23 AM
Re: Force A Re-Read of the /etc/resolv.conf File ?
That isn't working. These are not dns servers, so no named is running.
I'm talking about server which have had their /etc/resolv.conf file edited to remove a dns lookup server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2008 04:25 AM
тАО10-28-2008 04:25 AM
Re: Force A Re-Read of the /etc/resolv.conf File ?
From what I am seeing - there was no automatic re-read of the file after editing for the processes that are currently running.
The servers have not been rebooted since the change, so they are still using the "old" resolv.conf file.
I would like to force them to see the new file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2008 04:29 AM
тАО10-28-2008 04:29 AM
Re: Force A Re-Read of the /etc/resolv.conf File ?
Use # nslookup for checking the name resolution. If it happens, then the prblm is with your Application, which requires a restart. In HPUX, DNS client configuration would have immediate effect.
Rgds
Sreekanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2008 04:32 AM
тАО10-28-2008 04:32 AM
Re: Force A Re-Read of the /etc/resolv.conf File ?
Yes, perhaps the problem is with passing the information to the applications.
Thank you all for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2008 04:33 AM
тАО10-28-2008 04:33 AM
Re: Force A Re-Read of the /etc/resolv.conf File ?
Once the "search" name is removed by networking, file should be re-read by any searching dns.