Skip to content

Learn · DNS

Reverse DNS and PTR records

2 min read3 sources

Reverse DNS asks the opposite question: given an address, which name does its owner associate with it? The answer is useful context, not verification.

How reverse lookups work

Forward DNS maps names to addresses. Reverse DNS stores PTR records under special domains: in-addr.arpa for IPv4 and ip6.arpa for IPv6. For 203.0.113.7, a resolver looks up 7.113.0.203.in-addr.arpa and returns whatever hostname the address owner published.

Control follows the address, not the domain. The organisation that holds the IP block, usually an internet provider or hosting company, decides what the PTR record says, or delegates that ability to the customer.

Where it matters

  • Email: many receiving servers expect a sending server’s address to have a PTR record, and often expect the hostname to resolve back to the same address. This is called forward-confirmed reverse DNS.
  • Logs and diagnostics: a hostname such as a provider’s naming pattern makes traceroutes and server logs easier to read.
  • Network inventory: administrators use PTR records to label routers and servers.

What a PTR record does not prove

A PTR record is a label chosen by whoever controls the address block. It can be missing, stale, generic, or deliberately misleading, and it does not tell you who is using the address right now. A hostname that contains a city name or a famous brand is not evidence that the traffic came from that place or company. Always confirm with a forward lookup and treat the result as one clue among several.

Reverse IP tools that list “domains hosted on this IP” use a separate dataset built from crawling and passive DNS. Shared hosting can put thousands of unrelated sites on one address, so listings do not imply a relationship between them.

Checking and fixing reverse DNS

  1. Run the reverse IP lookup on the address to read its PTR record.
  2. Take the hostname it returns and run a DNS record lookup for its A or AAAA record. If it points back to the same address, the pair is forward-confirmed.
  3. If you run a mail server and the PTR is missing, ask the provider that owns the IP block to set it. You usually cannot set it in your own domain’s DNS panel.
  4. Keep the PTR hostname consistent with the name your mail server announces when it connects.

Tools and next reads

Sources

These guides provide general information. Check your provider’s own documentation for settings specific to your equipment.

Back to all guides