Advertisement

What Is Reverse DNS? PTR Records and IP-to-Name Lookups

Normal DNS answers "what's the IP for this name?" Reverse DNS (rDNS) answers the mirror question: "what name does this IP go by?" The answer comes from a PTR record, and while everyday browsing never touches it, email delivery and network forensics lean on it constantly.

How it works

Reverse lookups use a clever trick: the IP is reversed and grafted onto a special domain. To find the name for 203.0.113.7, resolvers query the PTR record of 7.113.0.203.in-addr.arpa. (IPv6 uses ip6.arpa with each hex digit reversed.) Control of that zone follows the IP allocation โ€” meaning only whoever operates the address block can set its PTR records. You control your domain's DNS; your ISP or host controls your IP's reverse DNS.

Running a reverse lookup

nslookup 8.8.8.8
# โ†’ dns.google

dig -x 1.1.1.1 +short
# โ†’ one.one.one.one

Home ISP addresses typically return machine-generated names like cpc123-456.provider.net, encoding region or infrastructure โ€” one more clue an investigator (or WHOIS lookup) can combine with geolocation.

Advertisement

Where reverse DNS really matters: email

Mail servers are the biggest consumers of PTR records. Receiving servers routinely check that a sending server's IP has a PTR record, and that it matches the name the server announces (forward-confirmed rDNS). No PTR, or a generic residential-looking one, and your mail lands in spam or gets refused outright. This โ€” along with IP blacklists โ€” is a core reason you can't run a serious mail server from a home connection.

Other uses

Setting a PTR record

For a cloud server, the PTR is set in the hosting panel (not your domain's DNS). Set it to match your mail server's hostname exactly, and confirm forward and reverse agree. On home connections, only business plans typically allow custom PTR โ€” check with your ISP.

๐ŸŒ Curious what your connection reveals right now? Check your IP address and location โ†’

Frequently asked questions

Does every IP have a reverse DNS name?

No โ€” PTR records are optional and many addresses return nothing. Absence is normal for residential IPs and merely suspicious for mail servers.

Can reverse DNS reveal who I am?

It can reveal your ISP and sometimes coarse location baked into the hostname โ€” comparable to what geolocation already shows. It never contains your personal name.

Advertisement