Advanced NIS administration

Using NIS in conjunction with DNS

Hostname and address lookups may be configured in one of the following ways:

You can dictate whether NIS or DNS is used to perform name/address resolution by editing the directory lookup libraries field in the network configuration database /etc/netconfig (for more information, see the netconfig(4bnu) manual page).

To configure host name and address lookups, perform the following procedure:

  1. Log in as NIS administrator and access /etc/netconfig using your preferred text editor.

    To use NIS exclusively, set the directory lookup libraries field to ``/usr/lib/''.

    To use DNS if NIS is not running, set the directory lookup libraries field to ``/usr/lib/,/usr/lib/''.

    To use NIS initially, followed by DNS if NIS fails, set the directory lookup libraries field to ``/usr/lib/,/usr/lib/''.

    NOTE: Only the /etc/netconfig entries for the services tcp, udp, rawip and icmp should reference the /usr/lib/ library.

    Also note that the entries for these services, in addition to referencing the /usr/lib/ library, may also reference the /usr/lib/ library in order to search the /etc/hosts file.

  2. Make sure all machines (clients and servers) have an /etc/resolv.conf file that points to a valid name server (see ``The Client Manager interface'' for instructions on how to edit this file).
The following shows an example /etc/netconfig file.
   tcp     tpi_cots_ord    v       inet    tcp     /dev/tcp \
   udp     tpi_clts        v       inet    udp     /dev/udp  \
   icmp    tpi_raw -       inet    icmp    /dev/icmp \
   rawip   tpi_raw -       inet    -       /dev/rawip \

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004