Go to main content

Configuring and Managing Network Components in Oracle® Solaris 11.3

Exit Print View

Updated: December 2017

How to Configure a NIS Client by Using Specific NIS Servers

Before You Begin

The following procedure requires that the host names (servers) that are specified in Step 3 can be resolved by DNS. If you are not using DNS, and you type a host name instead of an IP address, make sure to add an appropriate entry for each NIS server to the /etc/hosts file on the client. For more information, see the ypinit(1M) man page.

  1. Become an administrator.
  2. Set the NIS domain.
    # domainname example.com
    # svcadm enable network/nis/domain
  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 that are closest (in network terms) to the physical machine than servers that are located in more distant parts of the network.

  4. Enable the NIS client.
     # svcadm enable network/nis/client