/usr/sbin/ypinit -m
/usr/sbin/ypinit -s master-name
ypinit sets up a master server using the simple model in which that server is master to all maps in the data base. This is the way to bootstrap the NIS system; later if you want you can change the association of maps to masters.
All databases are built from scratch, either from information available to the program at runtime, or from the ASCII data base files in /etc. These files should be in their ``traditional'' form, rather than the abbreviated form used on client machines.
An NIS database on a slave server is set up by copying an existing database from a running server. The master-name argument should be the hostname of a NIS server (either the master server for all the maps, or a server on which the data base is up-to-date and stable).
To set up a client, ypinit prompts for a list of NIS servers to bind the client to, this list should be ordered from closest to farthest server.
Refer to ypfiles(4nis) and ypserv(1Mnis) for an overview of the NIS service.