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

Setting the Default Domain Name, Configuring a Primary Master Name Server

Page 78 highlights

Domain Name Service Setting the Default Domain Name If you will be using an /etc/resolv.conf file on your host, configure the default domain name with the search or domain keyword. If you will not be using an /etc/resolv.conf file, follow these steps: 1. Set the default domain name with the hostname command, by appending the domain name to the host name, as in the following example: # /usr/bin/hostname indigo.div.inc.com Do not put a trailing dot at the end of the domain name. 2. Set the HOSTNAME variable in the /etc/rc.config.d/netconf file to the same value, as in the following example: HOSTNAME=indigo.div.inc.com Configuring a Primary Master Name Server 1. Make sure the /etc/hosts file is up to date on the host that will be the primary master server. 2. On the host that will be the primary master, create the /etc/named.data directory, where the name server data files will reside, and make it the current directory: # mkdir /etc/named.data # cd /etc/named.data 3. Issue the following command to generate the name server data files from the /etc/hosts file: # /usr/sbin/hosts_to_named -d domainname -n network_number. The following is an example: # /usr/sbin/hosts_to_named -d div.inc.com -n 15.19.8 4. Move the named.boot file to the /etc directory: # mv /etc/named.data/named.boot /etc/named.boot 5. Copy the file /usr/examples/bind/db.cache.arpa to the /etc/named.data directory. This file is a list of root name servers. You can also use anonymous ftp to get the current list of root name servers from rs.internic.net. Instructions are included in the /usr/examples/bind/db.cache.arpa file. 6. Use the list of root name servers from the /usr/examples/bind/db.cache.arpa file or from rs.internic.net to update the /etc/named.data/db.cache file. The hosts_to_named program creates this file but does not add any data to it. The hosts_to_named program creates the following data files in the directory from which it is run: /etc/named.boot /etc/named.data/db.cache /etc/named.data/db.127.0.0 /etc/named.data/db.[ domain] /etc/named.data/db.[ net] Naming these files db.[ name] is a Hewlett-Packard convention. You can also create these files manually using a text editor. If you choose to create them manually, you must convert all host names to fully qualified domain names (names containing all labels from the host to the root, terminated with a dot; for example, indigo.div.inc.com). 73

  • 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
73
Setting the Default Domain Name
If you will be using an
/etc/resolv.conf
file on your host, configure the default domain name with the
search
or
domain
keyword. If you will not be using an
/etc/resolv.conf
file, follow these steps:
1.
Set the default domain name with the
hostname
command, by appending the domain name to the host
name, as in the following example:
# /usr/bin/hostname indigo.div.inc.com
Do not put a trailing dot at the end of the domain name.
2.
Set the
HOSTNAME
variable in the
/etc/rc.config.d/netconf
file to the same value, as in the
following example:
HOSTNAME=indigo.div.inc.com
Configuring a Primary Master Name Server
1.
Make sure the
/etc/hosts
file is up to date on the host that will be the primary master server.
2.
On the host that will be the primary master, create the
/etc/named.data
directory, where the name
server data files will reside, and make it the current directory:
# mkdir /etc/named.data
# cd /etc/named.data
3.
Issue the following command to generate the name server data files from the
/etc/hosts
file:
# /usr/sbin/hosts_to_named -d domainname -n network_number.
The following is an example:
# /usr/sbin/hosts_to_named -d div.inc.com -n 15.19.8
4.
Move the
named.boot
file to the
/etc
directory:
# mv /etc/named.data/named.boot /etc/named.boot
5.
Copy the file
/usr/examples/bind/db.cache.arpa
to the
/etc/named.data
directory. This file is a list of
root
name servers. You can also use anonymous
ftp
to get the current list of
root
name servers from
rs.internic.net
. Instructions are included in the
/usr/examples/bind/db.cache.arpa
file.
6.
Use the list of
root
name servers from the
/usr/examples/bind/db.cache.arpa
file or from
rs.internic.net
to update the
/etc/named.data/db.cache
file. The
hosts_to_named
program creates
this file but does not add any data to it.
The
hosts_to_named
program creates the following data files
in the directory from which it is run:
/etc/named.boot
/etc/named.data/db.cache
/etc/named.data/db.127.0.0
/etc/named.data/db.[ domain]
/etc/named.data/db.[ net]
Naming these files
db.[ name]
is a Hewlett-Packard convention. You can also create these files
manually using a text editor. If you choose to create them manually, you must convert all host names
to fully qualified domain names (names containing all labels from the host to the
root
, terminated with
a dot; for example,
indigo.div.inc.com
).