To add a NIS slave server:
Log in to the master server as a superuser.
Change to the NIS domain directory.
# cd /var/yp/domainname
# makedbm -u ypservers >/tmp/temp_file
Edit the /tmp/temp_file file using a text editor. Add the name of the new slave server to the list of servers. Then save and close the file.
# makedbm /tmp/temp_file ypservers
makedbm then converts ypservers back into ndbm format.
Verify that the ypservers map is correct (since there is no ASCII file for ypservers) by typing the following on the slave.
slave3# makedbm -u ypservers
The makedbm command displays each entry in ypservers on your screen.
If a machine name is not in ypservers, it will not receive updates to the map files because yppush consults this map for the list of slave servers.
Set up the new slave server's NIS domain directory by copying the NIS map set from the master server.
slave3# cd /var/yp
slave3# ypinit -c list of servers
slave3# /usr/sbin/ypinit -s ypmaster
where ypmaster is the machine name of the existing NIS master server.
Run ypstart to start NIS slave service.