Bookmarks

PTR — PTR record

pointer record

A DNS record type that returns the hostname for an IP address; mail servers use it to check the sender.

Also: PTR record, reverse DNS record, reverse DNS, rDNS

checked 9 Nov

All terms

An ordinary A record answers the question “what is the address of this name”; a PTR record answers the reverse: “what is the name of this address”. Mail servers treat it as one sign of a well-behaved sender: messages from a server with no reverse record are often rejected or sent to spam.

How reverse lookup works

A PTR record lives not in your domain’s zone but in the special zone in-addr.arpa for IPv4. The address is written backwards with a suffix added: for 203.0.113.25 the name is 25.113.0.203.in-addr.arpa. IPv6 uses the zone ip6.arpa: the address is split into hexadecimal digits, which are written in reverse order, separated by dots.

dns
25.113.0.203.in-addr.arpa. IN PTR mail.example.com.

To check the record, run dig -x 203.0.113.25 +short. The address belongs to whoever assigned it, so the PTR record is set up by your provider or host, in the server control panel or through a support request, not in your domain’s zone.

What mail servers check

  • The sender’s IP address has a PTR record.
  • The name in the PTR record resolves back to the same address through an A or AAAA record (forward-confirmed reverse DNS, or FCrDNS).
  • The name in the PTR record matches what the server announces in its EHLO greeting, and does not look auto-generated, such as 203-0-113-25.dynamic.example.

A mail address normally has a single PTR record. The PTR record is defined in RFC 1035 (Paul Mockapetris, November 1987); reverse zones for IPv6 are defined in RFC 3596.

Sources

the term is written from these pages

Verified 9 Nov

Not to be confused with

what it is mixed up with and how it differs

  • MXMX record

    An MX record says where to deliver a domain’s mail, while a PTR record maps an IP address to a name.

In depth in the references

where the topic is covered in detail