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

 

Honored Contributor
Robert_Jewell
Posts: 1,238
Registered: ‎06-26-2001
Message 2 of 2 (170 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

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.