Configuring and Managing MPE/iX Internet Services (MPE/iX 6.5)

130 Chapter8
DNS BIND/iX
Data Files
Address-to-Name Mapping
Also called reverse mapping, the zone.ADDR db file allows resolvers to
post queries armed with only the IP address of a host. This reverse
mapping is used, for example, by Internet server software that prefers
to log host names rather than less informative IP addresses.
Address-to-name mapping data will be provided for a DNS server by
PTR entries in its zone.ADDR files, one for every network served by this
DNS server, and its zone.LOCAL file.
Each entry will indicate the IP address in reverse order, then the host
name. For example, for host littledog.maxx.net, whose IP address is
204.251.17.249, in the zone.ADDR file it’s PTR entry would look like:
249.17.251.204. IN PTR littledog.maxx.net.
Why is it backwards? Recall that DNS does its parsing from right to
left, from most inclusive to most specific. For IP addresses, it needs to
parse in the same direction. But IP addresses, from right to left, go from
most specific to most inclusive. So the simple answer is to reverse the
IP address in the NDS PTR records. Now DNS can parse in the same
direction, and resolve in the same order — from most inclusive to most
specific.
A shortcut in PTR records is often used. It looks like this:
249 IN PTR littledog.maxx.net.
If the dot is left off the IP address in the PTR record, DNS will complete
the IP address with the IP address of the domain, specified in the file’s
SOA record. This is also true for A records in name-to-address mapping
db files. If the dot is left off, DNS will automatically try to complete the
name with the full domain name in this zone. Paying attention to the
terminating dot is important.
For the zone.LOCAL file we describe the loopback address just as you
would expect it, now that we know we have to reverse it. The PTR entry
in the zone.LOCAL file would look like:
1.0.0.127. IN PTR localhost.
or, using the shortcut:
1 IN PTR localhost.
Only one line from named.conf remains to be discussed, the “cache”
entry. This is a bit of a misnomer as it doesn’t have anything to do with
local caching. Instead, it defines the master root domain name servers
for the Internet. You can retrieve this list from
ftp://nic.ddn.mil/netinfo/root-servers.txt. You will need to
check this site periodically to ensure you have the latest list.