Reverse Lookup: Finding the Name Recorded for an IP Address
A reverse lookup asks for the name recorded for an IP address, the numeric address used in Internet Protocol communication. The Domain Name System, or DNS, stores information about names and addresses. Asking it for a name is a separate question from asking which address belongs to that name.
That separation explains both the lookup's usefulness and its limits. The answer can give a number a readable label. It comes from a particular stored record, rather than from a search for everyone and everything using that address.
What Happens When You Type a Web Address?
A different question needs a different record
A forward lookup starts with a name and asks DNS for an address. A browser looking for a named website can use this direction. A DNS record is a stored entry that supplies a particular kind of answer.
A reverse lookup starts at the other end. It asks for a PTR record, short for pointer record, whose answer points to a domain name. The administrator responsible for the reverse DNS records must supply that information.
DNS doesn't answer by checking all its forward records and collecting every name that leads to the address. Reverse records occupy their own address-based part of the system. That is why a reverse lookup isn't an inventory of all the websites an address might serve.
The DNS specification describes this separate set of records. Both IPv4 and IPv6, the two versions of the Internet Protocol, support reverse lookups. Their address formats differ, but the question is still the same: which name is recorded for this address?
Reading the answer beside the activity
Suppose an administrator is reviewing a log, a computer's record of events. One entry shows a connection involving an unfamiliar IP address. A reverse lookup might return a name that resembles the organization's server-naming scheme.
That name gives the administrator something to compare with the system's own records. It can make the entry easier to investigate than a number alone. The administrator can check whether the name agrees with those records and the activity in the log.
The PTR record labels the address. It doesn't identify the person who made the connection or describe what they did. Those answers have to come from the investigation.
The same distinction applies when examining email. A returned name can be one piece of information about an address involved in delivery. It cannot, by itself, establish that a message is genuine. The record answers a naming question; judging a message requires more evidence.
- Learn how networks really work, from cabling to routing, in one book.
- Prepare for the N10-009 exam with a guide written for it.
- Keep it on the shelf as a reference long after the test.
Why the trip back may not return to the same place
Forward and reverse records are separate data. They can be missing or disagree.
For example, a reverse lookup might point an address to a particular name, while a forward lookup of that name returns a different address. The two answers haven't become consistent just because both arrived through DNS.
The IETF's guidance on common DNS configuration errors advises keeping the corresponding records consistent. Missing or conflicting records can matter to services that check them. But the advice doesn't mean every address has a PTR record, or that an absent answer identifies an attacker.
gethostbyaddr: Finding a Name Without Proving an Identity

How DNS Finds an Answer Without One Giant Directory

Forward Lookup: How DNS Finds an Address for a Name

QUOTE:
"Amateurs hack systems, professionals hack people."
