Network Information Service (NIS) B.11.31.04 Administrator's Guide
For more information, see makedbm(1M) and ypfiles(4).
Enabling the DNS Forwarding Mode
The Domain Name Service (DNS) forwarding mode enables the NIS server to use DNS
to service hosts or ipnodes requests, whenever the requested information is not available
in the NIS maps. NIS can automatically fetch the information from DNS and this
operation is transparent to the user or application and can be achieved without any
change to the /etc/nsswitch.conf configuration file.
To enable the DNS Forwarding mode on the NIS server, complete the following steps:
1. Log in to the NIS master server as a superuser.
2. Stop the NIS server:
# /sbin/init.d/nis.server stop
3. Add the -d option to the YPSERV_OPTIONS variable in the /etc/rc.config.d/
namesvrs file:
YPSERV_OPTIONS=”-d”
4. Restart the NIS server:
# /sbin/init.d/nis.server start
Configuring an HP-UX NIS Master Server in a Domain with Solaris™ Systems
To configure an HP-UX system as an NIS master server in a domain with Sun™ systems,
complete the following steps:
1. Log in as a superuser to the host that is designated as the master server.
2. If the HP Makefile is already customized, move it to /var/yp/Makefile.hp.
If not, ignore this step.
3. Copy the Sun Makefile to the /var/yp directory on the HP system.
If the Sun Makefile is not named as Makefile, use a text editor to set the
MAKEFILE_NAME variable to the name of the Sun Makefile in the /usr/sbin/
ypinit script.
4. If the HP Makefile is already customized, add those changes to the Sun Makefile.
5. In the /usr/sbin/ypinit script on the HP host that is designated as the master
server, add the netmasks.byaddr, bootparams, ethers.byaddr, and ethers.byname maps
to the MASTER_MAPS variable.
6. On one of the Sun systems, locate or create an /etc/ethers file, an /etc/
bootparams file, and an /etc/netmasks file that contain all the information
required by the Sun systems.
7. Copy the /etc/ethers, /etc/bootparams, and /etc/netmasks files to the
HP host that is designated as the master server.
8. Follow the steps for enabling the NIS Master Server capability, described in the
section “Enabling the NIS Master Server” (page 29)
40 Configuring and Administering an NIS Master Server