Configuring an NIS Client

NIS clients make up the majority of hosts in an NIS domain. Clients do not maintain maps, but rather query servers for information. (Clients do not distinguish between master and worker servers.) If you are configuring a worker server that is not on the same IP network as the master server, you must configure the new server as an NIS client first.

Procedure

To configure an NIS client, do the following tasks on the client host:

  1. Follow the instructions in Preparing a Host for NIS Configuration.
  2. Set the domain name by following the instructions in Setting the NIS Domain Name.

You then start the client using NIS. Use the Web-based System Manager or use one of the following procedures.

  • Using SMIT:
    1. Enter the fast path: smit mkclient.
    2. Specify both in the START the NIS client... field.
    3. Accept your changes and exit SMIT.

      The system performs two tasks. First, it starts the ypbind daemon. Second, it uncomments the entry in the /etc/rc.nfs file for the ypbind daemon.

    4. Follow the instructions in Setting Up NIS Client Files to Use NIS Services.
  • Using the command line:
    1. Start the ypbind daemon by following the instructions in Starting and Stopping NIS Daemons.
    2. Edit the /etc/rc.nfs file and uncomment the lines that use the startsrc command to start this daemon. Specifically, delete the pound signs in the following example:
      #if [ -x /usr/etc/ypbind ]; then
      #       startsrc -s ypbind
      #fi
      so it looks like:
      if [ -x /usr/etc/ypbind ]; then
             startsrc -s ypbind
      fi