NFS Services Administrator's Guide

Configuring and Administering NIS
Configuring and Administering an NIS Master Server
Chapter 4168
For more information, see the man pages ypinit(1M), make(1),
ypmake(1M), and ypfiles(4).
To Add a Slave Server to Your NIS Domain
1. Log in as root to the NIS master server.
2. Issue the following command, where domainname is the name of the
domain to which you want to add the slave server:
cd /var/yp/domainname
3. Issue the following command to create an editable ASCII text file
from the ypservers map:
/usr/sbin/makedbm -u ypservers > tempfile
4. Use a text editor to add the name of the new server to the ASCII file,
tempfile.
5. Issue the following command to regenerate the ypservers map from
the ASCII file:
/usr/sbin/makedbm tempfile ypservers
6. Log in as root to the new slave server and configure it as an NIS
slave server. See “Configuring and Administering an NIS Slave
Server” on page 173.
For more information, see the man page for makedbm(1M) or ypfiles(4).