HP-UX HB v13.00 Ch-10 - Network Services

HP-UX Handbook Rev 13.00 Page 8 (of 26)
Chapter 10 Network Services
October 29, 2013
The reasoning behind this recommendation is that nsquery uses the same resolver routines as a
typical application; therefore, it will act similarly if there is an unresponsive nameserver
referenced in /etc/resolv.conf.
The DNS BIND distribution provides the tool dig which is an industry standard and very useful
for seeing the complete DNS server’s response to queries.
Often it is good to check for consistency between forward and reverse lookups.
# nsquery hosts <suspect name>
# nsquery hosts <expected IP>
Please be aware that the different commands handle their own caching mechanisms for names
and resolver policies to improve performance (after changing /etc/nsswitch.conf, some long
running processes such as inetd may need to be restarted to see the changes).
The system as a NIS client
Run domainname to specify the NIS domain the client should join and start the ypbind process
afterwards. Add the following lines to /etc/rc.config.d/namesrvs to start the NIS client during
boot-up:
NIS_CLIENT=1
NIS_DOMAIN=<Name of the NIS-Domain>
The startup script /sbin/init.d/nis.client will use this information to start the ypbind process.
The ypbind process used to broadcast to find a NIS server within its local subnet. It then bound
itself to the first server that answered. If a server from another subnet should be used, some
special options like ypset or ypsetme had to be specified (see ypbind and ypset man-pages;
additional entries in /etc/rc.config.d/namesrvs were required). This behavior is documented in
every manual covering NIS.
New functionality became available with some patches. Current installations can use the
command ypinit c”. It asks for a list of NIS servers, to be stored in /var/yp/binding/ypservers.
If this file exists, the ypbind process will not use broadcasts to find a NIS server; instead it will
contact the listed servers one by one and only use broadcasts in case none of the listed servers
answers.
The improved ypinit command is usr/sbin located at /usr/newconfig/.
NIS Troubleshooting, first steps:
You should check:
Determine to which domain this NIS client is bound