General
Showing results for 
Search instead for 
Do you mean 

Hostname not getting changed

Regular Advisor

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

 

1 REPLY
Highlighted
Honored Contributor Honored Contributor

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

----------------
Was this helpful? Like this post by giving me a thumbs up below!