How to change the hostname in a Sun Container

The easy way to change the hostname of a Sun container server is to

  1. edit /etc/nodename to reflect the new name
  2. revisit the /etc/hosts file to verify that its got the IP/Name of the container correct

There is no need to change the name of the container to be the same as the hostname of the container but I prefer to do so. Hence

  1. I change/rename the zonepath and
  2. change the zonename using zonecfg etc.

That’s it!


View all posts by

Leave a Reply

Your email address will not be published. Required fields are marked *