Reverse DNS Lookup

Find the hostname (PTR record) assigned to an IP address and check whether it is forward-confirmed, which matters for mail servers and logs.

  • Free
  • No sign-up
  • Works on phone and computer

Guide

Normal DNS turns a name into an address. Reverse DNS goes the other way: it asks which hostname belongs to an IP address. The answer is stored as a PTR record under a special domain: in-addr.arpa for IPv4 (with the octets reversed, so 192.0.2.10 becomes 10.2.0.192.in-addr.arpa) and ip6.arpa for IPv6, written nibble by nibble. This tool finds the PTR record for any address and then checks that the hostname points back to the same IP.

How to do a reverse DNS lookup

  1. Enter an IPv4 or IPv6 address, such as 8.8.8.8 or 2606:4700:4700::1111. Click your IP to check the address you are browsing from.
  2. Press Reverse lookup.
  3. Read the badge (PTR found or No PTR record), then the forward-confirmation table if hostnames were found.

Reading the results: a worked example

For 8.8.8.8 the card shows:

  • Query name: 8.8.8.8.in-addr.arpa, the reversed name that was actually queried.
  • DNS status: NOERROR. NXDOMAIN means no reverse entry exists at all; SERVFAIL usually means the DNS servers for that IP block are broken or unreachable.
  • Hostname(s): dns.google, with a copy button.
  • Forward-confirmed reverse DNS (FCrDNS): dns.google resolves to 8.8.8.8, 8.8.4.4, and the Matches column says Yes because the original address is in that list.

A No in the Matches column means the hostname does not resolve back to this IP: either its A or AAAA record is missing, or it points somewhere else. For IPv4 addresses the forward check looks at A records; for IPv6 it looks at AAAA records.

What is forward-confirmed reverse DNS?

Anyone who controls an IP block can set its PTR to any name, even mail.google.com. FCrDNS closes that gap by resolving the PTR hostname forward again and checking that it points back to the original IP. Only the owner of the domain can create that forward record, so a match is good evidence that the name is genuine. We run this check automatically for up to five hostnames.

Practical scenarios

Your emails land in spam or are rejected

Many receiving mail servers reject or spam-folder mail from IPs without a PTR record, or whose PTR does not resolve back to the same IP. Look up your mail server's sending IP. You want one hostname, a Yes in the Matches column, and ideally a name under your own domain such as mail.example.com, matching the name your server announces in SMTP. Then check your SPF, DKIM and DMARC records and make sure the IP is not on a spam blocklist.

Verifying a crawler that claims to be Googlebot or Bingbot

Take the IP from your server log and run it here. Google and Microsoft document this exact method: a genuine Googlebot hostname ends in googlebot.com or google.com, a Bingbot one in search.msn.com, and the forward check must say Yes. A matching name without a Yes is fake.

Making sense of logs and traceroutes

ISP hostnames often contain hints such as a city code, a router role or the customer's IP. Treat them as clues, not facts: operators name things however they like and rarely update old names. For the network that owns the address, use the ASN lookup.

How to set or change a PTR record

PTR records are controlled by whoever holds the IP block, not by your domain's DNS host. For a home connection that is your ISP; for a server it is your hosting or cloud provider, which usually offers a "reverse DNS" setting in its control panel. Set the forward A or AAAA record first, because many providers refuse a PTR whose name does not already resolve to the IP. Read the full reverse DNS guide.

Limits and data source

All queries go over DNS-over-HTTPS to Cloudflare's public resolver (1.1.1.1), and answers are cached for 30 seconds. A PTR you have just changed may still show the old value until the previous record's TTL expires in resolver caches. Private addresses such as 192.168.1.1 return NXDOMAIN, because their PTR records, if any, live only on your local DNS server. To look up other record types for the hostname, use the DNS lookup. The address you enter is sent to Cloudflare's resolver to answer the query. ToolsForAnyone keeps it in a usage log for up to 90 days, together with your IP address.

Frequently asked questions

Why does my IP have no reverse DNS?

Many ISPs and cloud providers simply do not publish PTR records for every address. That is normal unless you run a mail server, in which case ask your provider to set one.

Can an IP have more than one PTR record?

Technically yes, but it is discouraged; mail servers expect exactly one hostname, and with several they may check only one of them.

Can I set a PTR record in my domain's DNS settings?

No. The reverse zone for an IP belongs to whoever holds the IP block, so the record must be set by your ISP or hosting provider, not at your domain registrar or DNS host.

Does reverse DNS show me which websites are hosted on an IP?

No. A PTR record holds one name chosen by the network operator, usually a server or provider name. Shared hosting servers carry many websites, and none of them have to appear in reverse DNS.

How long does a PTR change take to show up?

Usually minutes to a few hours, depending on the TTL of the old record. Run the lookup again later; once it shows the new name and a Yes in the Matches column, the change has reached public DNS.

Updated

Comments

Share a tip, ask a question or tell others how the tool worked for you.
Copied to clipboard