Location & networks

What is reverse DNS (PTR lookup)?

Reverse DNS looks for a PTR record associated with an address. It may return a name configured by the organization responsible for that reverse DNS zone.

Updated

Forward versus reverse

Forward DNS maps a name to records such as A or AAAA addresses. Reverse DNS uses specially structured names in in-addr.arpa for IPv4 and ip6.arpa for IPv6. The responsible zone can publish a PTR record pointing to a hostname.

Why results can be missing

Not all addresses have PTR records. A provider may publish generic names for many customer connections, or configure a name for operational purposes. Missing reverse DNS does not mean an address is invalid or unsafe.

Build a reverse DNS name

Illustrative data · No network requests

IP address
192028
820192
8.2.0.192.in-addr.arpa. PTR
8.2.0.192.in-addr.arpaQuery PTR
Reverse name

IPv4 reverse DNS reverses octets under in-addr.arpa.

Step 1 / 3
Read all scenarios
  1. Reverse name: 192.0.2.8 · 8.2.0.192.in-addr.arpa · Query PTR. IPv4 reverse DNS reverses octets under in-addr.arpa.
  2. Example answer: 192.0.2.8 · PTR response · host.example.com. A PTR record can name the address according to the reverse zone operator.
  3. No PTR: 192.0.2.8 · No PTR answer · Unknown hostname. No reverse name does not prove that the address is suspicious.

What the hostname means

A hostname can suggest a network provider or intended purpose, but it is not proof of physical location, a person's identity or a service's legitimacy. Some systems compare forward and reverse records as one check among others.

How to use a result

Interpret a PTR name alongside registration data, ASN and the context of your own connection. A reverse DNS query is not a port scan or live traceroute. InspectMyIP provides a reverse DNS check on the privacy page, querying the configured Cloudflare DNS-over-HTTPS resolver only after a user submits an address.

Check your understanding

Does a missing PTR record prove an IP is suspicious?

Does a missing PTR record prove an IP is suspicious?

Try this

Use PTR records as one technical clue when troubleshooting a network. Do not treat a hostname as verified identity or evidence of abuse.

DNS record lookup →

Technical references