Hostname not getting changed (253 Views)
Regular Advisor
Posts: 139
Registered: ‎01-06-2008
Message 1 of 2 (253 Views)

Hostname not getting changed

Hello All,


I tried changing my hostname of the system using set_parms command but after reboot it is showing the old hostname.


Any help would be appreciated.





Honored Contributor
Posts: 1,248
Registered: ‎06-26-2001
Message 2 of 2 (214 Views)

Re: Hostname not getting changed

I might suggest doing the following:


vi /etc/rc.config.d/netconf


   edit the line:



Also, change the hostname in the /etc/hosts file as well.



To set the value, either reboot or issue the following:


  # /sbin/init.d/hostname start


Use the command # uname -n to confirm.   Also run # nslookup <your-host-name> to be sure the system resolves itself properly.



The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.