HP Visualize J282 IRIX to HP-UX Migration Guide - Page 84
To Trace a Host Name Lookup, Updating Network-Related Files
View all HP Visualize J282 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 84 highlights
Domain Name Service the policy command displays the following: # Lookups = 2 dns [RCCR] files [RRRR] To stop the nslookup program, type exit. To Trace a Host Name Lookup To trace a host name lookup, start nslookup, set the swtrace option, and perform a lookup, as follows: # nslookup > set swtrace > hostname for the nsswitch.conf file containing the hosts line: hosts: dns [NOTFOUND=continue] nis [NOTFOUND=continue] files The following example tries all three name services before it finds an answer: # nslookup > set swtrace > romney Name Server: hpindbu.cup.hp.com Address: 15.13.104.13 lookup source is DNS Name Server: hpindbu.cup.hp.com Address: 15.13.104.13 *** hpindbu.cup.hp.com can't find romney: Non-existent domain Switching to next source in the policy lookup source is NIS Default NIS Server: hpntc43c Address: 15.13.119.52 Aliases: hpntc43c.cup.hp.com, hpntc43c-119, 3c-119 *** No address information is available for "romney" Switching to next source in the policy lookup source is FILES Using /etc/hosts on: hpntc2k Name: romney Address: 15.13.104.128 NOTE: If you do not set swtrace, nslookup displays only the first name service where it looks for a host, even if it finds the host in another name service. Updating Network-Related Files After you configure your system to use BIND, the following network-related configuration files require fully-qualified domain names for all hosts outside your local domain: /etc/hosts.equiv $HOME/.rhosts /var/adm/inetd.sec $HOME/.netrc To Update /etc/hosts.equiv and $HOME/.rhosts Flat or string-type host names that are not hosts in the local domain must be converted to fully qualified domain names in the /etc/hosts.equiv file and in all $HOME/.rhosts files. The shell script convert_rhosts, found in /usr/examples/bind, accepts input conforming to the syntax in hosts.equiv and converts it to fully 79