1822784 Members
4275 Online
109645 Solutions
New Discussion юеВ

Changing hostname

 
Domenico Viggiani
Super Advisor

Changing hostname

Does changing hostname require reboot?
According to my attempts, it seems that some daemons (like NFS) don't like 'hostname -S'.
6 REPLIES 6
Sandip Ghosh
Honored Contributor

Re: Changing hostname

You can do it through SAM. It does not require any reboot. You can do a net (stop/start) after changing the host name.

Sandip
Good Luck!!!
S.K. Chan
Honored Contributor

Re: Changing hostname

Using "set_parms" to change the hostname (which is the recommended) way requires a reboot after the appropriate systems files have been updated with the new hostname.

# /sbin/set_parms hostname

So to answer you question, yes a reboot is require.
MANOJ SRIVASTAVA
Honored Contributor

Re: Changing hostname

Hi

Yes it does require a reboot ,

set_parms hostname is the command to change it.


Manoj Srivastava
Christopher McCray_1
Honored Contributor

Re: Changing hostname

Hello,

Doing it the easy way does require a reboot

# set_parms hostname

I'm sure there is another way that reqiures more work

BTW -- I know of no arguments for the hostname command. You may have changed you hostname to -S

Hope this helps

Chris
It wasn't me!!!!
James R. Ferguson
Acclaimed Contributor

Re: Changing hostname

Hi:

Probably the easist way to change the hostname is to run 'sbin/set_parms hostname'. A reboot is required and a variety of daemons will restart with the altered name. Be wary of any application software which is sensitive to 'hostname'. Be aware too, if you have any DNS servers with the hostname you are changing. Two key configuration files where the hostname is recorded are '/etc/hosts' and '/etc/rc.config.d/netconf'.

Regards!

...JRF...
Regards!

...JRF...
Michael Elleby III_1
Trusted Contributor

Re: Changing hostname

Scott-

Yes it does, after you issue the set_parms hostname command to change it, you will be prompted to reboot your system.

Mike Elleby
Knowledge Is Power