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.

Advertisements

4 thoughts on “Change Hostname in Solaris 10

  1. Thanks a lot! Works fine on my Solaris Express nv109

    After i changed hostname from ‘unknown’, smc runs properly

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s