Hostname not getting changed (149 Views)
Reply
Regular Advisor
titu
Posts: 139
Registered: ‎01-06-2008
Message 1 of 2 (149 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.

 

Thanks

Titu

 

Please use plain text.
Honored Contributor
Robert_Jewell
Posts: 1,210
Registered: ‎06-26-2001
Message 2 of 2 (110 Views)

Re: Hostname not getting changed

I might suggest doing the following:

 

vi /etc/rc.config.d/netconf

 

   edit the line:

 

   HOSTNAME="your-new-hostname"

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.

 

-Bob

Please use plain text.
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