Configuring Files

Once the SIMS installation determines that the DNS setup you are using is in fact good, the next step for you is to configure your resolv.conf and nsswitch.conf files.

Recall that the order in which gethostbyname() consults the sources DNS, NIS, and /etc/hosts is configured in the file /etc/nsswitch.conf.

This section provides you with the steps that help you configure the order in which the sources are consulted.

  1. Configure the /etc/nsswitch.conf to specify the DNS source and the order in which it is looked up, for example:

 
hosts: dns files
 


Note - If you have placed files before dns, make sure that your /etc/hosts files contains fully-qualified domain names for all hosts. Also, make sure that the fully-qualified domain name for the local machine appears in /etc/nodename and
/etc/hostname.*.
  2. Configure the /etc/resolv.conf file to specify how to access the Internet Domain Name System.

 
domain <domain-name>
 
nameserver <name-server-IP-address>
 

where,

domain-name specifies a local domain name that is used as the default domain,

name-server-IP-address specifies the Internet address of one name server to which the resolver should direct any queries.


Note - name-server-IP-server cannot be the same as the IP of the local host name.
Example:

The following is an example of the contents of the /etc/resolv.conf file:

domain sun.com
nameserver 129.155.121
nameserver 129.155.125
The nslookup data for the marketing host name will then be:

nslookup marketing
Name: marketing.eng.sun.com



Copyright © 1999 Sun Microsystems, Inc. All Rights Reserved.