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.
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
EHLOgreeting, and does not look auto-generated, such as203-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 pagesVerified 9 Nov