How To Change The Hostname In Solaris

To change the hostname on a Solaris system, you should edit all of these files:

  • /etc/hosts
  • /etc/nodename
  • /etc/hostname.*
  • /etc/net/ticlts/hosts        (this file is unused in Solaris 10 and above)
  • /etc/net/ticots/hosts       (this file is unused in Solaris 10 and above)
  • /etc/net/ticotsord/hosts  (this file is unused in Solaris 10 and above)

You should then reboot the server to test your changes and ensure that they operate correctly.

Some say to update “/etc/inet/ipnodes”, but that only contains the information for “localhost” and does not need to have any changes made to it.

Leave a Reply