Reverse DNS: IP address to hostname
Reverse DNS, or rDNS, maps an IP address back to a hostname using a PTR record stored under the special in-addr.arpa zone for IPv4 or ip6.arpa for IPv6. Mail servers check it, and Google requires valid forward and reverse DNS for senders.
- The IP is written backwards and suffixed with in-addr.arpa (IPv4) or ip6.arpa (IPv6).
- Mail receivers use it to judge whether a sending server is legitimate.
- Whoever controls the IP block, usually the host or ISP, sets the PTR, not your domain registrar.
What does a reverse lookup look like?
; IPv4: octets reversed + in-addr.arpa (RFC 1035 example)
52.0.2.10.in-addr.arpa. IN PTR host.example.com.
; IPv6: each hex digit (nibble) reversed + ip6.arpa (RFC 3596 example)
b.a.9.8.7.6.5.0.4.0.0.0.3.0.0.0.2.0.0.0.1.0.0.0.0.0.0.0.1.2.3.4.ip6.arpa.
; command line
dig -x 10.2.0.52What is forward-confirmed reverse DNS?
- 01
Reverse lookup the IP
The sending server's IP must have a PTR record that gives a hostname.
- 02
Forward lookup the hostname
The hostname must resolve through an A or AAAA record.
- 03
Compare the addresses
The forward result must match the original IP. Google requires this match for mail senders.
- 04
Ask the IP owner to fix gaps
PTR changes go through your hosting provider or ISP, which controls the reverse zone.
Common questions
What is a PTR record?
A PTR (pointer) record maps an IP address, written under in-addr.arpa or ip6.arpa, to a hostname. It is the reverse of an A or AAAA record, which maps a name to an address.
Why does email need reverse DNS?
Receiving servers often check that the sending IP has a PTR record matching a hostname that resolves back to that IP. Google's sender guidelines say the sending IP must have a PTR record resolving to a hostname.
How do I set up reverse DNS for my server?
Ask whoever assigned the IP, normally your hosting provider or ISP, or use their control panel if it exposes PTR editing. You cannot set it in your domain's DNS zone unless the provider delegates the reverse zone to you.
Keep reading
Watch your domains automatically
Aepto monitors expiry, DNS, SSL and uptime for every domain you own and alerts you when something changes. Free for 3 domains.