HP Visualize J210XC IRIX to HP-UX Migration Guide - Page 84

To Trace a Host Name Lookup, Updating Network-Related Files

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125

Domain Name Service
79
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