Go to main content

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

Exit Print View

Updated: October 2017

How to Configure an NIS Client Using Specific NIS Servers

Before You Begin

The following procedure requires that the hostnames that are entered in step 3 are resolved. If you intend to provide a hostname instead of an IP address, ensure that there are appropriate entries for each NIS server in the /etc/hosts file on the client before performing this procedure. For more information, see the ypinit(1M) man page.

  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.3.

  2. Set the NIS domain name.
    # domainname
    # svcadm enable network/nis/domain:default
  3. Run the client configuration script.
    # ypinit -c

    You are prompted to name the NIS servers from which the client obtains naming service information. You can list the master server and as many slave servers as you want. The servers that you list can be located anywhere in the domain. It is a better practice to first list the servers closest (in network terms) to the physical machine, than those servers that are located on more distant parts of the network.