ypbind
finds the server for a NIS domain and stores the information about it
in a
binding file.
The binding file resides in the directory
/var/yp/binding
and is conventionally named
domainname.version .
The only supported version is version 2.
Unless the option
-debug
is used, ypbind detaches itself from the controlling terminal and puts
itself into background.
ypbind
uses
syslog()
for logging errors and warnings.
At startup or when receiving signal SIGHUP,
ypbind
parses the file
/etc/yp.conf
and tries to use the entries for its initial binding. Valid entries
are
domain
nisdomain
server
hostname
Use server
hostname
for the domain
nisdomain .
domain
nisdomain
broadcast
Use broadcast on the local net for domain
nisdomain .
ypserver
hostname
Use server
server
for the local domain. The IP-address of
server
must be listed in
/etc/hosts .
If the file does not exist of if there are no valid entries,
ypbind
broadcasts on the local net looking for a NIS server for the local
domain.
ypbind
is split into two processes. The master process services RPC requests
asking for binding info. The slave process initializes the binding and
checks it periodically. Upon failure, the binding is invalidated and
the process tries again to find a valid server.