A P P E N D I X A |
Example Setup of Dynamic DNS |
This appendix describes how to configure the Dynamic Domain Name Service (DDNS) on a typical customer’s infrastructure. The instructions and example configuration provided here do not affect ILOM or the service processor (SP).
The following topics are covered in this appendix:
Once DDNS is configured, new ILOM systems will be automatically assigned a host name and an IP address at install time. Thus, once you have configured DDNS, clients can use either host names or IP addresses to access any ILOM SPs that have been added to the network.
By default, ILOM systems are shipped with Dynamic Host Configuration Protocol (DHCP) enabled so that you can use DHCP to configure the SP’s network interface. With DDNS, you can further leverage DHCP to automatically make the DNS server aware of the host names of ILOM systems that have been added to the network and configured using DHCP.
ILOM systems are assigned well-known host names consisting of a prefix followed by a hyphen and the ILOM SP product serial number. For rackmounted systems and server modules, the host name will consist of the prefix SUNSP and the product serial number. For a server chassis with multiple chassis monitoring modules (CMMs), the host name for each CMM will consist of the prefix SUNCMMn and the product serial number, where n is 0 or 1. For example, given a product serial number of 0641AMA007, the host name for a rackmounted system or a server module would be SUNSP-0641AMA007. For a server chassis with two CMMs, the host names for the CMMs would be SUNCMM0-0641AMA007 and SUNCMM1-0641AMA007.
Once DDNS has been configured, SP/DHCP/DNS transactions are automatically executed to add new host names and associated IP addresses to the DNS database. Each transaction comprises the following steps:
1. ILOM creates the SP host name using the appropriate prefix and the product serial number and the ILOM SP sends the host name to the DHCP server as part of the DHCP request.
2. When the DHCP server receives the request, it assigns an IP address to the ILOM SP from an available pool of addresses.
3. The DHCP server then sends an update to the DNS server to notify it of the newly configured ILOM SP’s host name and IP address.
4. The DNS server updates its database with the new information, thus completing the SP/DHCP/DNS transaction.
Once an SP/DHCP/DNS transaction is completed for a given host name, clients can make a DNS request using that host name and DNS will return the assigned IP address.
To determine the host name of a particular ILOM SP, simply check the product serial number on the outside of the SP itself and combine the product serial number with the appropriate prefix as described above. You can also determine host names by checking the server logs for DNS zone update messages.
The DNS information is updated when a DHCP lease renewal causes an IP address change, and the DNS information is deleted when the DHCP lease is released.
This section describes how to set up an example DDNS configuration. You can use the procedures and sample files provided here, with site-specific modifications, to set up your own DDNS configuration.
This following topics are covered in this section:
This example configuration is based on the following assumptions:
Configure and Start the DHCP and DNS Servers |
To configure the servers, follow these steps:
1. Install the bind9 and dhcp3-server packages from the Debian distribution.
Installing the dnsutils package provides access to dig, nslookup and other useful tools as well.
2. Using dnssec-keygen, generate a key to be shared between the DHCP and DNS servers to control access to the DNS data.
3. Create a DNS configuration file named /etc/bind/named.conf that contains the following:
4. Add empty zone files for the local network.
Empty zone files should be named /etc/bind/db.example.com and /etc/bind/db.example.rev.
Copying the distribution supplied db.empty files is sufficient; they will be updated automatically by the DNS server.
5. Create a /etc/dhcp3/dhcpd.conf file that contains the following:
6. After completing steps 1 through 5 above, run the /etc/init.d script to start the DNS and DHCP servers.
Once the servers are running, any new ILOM SPs configured for DHCP will be automatically accessible using their host name when they are powered on. Use log files, dig, nslookup, and other utilities for debugging, if necessary.
For more information on the Linux DHCP and DNS servers used in this example, see the Internet Systems Consortium web site at: http://www.isc.org/
Copyright © 2010, Oracle and/or its affiliates. All rights reserved.