Look up 8.8.8.8 backward and the answer is dns.google.. Look up dns.google forward and the answer includes 8.8.8.8. That round trip, address to name and back to the same address, is called forward-confirmed reverse DNS, and Google’s own rules for email senders require it: “Ensure that sending domains or IPs have valid forward and reverse DNS records, also referred to as PTR records.” Every lookup in this post was run against Google Public DNS, and the results show how reverse DNS works, why an address can have several names, and why setting one up usually means asking someone else.
The backward phone book
Forward and reverse
Ordinary DNS turns names into addresses. Reverse DNS goes the other way, turning an IP address into a name, using a special record type called PTR, short for pointer. RFC 1035, the 1987 DNS specification, describes the reverse tree’s purpose as “a guaranteed method to perform host address to host name mapping.”
Why the address is written backward
Reverse lookups live under a special domain, in-addr.arpa for IPv4. The address is written with its four numbers reversed: RFC 1035’s own example is that “data for Internet address 10.2.0.52 is located at domain name 52.0.2.10.IN-ADDR.ARPA.” The RFC admits the reversal is “awkward to read,” but explains that it “allows zones to be delegated which are exactly one network of address space.” DNS names get more specific from right to left, while IP addresses get more specific from left to right; reversing the address lines the two up, so whoever controls 52.0.2.10’s network can be handed the zone for that part of the tree.
IPv6 does it by nibble
For IPv6, RFC 3596 defines the ip6.arpa domain, where an address becomes “a sequence of nibbles separated by dots,” each nibble “represented by a hexadecimal digit,” in reverse order. Every one of the 32 hex digits gets its own label. Python’s standard library builds these names directly:
import ipaddress
print(ipaddress.ip_address('208.67.222.222').reverse_pointer)
# 222.222.67.208.in-addr.arpa
print(ipaddress.ip_address('2001:4860:4860::8888').reverse_pointer)
# 8.8.8.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.6.8.4.0.6.8.4.1.0.0.2.ip6.arpaThe IPv6 version is unreadable to people and trivial for software, which is the right trade for something mostly checked by machines.

Real lookups
Four public resolvers
Querying the reverse names for four well-known public DNS services, then looking up each returned name forward:
| Address | PTR answer | Forward lookup of that name |
|---|---|---|
| 8.8.8.8 | dns.google. | 8.8.8.8, 8.8.4.4 |
| 1.1.1.1 | one.one.one.one. | 1.1.1.1, 1.0.0.1 |
| 9.9.9.9 | dns9.quad9.net. | 9.9.9.9, 149.112.112.9 |
| 208.67.222.222 | four names, including resolver1.opendns.com. | 208.67.222.222 |
Each one forward-confirms: the name in the PTR record resolves back to a list that includes the original address. None of these resolvers had to do that; they did it because operators of large public services tend to keep their reverse records tidy, and because other systems, mail servers and logging tools among them, read PTR records and trust them more when the two directions agree. The IPv6 address 2001:4860:4860::8888 also returned dns.google., and dns.google has that address among its AAAA records.
One address, several names
208.67.222.222 returned four PTR records: dns.opendns.com., dns.sse.cisco.com., dns.umbrella.com. and resolver1.opendns.com., the last with a much longer cache time than the others. Multiple PTRs are legal, and they show up when a service has been renamed or rebranded and keeps the old names working. They can confuse software that only reads the first answer, though, which is why mail operators usually keep exactly one.
Private addresses
Reverse lookups for 192.0.0.10 and 192.168.0.1 came back with status 3, NXDOMAIN, meaning “no such name.” Private address ranges have no public reverse zone. On a home or office network, the local router or DNS server may answer those queries itself with names from its own list of devices.
Who controls a PTR record
Not the domain owner
Here’s the part that trips people up. A PTR record lives in the reverse zone for the IP address, and that zone belongs to whoever owns the address block. For most businesses and home users that’s the internet provider or the hosting company, not the domain registrar or DNS provider where their other records live. Adding a PTR record in a domain’s ordinary DNS settings does nothing.
How it gets set
Cloud and hosting providers usually offer a reverse DNS field in the server’s control panel, often accepting only names that already resolve forward to that server. Business internet providers typically set it on request. Residential connections usually carry a generic provider name built from the address, and most providers won’t change it, one of several reasons mail servers on home connections struggle to deliver.
Changing it
Because the record sits in someone else’s zone, a change can take as long as their process takes, plus whatever cache time the old record had. Several of the TTLs above ran to hours: 14,701 seconds for 8.8.8.8 and 17,563 for 9.9.9.9 at the time of the queries.

