Reverse DNS Lookup
Enter an IPv4 or IPv6 address to find its PTR record: the hostname that the address points back to in the DNS.
- Hostname (PTR)
- IP address
- Reverse DNS name
Nobody has published a reverse DNS name for this address. That is common for home connections and for addresses that are not in use.
What a reverse DNS lookup is
The DNS usually turns a name into an address. A reverse DNS (rDNS) lookup goes the other way: it asks which hostname an IP address points back to. The answer is a PTR record, published by whoever runs the address block.
For the question the address itself is written as a name: the four bytes of an IPv4 address in reverse order under in-addr.arpa, the 32 hexadecimal digits of an IPv6 address in reverse order under ip6.arpa. The tool shows that name next to the answer.
8.8.8.8 8.8.8.8.in-addr.arpa PTR dns.google
2001:4860:4860::8888 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.arpa PTR dns.googleWhat reverse DNS is used for
- Mail. Receiving servers look up the PTR record of the sending address and check that the name leads back to the same address. Mail from an address without a matching record is often rejected or marked as spam.
- Logs and traces. Server logs,
tracerouteand monitoring show hostnames instead of bare addresses, which makes a route or a visitor easier to read. - Who is behind an address. The hostname often names the provider or the data centre, and sometimes the city or the kind of connection.
Reverse DNS lookup from the command line
$ dig -x 8.8.8.8 +short
dns.google.
$ host 2001:4860:4860::8888
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.arpa domain name pointer dns.google.
$ nslookup 8.8.8.8Frequently asked questions
What is a PTR record?
A PTR (pointer) record is the DNS record that maps an IP address to a hostname. It is the counterpart of the A and AAAA records, which map a hostname to an address. PTR records live in the special zones in-addr.arpa (IPv4) and ip6.arpa (IPv6).
Why does an IP address have no PTR record?
A PTR record exists only if the owner of the address block has created one. Providers usually set them for their own equipment and for business connections; many home, mobile and unused addresses have none. Private addresses such as 192.168.1.1 have no public reverse DNS at all.
Who sets the reverse DNS of an IP address?
The reverse zone belongs to whoever holds the address block: the internet provider or the hosting company, not the owner of a domain. To change the PTR record of your server, use the control panel of your hosting provider or ask its support.
Can one IP address have several PTR records?
Yes, the DNS allows it, and the tool lists every hostname it gets. In practice one record per address is the rule: mail servers and many tools read only one of them.
Does the hostname tell me where an IP address is?
Not reliably. A PTR record is free text chosen by the network operator: it may contain a city code, or nothing useful at all. For the country, city, provider and ASN of an address use the IP lookup.
More tools
IP to Number
Convert IPv4 or IPv6 addresses to decimal numbers (integers), hex or binary and back, one by one or as a list.
Convert an IPCIDR to IP Range
Convert CIDR blocks to IP ranges with subnet mask and host count, or an IP range to the shortest list of CIDR blocks.
Convert CIDRIPv6 Expander / Collapser
Expand an IPv6 address to its full form or collapse it to the canonical shorthand: one address or a list.
Expand IPv6