DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
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/tcpip_nis.so''.

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

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


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

    Also note that the entries for these services, in addition to referencing the /usr/lib/tcpip_nis.so library, may also reference the /usr/lib/tcpip.so 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 \
        /usr/lib/tcpip_nis.so,/usr/lib/tcpip.so,/usr/lib/resolv.so
   udp     tpi_clts        v       inet    udp     /dev/udp  \
        /usr/lib/tcpip_nis.so,/usr/lib/tcpip.so,/usr/lib/resolv.so
   icmp    tpi_raw -       inet    icmp    /dev/icmp \
        /usr/lib/tcpip_nis.so,/usr/lib/tcpip.so,/usr/lib/resolv.so
   rawip   tpi_raw -       inet    -       /dev/rawip \
        /usr/lib/tcpip_nis.so,/usr/lib/tcpip.so,/usr/lib/resolv.so

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