Maintaining a sensible mapping of domain names to IP addresses is complicated by
DHCP. When a network administrator’s work of keeping track of IP addresses has
been automated by a DHCP server, the network administrator won’t necessarily
know when a new computer is connected to the network. Network administrations
who use registration systems and only allow registered hosts to connect may not
have this problem, but many networks allow connections by unregistered hosts.
On such networks, it is still useful for computers that connect using DHCP to have
names and reverse mappings published in the DNS, but in such a case, the process
of choosing a name and configuring it in DNS can’t easily be done by the
administrator.
One solution is to populate the DNS server with preassigned domain names for all
the addresses that DHCP manages. Because the names of the clients are not known
when DNS is being configured, the network administrator simply makes up a name
for each IP address being managed by DHCP. The name could be imaginative, or it
could be something mechanical, perhaps based on the IP address. For example, if a
DHCP client on the GSI internetwork is assigned 192.168.11.25, its name in DNS
could have been previously configured to be
net11-host25.
genericstartup
.com
. The
DNS database is preconfigured with an
A record that maps net11-host25 to
192.168.11.25 and a
PTR record that maps
25.11.168.192.in-addr.arpa
to
net11-
host25.
genericstartup
.com
.
There are a couple problems with this. First, net11-host25.genericstartup.com is
not much easier to remember than 192.168.11.25. This problem could be solved by
simply choosing names that are really names—for example, the names of streets in
the local city. Second, the client’s name changes whenever its IP address changes. For
a desktop computer in an office, that isn’t a big problem, but for a roaming laptop or
for a customer of a broadband ISP that does dynamic IP address allocation, it isn’t
very useful.
Dynamic Updates to the DNS Database
RFC 2136, “Dynamic Updates in the Domain Name System,” describes a mechanism
that allows DNS client programs to automatically make changes to the DNS data-
base, using DNS protocol messages. This means that the DHCP server or the DHCP
client can directly change the
A and PTR records for a particular IP address, without
the intervention of the network administrator.
The dynamic update mechanism enables clients to supply prerequisites, which are
conditions about data in the DNS zone that must be satisfied before the DNS server
performs an update. A DNS server performing a dynamic update first checks all the
prerequisites in the update request. If all those prerequisites are met—that is, if all
the conditions specified as prerequisites are true—the server performs all the
requested changes to the DNS data. For example, DHCP clients and servers use
prerequisites in DNS update messages to detect duplicate domain names.
Dynamic Updates to the DNS Database 179
014 3273 CH11 10/3/02 4:56 PM Page 179