Implementation details[edit]
IPv4 reverse resolution[edit]
Reverse DNS lookups for IPv4 addresses use the special domain in-addr.arpa
. In this domain, an IPv4 address is represented as a concatenated sequence of four decimal numbers, separated by dots, to which is appended the second level domain suffix .in-addr.arpa
. The four decimal numbers are obtained by splitting the 32-bit IPv4 address into four octets and converting each octet into a decimal number. These decimal numbers are then concatenated in the order: least significant octet first (leftmost), to most significant octet last (rightmost). It is important to note that this is the reverse order to the usual dotted-decimal convention for writing IPv4 addresses in textual form.
For example, to do a reverse lookup of the IP address 8.8.4.4 the PTR record for the domain name 4.4.8.8.in-addr.arpa
would be looked up, and found to point to dns.google
.
If the A record for dns.google
in turn pointed back to 8.8.4.4 then it would be said to be forward-confirmed.
The most common uses of the reverse DNS include: