Reverse DNS
Also known as: rDNS, PTR lookup
The process of resolving an IP address back to a hostname using PTR records in special DNS zones like in-addr.arpa (IPv4) and ip6.arpa (IPv6).
Last updated:
What is reverse DNS?
Reverse DNS (rDNS) is the reverse of the usual DNS lookup: instead of converting a hostname like www.example.com into an IP address, it converts an IP address back into a hostname. This is accomplished with a PTR record (pointer record) stored in a special reverse DNS zone.
For IPv4, reverse lookups live under in-addr.arpa, with the octets reversed. To look up 192.0.2.33, a resolver queries:
33.2.0.192.in-addr.arpa → PTR mail-out-3.example.net.
For IPv6, the reverse zone is ip6.arpa, and each hex digit of the address becomes its own label (reversed), producing queries like 3.3.0.0.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa.
Who sets reverse DNS?
Reverse DNS for a block of IPs is controlled by the organization that owns the allocation — the ISP, hosting provider, or enterprise that received the CIDR range from its RIR. The owner delegates the reverse zone to their own name servers and sets PTR records there. End users cannot unilaterally change the PTR for their residential IP; they would need to ask their ISP.
Why reverse DNS matters
- Email deliverability — most mail servers reject or heavily penalize messages from IPs whose PTR record doesn't match the hostname in the SMTP
HELO(this is why setting rDNS correctly is essential for running your own mail server) - Server identification — operators often encode the hostname, datacenter, and role into PTR records, which makes tracing traffic paths much easier
- Traceroutes and logs — rDNS turns otherwise opaque IPs in logs into readable hostnames
- Threat intelligence — cloud providers, datacenters, and residential ISPs have distinctive PTR patterns, so rDNS can help classify an IP at a glance
Residential and mobile IPs often have generic, auto-generated PTR records like cpe-198-51-100-42.example-isp.net, which reveal the ISP and often the region.