Solaris Naming Administration Guide

Changing a Machine's NIS Domain

To change the NIS domain name of a machine:

  1. Edit the machine's /etc/defaultdomain file, exchanging its present contents with the new domain name for the machine.

    For example, if the current domain name is sales.doc.com, you might change it to research.doc.com.

  2. Run domainname `cat /etc/defaultdomain'

  3. Set the machine up as a NIS client, slave, or master server.

    See Solaris Naming Setup and Configuration Guide for details.