- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- the hostname in /etc/hosts automatically changed a...
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
Forums
Discussions
Discussions
Discussions
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
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-20-2008 11:51 PM
10-20-2008 11:51 PM
the hostname in /etc/hosts automatically changed after reboot
sorry to bother you.
i dont know why the content in /etc/hosts had been changed automatically.
I have 3 NIC which ip as following:
nic0 192.168.0.1
nic1 10.10.0.1
nic2 10.10.1.100
the hostname is "HOSTA".
IN THE ”/etc/hosts“ file, I manually enter the following items.
-----------------------
192.168.0.1 HOSTA-HB
10.10.0.1 HOSTA-MGMT
10.10.1.100 HOSTA
-----------------------
BUT WHEN I reboot the system,all content had been modified to:
-------------------
192.168.0.1 HOSTA
10.10.0.1 HOSTA
10.10.1.100 HOSTA
-------------------
can any one kindly to tell me why?
thank you
- Tags:
- hostname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2008 12:38 AM
10-21-2008 12:38 AM
Re: the hostname in /etc/hosts automatically changed after reboot
#/sbin/set_parms hostname and reboot the system.
also you can modify
/etc/rc.config.d/netconf for the same purpose.
Cheers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2008 01:10 AM
10-21-2008 01:10 AM
Re: the hostname in /etc/hosts automatically changed after reboot
do i need some actions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2008 03:33 AM
10-21-2008 03:33 AM
Re: the hostname in /etc/hosts automatically changed after reboot
I don't see any possibilities of /etc/hosts content changed during reboot except if you have some startup script written to do so.
Just to confirm, have you saved the file after you made the changes and before reboot?
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2008 08:02 PM
10-21-2008 08:02 PM
Re: the hostname in /etc/hosts automatically changed after reboot
since this host have 3NIC, and each NIC had difference IP