Network Information Service (NIS) B.11.31.02 Administrator's Guide

To bind an NIS client to any of the specified NIS servers on a different subnet, complete the
following steps:
1. Log in to the NIS client as superuser.
2. Enter the following command, to construct a list of bind servers:
#/usr/sbin/ypinit -c
The ypinit command when invoked with the -c option, configures the local host as an
NIS client so that the NIS client attempts to bind to a particular NIS server. Invoking the
ypinit command with the -c option prompts the user to construct a list of NIS servers, in
the order of preference, to which the client will try to bind. This list of NIS servers is stored
in the /var/yp/binding/<domain_name>/ypservers file.
NOTE: Ensure that the /etc/hosts file has appropriate entries for the NIS servers added
above.
3. Run the following command to copy the /etc/nsswitch.nis file to the
/etc/nsswitch.conf file:
# cp /etc/nsswitch.nis /etc/nsswitch.conf
4. Enter the following commands to restart the NIS client:
# /sbin/init.d/nis.client stop
# /sbin/init.d/nis.client start
Binding an NIS Client to a Server on a Different Subnet 43