HP-UX OSRA for Web Services 2.5 Blueprint and Configuration Guide
Configuring named With the Virtual Server Host Name
This configuration uses a DNS for the domain test.nameX.example.com. In that domain, use a
virtual host name specj.test.nameX.example.com that can use one of the following addresses:
10.10.118.230, 10.10.118.231, or 10.10.118.232. Each of these three addresses is also assigned to
another server. For instance, 10.10.118.230 is bound to the name
hpdhl230-2.test.nameX.example.com.
To configure named with the virtual host name, follow these steps:
1. Update the local /etc/hosts file with the names of the individual servers in the server
farm and with the virtual host name. For example:
127.0.0.1 localhost loopback
172.16.118.67 hptem270.nameX.example.com hptem270
#
10.10.118.67 hptem270.test.nameX.example.com hptem270.test
10.10.118.230 specj.test.nameX.example.com specj.test
10.10.118.231 specj.test.nameX.example.com specj.test
10.10.118.232 specj.test.nameX.example.com specj.test
10.10.118.208 hpdhl208.test.nameX.example.com hpdhl208.test
10.10.118.209 hpdhl209.test.nameX.example.com hpdhl209.test
10.10.118.211 hpdhl211.test.nameX.example.com hpdhl211.test
10.10.118.212 hpdhl212.test.nameX.example.com hpdhl212.test
10.10.118.214 hpdhl214.test.nameX.example.com hpdhl214.test
10.10.118.230 hpdhl230.test.nameX.example.com hpdhl230.test
10.10.118.231 hpdhl231.test.nameX.example.com hpdhl231.test
10.10.118.232 hpdhl232.test.nameX.example.com hpdhl232.test
#
10.10.119.67 hptem270-2.test.nameX.example.com hptem270-2.test
10.10.119.230 hpdhl230-2.test.nameX.example.com hpdhl230-2.test
10.10.119.231 hpdhl231-2.test.nameX.example.com hpdhl231-2.test
10.10.119.232 hpdhl232-2.test.nameX.example.com hpdhl232-2.test
#
172.16.118.66 spec-mysql.test.nameX.example.com spec-myql.test
172.16.118.4 ple.cospec-myql.testspec-mysql.test.nameX.exam
NOTE: In this example you assign three separate addresses to the virtual host name.
In this sample /etc/hosts file, two subnets are used for the configuration:
• Addresses beginning with 10.10.*
• Addresses beginning with 172.16.118.*
The configuration only uses domain names that are in the domain test.nameX.example.com
2. Generate the named configuration files in the /usr/local/domain directory using the
following commands:
# mkdir /usr/local/domain
# cd /usr/local/domain
# hosts_to_named -d test.nameX.example.com -n 10.10 -n 172.16. 118
The system displays the following information:
Translating /etc/hosts to lower case ...
Collecting network data ...
10.10
172.16.118
Creating list of multi-homed hosts ...
Creating "A" data (name to address mapping) for net 10.10 ...
The following names were left out of the database:
hptem270.test (name not in test.nameX.example.com)
specj.test (name not in test.nameX.example.com)
.
.
hpdhl230-2.test (name not in test.nameX.example.com) hpdhl231-2.test (name not in
test.nameX.example.com) hpdhl232-2.test (name not in test.nameX.example.com)
Creating "PTR" data (address to name mapping) for net 10.10 ... Creating "A" data (name to
address mapping) for net 172.16.118 ... The following names were left out of the database:
spec-myql.test (name not in test.nameX.example.com) spec-myql.test (name not in
30 Load Balancing and Cluster Configuration