Glad you found the answer. And you are right: for the reverse mapping to work, you need two things: a zone with a name that is a portion of the special
in-addr.arpa domain, preceded by the first portion (the part matching most of the network number) of the IP address in reverse-octet order, and then a zone file containing PTR records. The fields of each of those records are:
reverse_name IN PTR forward_name
In the fully-expanded version, such a record would look like this:
Code:
12.0.0.10.in-addr.arpa IN PTR your_machine.bogus.
Because of some general rules about what DNS assumes about partial names and which parts of the record are optional, you can shorten this in these ways:
1. If your zone is
0.0.10.in-addr.arpa, you do not need to supply this for each PTR record; it is appended automatically unless you terminate the reverse name with a period (.)
2.Once upon a time, DNS was thought to be useful for more than just IP name resolution, and so there is an address class field defined for each record, just after the reverse_name. If you do not supply it, the class is assumed to be
IN (for Internet).
This brings us to the result you came up with, where you only need to supply the last part of the IP address in the zone file, and can follow it (after some whitespace) with the record-type word
PTR.