- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- DNS setting (resolv.conf) change without reboot
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
тАО01-25-2007 02:17 AM
тАО01-25-2007 02:17 AM
DNS setting (resolv.conf) change without reboot
Dear all,
I need to change the DNS nameserver parameters in the resolv.conf file on my HP-UX 11 boxes, as our DNS server IP address is changing.
I expect that any changes to resolv.conf will not be in effect immediately, but is there a way to tell HP-UX to reload/reread the resolv.conf file (something like inetd -c) without having to reboot the box?
Thanks in advance
/Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2007 02:20 AM
тАО01-25-2007 02:20 AM
Re: DNS setting (resolv.conf) change without reboot
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2007 02:24 AM
тАО01-25-2007 02:24 AM
Re: DNS setting (resolv.conf) change without reboot
Thanks, thats good news :o)
/Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2007 09:23 AM
тАО01-25-2007 09:23 AM
Re: DNS setting (resolv.conf) change without reboot
Also, as a tip, you can add these settings:
retrans 2500
retry 2
That means server will only try a dns server twice - if it doesn't respond, then it will go to the next one.
man resolv.conf for more info.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2007 05:33 AM
тАО01-26-2007 05:33 AM
Re: DNS setting (resolv.conf) change without reboot
So, it wasn't necessary to _reboot_ to have the change take effect, but it could be necessary to restart certain long-lived processes.
One way to test the hpothesis would be to write your own long-lived process. Have it make a getaddrinfo() call (because everyone should have migrated off of gethostbyname by now) and then go to sleep for a while. Then change the resolve.conf file and see if when the process wakes-up and tries another getaddrinfo() call if it rereads resolve.conf - you can do that with the tusc system call trace utility - you should see open/read of resolve.conf and then if a long-lived process is going to see changes, either another arbitrary open/read of resolv.conf, or a stat() of it.