NFS Services Administrator's Guide
Configuring and Administering NIS+
Setting Up the NIS+ Namespace
Chapter 5 229
To Configure an NIS+ Client to Query BIND
1. Log in as root to the NIS+ client host.
2. Use a text editor to open the /etc/nsswitch.conf file, and find the
line that begins with hosts. It probably looks something like this:
hosts: nisplus [NOTFOUND=return] files
Change the hosts line so that it looks like this:
hosts: dns [NOTFOUND=return] nisplus [NOTFOUND=return]
files
The NIS+ client will now query BIND first for host information. If the
BIND server is down or unreachable, it will query NIS+. Then, if no
NIS+ server is available, it will consult its local /etc/hosts file. For
more information, type man 4 nsswitch.conf at the HP-UX prompt.
To Configure an NIS+ Server to Return BIND Information to
Clients
Only servers running in NIS compatibility mode may return BIND
information to clients through NIS+.
1. Log in as root to the NIS+ server.
2. In the /etc/rc.config.d/namesvrs file, set the EMULYP variable to
“-Y -B”, as follows:
EMULYP=”-Y -B”
3. Kill the rpc.nisd daemon, and restart it with the -Y and -B options:
ps -ef | grep rpc.nisd
kill PID
rpc.nisd -Y -B
For more information, type man 1M rpc.nisd at the HP-UX prompt.