- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /etc/hosts gets re-written by 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
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
тАО12-19-2009 11:28 PM
тАО12-19-2009 11:28 PM
/etc/hosts gets re-written by reboot
The server is a HP-UX 11iv3 March 2009 release. When I changed /etc/hosts to add in domain name to its own IP and reboot the server, the entries modified are changed back:
in server hostname:/etc/hosts, it has
10.10.10.1 hostname
changed to
10.10.10.1 hostname.domain.com
after a reboot, it is changed back to
10.10.10.1 hostname
The IP entries for other hosts in /etc/hosts file are not impacted. Is it a feature that can be turned off?
Thank you for your time.
Lorne
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2009 12:49 AM
тАО12-20-2009 12:49 AM
Re: /etc/hosts gets re-written by reboot
#set_parms hostname
If the above command shows the host name in hostname.domain.com than change the hostname from here. Not in /etc/hosts file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2009 12:58 AM
тАО12-20-2009 12:58 AM
Re: /etc/hosts gets re-written by reboot
that hostname.
Particularly, it edits /etc/hosts to associate the new hostname with the current IP address of the system, if that can be determined.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2009 02:14 AM
тАО12-20-2009 02:14 AM
Re: /etc/hosts gets re-written by reboot
...
in server hostname:/etc/hosts, it was
10.10.10.1 hostname
changed to
10.10.10.1 hostname.domain.com hostname
I also tried
10.10.10.1 hostname hostname.domain.com
after a reboot, it is changed back to:
10.10.10.1 hostname
The hostname is set without domain.com.
thanks
Lorne
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2009 02:57 AM
тАО12-20-2009 02:57 AM
Re: /etc/hosts gets re-written by reboot
try setting the hostname using set_parms hostname , also see what changes this makes to /etc/rc.config.d/netconf.
please post the contents of /etc/hosts as well as /etc/rc.config.d/netconf
also on my system
both the files have ownerships as bin:bin
regards
sujit