Why mail servers check
A cheap identity test
When a mail server receives a connection, the only thing it knows for certain is the IP address on the other end. Checking whether that address has a PTR record, and whether the name points back to the same address, is a quick test of whether the sender’s operator controls both the address and a matching name. Compromised home computers sending spam usually fail it, because their PTR records are generic provider names, or absent.
Google’s requirement
Google’s email sender guidelines list it under infrastructure requirements for all senders: “Ensure that sending domains or IPs have valid forward and reverse DNS records, also referred to as PTR records.” The page adds that the name in a sending server’s reverse record should resolve back to the same IP address, the forward-confirmed check.
What it doesn’t prove
A matching PTR doesn’t say a message is wanted or legitimate, only that the sending server is configured by someone who controls its address and a name. Authentication systems such as SPF, DKIM and DMARC do the heavier lifting of tying a message to a domain. Reverse DNS is the minimum bar that gets a server considered at all.
Reverse DNS inside a home network
Private addresses stay local
The NXDOMAIN answers for 192.168.0.1 and 192.0.0.10 weren’t an accident. RFC 6303, “Locally Served DNS Zones” from July 2011, lists zones that recursive resolvers “should automatically serve, unless configured otherwise,” among them 10.IN-ADDR.ARPA and 168.192.IN-ADDR.ARPA for the private ranges. The RFC explains the motivation: “significant leakage of queries for these namespaces is occurring,” meaning devices around the world were asking the public internet about addresses that only make sense inside someone’s own network.
Names for the devices on a LAN
A home router or a local DNS server such as dnsmasq or Pi-hole can fill that gap by answering reverse lookups for its own network. Many routers do it automatically, using the names devices announce when they request an address. The payoff shows up in logs and tools: a firewall log or a netstat listing that says printer.lan or nas.lan is far easier to read than a column of 192.168 addresses.
Keeping them consistent
The same forward-and-back rule that mail servers apply is worth following at home. If the router hands out a fixed address to a server and gives it a name, that name should resolve to the address and the address back to the name. Mismatches don’t break much on a home network, but they make troubleshooting slower, since every tool that shows names will show the wrong one.

Checking it yourself
From the command line
On Linux and macOS, dig -x 8.8.8.8 +short performs the reverse lookup and builds the in-addr.arpa name automatically. host 8.8.8.8 does the same in a friendlier format. On Windows, nslookup 8.8.8.8 returns the PTR name when one exists.
A forward-confirmation script
This Python function checks both directions using the operating system’s resolver:
import socket, ipaddress
def fcrdns(ip):
rev = ipaddress.ip_address(ip).reverse_pointer
try:
name, aliases, _ = socket.gethostbyaddr(ip)
except socket.herror:
return f"{ip}: no PTR ({rev})"
for n in [name] + aliases:
try:
addrs = {ai[4][0] for ai in socket.getaddrinfo(n, None)}
except socket.gaierror:
continue
if ip in addrs:
return f"{ip}: PTR {n} -> forward-confirmed"
return f"{ip}: PTR {name} does NOT resolve back to {ip}"Run against the loopback addresses on the test machine, it reported 127.0.0.1: PTR localhost -> forward-confirmed and found no PTR for the IPv6 loopback ::1, because that machine’s local hosts file didn’t name it. Pointed at a mail server’s address, the same function answers the question Google’s guidelines ask.
When the answer is wrong
If a server’s PTR names something that doesn’t resolve back, the fix is usually on the forward side: add an A or AAAA record for the PTR’s name pointing at the server, in the domain’s own DNS. If the PTR itself is generic or missing, the fix is a request to whoever owns the address.
Sources
- RFC 1035, “Domain Names – Implementation and Specification,” November 1987: https://www.rfc-editor.org/rfc/rfc1035
- RFC 6303, “Locally Served DNS Zones,” July 2011: https://www.rfc-editor.org/rfc/rfc6303
- RFC 3596, “DNS Extensions to Support IP Version 6,” October 2003: https://www.rfc-editor.org/rfc/rfc3596
- Google, “Email sender guidelines” (Gmail Help): https://support.google.com/a/answer/81126
