Working With Oracle® Solaris 11.2 Directory and Naming Services: DNS and NIS

Exit Print View

Updated: July 2014

How to Set a Machine's NIS Domain Name

To change the NIS domain name of a machine, use the following procedure.

  1. Become an administrator.

    For more information about obtaining the appropriate rights to perform specific tasks, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .

  2. Define the NIS domain name.
    # domainname
  3. Update and run the domain name services.
    # svccfg -s nis/domain:default refresh
    # svcadm enable nis/domain
  4. Set up the machine as an NIS client, a slave server, or a master server.

    See Chapter 6, Setting Up and Configuring Network Information Service for details.