Operating System - HP-UX
1752353 Members
5216 Online
108787 Solutions
New Discussion

Hostname not getting changed

 
titu
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 1
Robert_Jewell
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!