Reverse DNS Explained: PTR Records, Shared Hosting & Security

Everything you need to know about reverse DNS resolution and its security implications

What is Reverse DNS?

Reverse DNS (rDNS) is the process of resolving an IP address back to a hostname. While forward DNS maps domain names to IP addresses (example.com → 93.184.216.34), reverse DNS does the opposite: it takes an IP address and returns the associated hostname. This is accomplished through PTR (Pointer) records stored in a special DNS zone.

Reverse DNS serves a different purpose than a reverse IP lookup. A PTR query returns the single canonical hostname set by the IP owner, while a reverse IP lookup (like the one at reverseips.com) uses passive DNS data to find all domains that have ever pointed to that IP.

How PTR Records Work

PTR records live in the in-addr.arpa zone (for IPv4) or ip6.arpa zone (for IPv6). To look up the PTR record for the IP 93.184.216.34, the DNS resolver queries 34.216.184.93.in-addr.arpa — notice the octets are reversed. The response contains the hostname that the IP owner has configured.

Key characteristics of PTR records:

Shared Hosting Architecture

Modern web hosting relies heavily on shared infrastructure. Understanding how multiple domains coexist on one IP is essential for security analysis and OSINT investigations.

Name-Based Virtual Hosting

The most common approach is name-based virtual hosting. When a browser connects to a web server, it sends the requested domain name in the HTTP Host header (for HTTP) or the SNI (Server Name Indication) extension (for HTTPS). The web server — Apache, Nginx, or similar — reads this value and serves content from the appropriate virtual host configuration. This allows a single server with a single IP to host thousands of websites.

SNI and HTTPS

Server Name Indication (SNI) extends TLS to include the target hostname in the initial handshake, before the encrypted connection is established. Without SNI, an HTTPS server with a single IP could only present one SSL certificate, limiting it to one domain. With SNI (supported by all modern browsers and servers), each virtual host can have its own certificate. This is how shared hosting providers offer HTTPS for all their customers without requiring dedicated IPs.

IP-Based Virtual Hosting

In IP-based hosting, each website gets its own dedicated IP address. The server uses the destination IP of the incoming connection to determine which site to serve. This was the norm before SNI became widespread and is still used in some cases, such as when clients that do not support SNI must be accommodated or when certain applications require a dedicated IP for compliance or technical reasons.

Security Implications of Shared Hosting

Knowing which domains share an IP is not just an academic exercise — it has real security consequences:

How CDNs Affect Reverse IP Lookups

Content Delivery Networks like Cloudflare, AWS CloudFront, and Akamai add an important layer of complexity to reverse IP analysis:

Real-World Investigation Scenarios

Here are practical examples of how security professionals use reverse DNS and reverse IP data:

Tools for DNS and IP Investigation

Get Started

Ready to investigate an IP address? Visit the reverseips.com homepage and enter any IPv4 or IPv6 address to see all domains hosted on it. For enterprise-grade DNS intelligence, explore Profundis.io.