Change Hostname in Solaris 10

Solaris is not is easy to maintain, that from what I experienced up till now +__+. For example if you want to change the name of our computer you have to go through all this stuff, while in Windows you can do it easily :P, but this is the interesting part, you have to try it!!

Change the name in /etc/nodename

Inside here just replace the old name with the name that you wanted

Change the name in /etc/hostname.interface

Inside here just replace the old name with the name that you wanted

Change the name in /etc/hosts

127.0.0.1 localhost

10.0.0.1 new_hostname loghost

After this you can type

hostname new_hostname

After that you can try to reboot and check by ping to your new hostname.