OIT Logo

   Princeton University
   OIT Help Desk
   OIT Servers & Storage

Changing a hostname

The following steps are required to change a Sun system's hostname.

  • /etc/hosts.allow (to correct access permissions)
  • /etc/dfs/dfstab on this system's NFS servers (to allow proper mount access)
  • /etc/vfstab on this system's NFS clients (so they will point at the correct server)
  • kerberos configurations
  • ethers and hosts NIS maps
  • DNS information
  • Netgroup information
  • cron jobs should be reviewed.
  • Other hostname-specific scripts and configuration files.

Additional steps may be required in order to correct issues involving other systems.

Having said all that, the minumum number of changes required are:

  • /etc/nodename
  • /etc/hosts
  • /etc/hostname.*
  • /etc/net/*/hosts

Page © 2011 by the Trustees of Princeton University.
Content © 2011 by Scott Cromar, from The Solaris Troubleshooting Handbook. Used with permission.
Comments on the contents of this page may be logged to
The Solaris Troubleshooting Blog