System Administration Guide: Advanced Administration

How to Change a System's Host Name

A system's host name is specified in several different locations.

Remember that you will need to update your name service database to reflect the new host name.

  1. Become superuser.

  2. Change the system's host name in the following files:

    • /etc/nodename

    • /etc/hostname.xxy

    • /etc/inet/hosts

    • /etc/net/ticlts/hosts

    • /etc/net/ticots/hosts

    • /etc/net/ticotsord/hosts

  3. (Optional) If using a name service, change the system's host name in the hostfile.

  4. Reboot the system to activate the new host name.


    # init 6