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

Configuring the Name Service Switch, Server Data Files, Name Server Startup Files

Page 77 highlights

Domain Name Service 6. Enable named and reboot the station. Configuring the Name Service Switch The sole UNS configuration file is /etc/nsswitch.conf and is made up of lines of the format map: library library library. For example: hosts: nis dns files This file specifies the libraries and the order in which they are to be used. If any path element does not exist, name service library routines are called by the nsd daemon in progressive order until the element is found. The system administrator need only verify that nsd is running. Normally the nsd daemon is activated at system startup time from /etc/init.d/network if the configuration flag is set on. If the nsd configuration flag is not set on, the only name service supported is local files. The nsd daemon converts each name service request into a pathname. When it is started, nsd creates the dynamic file system namespace rooted at /ns which is used by the underlying interfaces to retrieve name system data. The format of these files mimics the format of the historic configuration files they replace. Since the file /etc/nsswitch.conf specifies the resolve order for each of the supported tables, including the host table, the hostresorder line in /etc/resolv.conf is ignored. There is one nsswitch.conf file for each domain supported by this daemon. Every machine has a local domain, .local, which has the configuration file in /etc/nsswitch.conf. Server machines support multiple domains and have a configuration file in /var/ns/domains/domainname/nsswitch.conf for each domain name. DNS Under HP-UX Server Data Files /etc/named.data/db.cache /etc/named.data/db.127.0.0.0 List the servers for the root domain Address resolution information for local loopback /etc/named.data/db.[ domain] Address resolution data for all machines in the zone /etc/named.data/db.[ net] Reverse address resolution information Naming these files db.[ name] is a Hewlett-Packard convention. Name Server Startup Files When the system boots to run-level 2 or higher, /sbin/init.d/named runs and fetches the appropriate variables from the file /etc/rc.config.d/namesvrs. The name server starts with the command /usr/sbin/named. When invoked, named reads the file /etc/named.boot, which contains the location of the database files. If you want to start named manually, type: # /sbin/init.d/named start To stop named manually, type: # /sbin/init.d/named stop 72

  • 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
72
6.
Enable
named
and reboot the station.
Configuring the Name Service Switch
The sole UNS configuration file is
/etc/nsswitch.conf
and is made up of lines of the format
map: library
library library
.
For example:
hosts: nis dns files
This file specifies the libraries and the order in which they are to be used. If any path element does not
exist, name service library routines are called by the
nsd
daemon in progressive order until the element is
found.
The system administrator need only verify that
nsd
is running. Normally the
nsd
daemon is activated at
system startup time from
/etc/init.d/network
if the configuration flag is set
on
. If the
nsd
configuration
flag is not set
on
, the only name service supported is
local files
. The
nsd
daemon converts each name
service request into a pathname.
When it is started,
nsd
creates the dynamic file system namespace rooted at
/ns
which is used by the
underlying interfaces to retrieve name system data. The format of these files mimics the format of the
historic configuration files they replace.
Since the file
/etc/nsswitch.conf
specifies the resolve order for
each of the supported tables, including the host table, the
hostresorder
line in
/etc/resolv.conf
is ignored.
There is one
nsswitch.conf
file for each domain supported by this daemon. Every machine has a local
domain,
.local
,
which has the configuration file in
/etc/nsswitch.conf
.
Server machines support multiple
domains and have a configuration file in
/var/ns/domains/domainname/nsswitch.conf
for each domain
name.
DNS Under HP-UX
Server Data Files
/etc/named.data/db.cache
List the servers for the
root
domain
/etc/named.data/db.127.0.0.0
Address resolution information for local loopback
/etc/named.data/db.[ domain]
Address resolution data for all machines in the zone
/etc/named.data/db.[ net]
Reverse address resolution information
Naming these files
db.[ name]
is a Hewlett-Packard convention.
Name Server Startup Files
When the system boots to run-level
2
or higher,
/sbin/init.d/named
runs and fetches the appropriate
variables from the file
/etc/rc.config.d/namesvrs
. The name server starts with the command
/usr/sbin/named
. When invoked,
named
reads the file
/etc/named.boot
, which contains the location of the
database files. If you want to start
named
manually, type:
# /sbin/init.d/named start
To stop
named
manually, type:
# /sbin/init.d/named stop