In the example in the preceding paragraph, the PTR record’s name would be
1.0.0.10.in-addr.arpa, and its value would be dechen.example.com.
NOTE
We say “updating DNS” instead of “updating a DNS server” because DNS as a whole is a
database, and DNS servers serve portions of that database. The PTR record and the A record
for a client are in completely different parts of the database, and although it is likely in some
cases that the same DNS server will serve both of these parts, this is not a requirement. In
some of the configurations that this chapter describes, it is very unlikely that the A and PTR
records for a client will be on the same DNS server.
The Motivation for Doing DNS Updates from DHCP
A DHCP client can act as a network client without ever having an A record or a PTR
record in DNS. However, there are two problems with this. First, many network
servers require that the client’s IP address,
PTR record, and A record all match.
Second, sometimes two DHCP clients need to exchange information, and the easiest
way for their users to rendezvous is by exchanging domain names.
One additional reason for updating DNS is that it makes logging easier, particularly if
client IP addresses change a lot. It’s much easier to find a client’s hostname in a log
than it is to figure out the client’s IP address and look that up.
Many network services on the Internet check that the client’s IP address,
A record,
and
PTR record all match. They do this by first constructing a domain name from the
IP address and using that domain name to look up the
PTR record. They then use the
domain name specified in the
PTR record to look up the A record. If the client’s IP
address appears in the
A record, the client is allowed to access the network service;
otherwise, it is not.
Although this provides no authentication, it provides a small amount of accountabil-
ity; if the name server for the
PTR record and the name server for the A record agree
about the identity of the client, there’s a good chance that if the client causes a
problem, you can find the culprit by contacting the administrator of one or both of
the name servers.
The second reason for publishing the client’s name is that users of computers gener-
ally understand domain names but are less likely to understand IP addresses. Also,
with DHCP, the client’s IP address is not guaranteed to be stable. If the DHCP server
and client cooperate, however, the client’s name should be stable.
For clients that roam to different administrative domains, this stability requires that
the client be able to update its own
A record and that the DHCP server in the admin-
istrative domain to which the client has connected use the domain name supplied
by the client to update the client’s
PTR record.
CHAPTER 23 Updating DNS with DHCP394
027 3273 CH23 10/3/02 5:00 PM Page 394