NFS Services Administrator's Guide
Configuring and Administering NIS
Configuring and Administering an NIS Slave Server
Chapter 4 177
The NIS_server_name is the name of the master server or a slave
server that has a complete set of up-to-date maps for the domain. If
the slave server will serve a domain different from the one set by the
domainname command, specify the domainname after the
NIS_server_name.
NOTE To configure the local host as an NFS client and enable the client to
bind to a specific server, you must use the -c option of the ypinit
command. Invoking the -c option of the ypinit command prompts
the user to provide a list of servers in the order of preference, to
which the client must bind to. To use the -c option of the ypinit
command specified in the following step, you must install patch
PHNE_24910 or later. If you do not want to use the -c option,
proceed to Step 9.
8. Issue the following command to set up the system as a client:
/usr/sbin/ypinit -c
The ypinit script will prompt you for the names of the servers the
client can bind to.
9. Copy the /etc/nsswitch.nis file to /etc/nsswitch.conf, as
follows:
cp /etc/nsswitch.nis /etc/nsswitch.conf
10. Issue the following commands to run the NIS startup scripts:
/sbin/init.d/nis.server start
/sbin/init.d/nis.client start
In order to receive map updates from the NIS master server, you must
add the new slave server to the ypservers map on the master server. See
“To Add a Slave Server to Your NIS Domain” on page 168.
For more information, see the following man pages: domainname(1),
ypinit(1M), and ypfiles(4).