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

Default Configuration, The /etc/nsswitch.conf File, To Check the Current hosts Configuration

Page 83 highlights

Domain Name Service Default Configuration A default nsswitch.conf file is supplied in the /usr/newconfig/etc directory. It contains the following lines: hosts: dns nis files protocols: nis files services: nis files networks: nis files netgroup: nis files rpc: nis files This is the default configuration. In other words, if you copy /usr/newconfig/etc/nsswitch.conf to /etc/nsswitch.conf, the Name Service Switch behaves the same way it would if no /etc/nsswitch.conf file existed. The /etc/nsswitch.conf File The configuration file for the Name Service Switch is /etc/nsswitch.conf, which consists of lines with the following syntax: info_type: source [status=action status=action...] source... If the /etc/nsswitch.conf file does not exist, or if no source is specified in it, the default search order is as follows: 1. DNS (for host information only) 2. NIS 3. Local /etc file For more information on the Name Service Switch, type man 4 switch at the HP-UX prompt. To Check the Current hosts Configuration To check the Name Service Switch configuration that your system is currently using for host information, start nslookup and issue the policy command, as follows: # nslookup > policy The output for the default configuration is as follows: # Lookups = 3 dns [RRCR] nis [RRCR] files [RRRR] The letters in square brackets stand for (R)eturn or (C)ontinue. They represent the values of the four status values, SUCCESS, NOTFOUND, UNAVAIL, and TRYAGAIN. In the example, the status=action pairs configured for DNS and NIS are SUCCESS=return NOTFOUND=return UNAVAIL=continue TRYAGAIN=return For the following hosts line hosts: dns [NOTFOUND=continue] files 78

  • 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
78
Default Configuration
A default
nsswitch.conf
file is supplied in the
/usr/newconfig/etc
directory. It contains the following lines:
hosts: dns nis files
protocols: nis files
services: nis files
networks: nis files
netgroup: nis files
rpc: nis files
This is the default configuration. In other words, if you copy
/usr/newconfig/etc/nsswitch.conf
to
/etc/nsswitch.conf
, the Name Service Switch behaves the same way it would if no
/etc/nsswitch.conf
file
existed.
The /etc/nsswitch.conf File
The configuration file for the Name Service Switch is
/etc/nsswitch.conf
, which consists of lines with the
following syntax:
info_type: source [status=action status=action...] source...
If the
/etc/nsswitch.conf
file does not exist, or if no source is specified in it, the default search order is as
follows:
1.
DNS (for host information only)
2.
NIS
3.
Local
/etc
file
For more information on the Name Service Switch, type
man 4 switch
at the HP-UX prompt.
To Check the Current hosts Configuration
To check the Name Service Switch configuration that your system is currently using for host information,
start
nslookup
and issue the policy command, as follows:
# nslookup
> policy
The output for the default configuration is as follows:
# Lookups = 3
dns [RRCR] nis [RRCR] files [RRRR]
The letters in square brackets stand for
(R)eturn
or
(C)ontinue
. They represent the values of the four status
values,
SUCCESS
,
NOTFOUND
,
UNAVAIL
, and
TRYAGAIN
. In the example, the status=action pairs
configured for DNS and NIS are
SUCCESS=return
NOTFOUND=return
UNAVAIL=continue
TRYAGAIN=return
For the following hosts line
hosts: dns [NOTFOUND=continue] files