Reverse DNS Lookup

Turn an IP address into its hostname, and check that it matches.
Several IPs at once (up to 16, or one /28)

A reverse DNS lookup (or DNS reverse lookup) finds the hostname of an IPv4 or IPv6 address by asking for its PTR record, the opposite of a normal DNS lookup. Mail servers use it to check senders: a good mail server has a PTR that resolves back to the same IP. Paste up to 16 public IPs, or a small block such as a /28, to check them all at once.

What Is Reverse DNS?

Reverse DNS maps an IP back to a name, using the special zones in-addr.arpa (IPv4) and ip6.arpa (IPv6).

Diagram comparing forward DNS, a name to an address with an A record, and reverse DNS, an address back to a name with a PTR record

A normal (forward) lookup turns a name into an IP with an A or AAAA record; see the website to IP lookup. Reverse DNS goes the other way, and the two are set separately: the domain owner controls the A record, the IP owner controls the PTR.

What Is a PTR Record?

A PTR (pointer) record stores the hostname for one IP; it's set by whoever controls the IP block, usually the ISP or host, not the domain owner.

10.113.0.203.in-addr.arpa.   3600   IN   PTR   mail.example.com.

The IP is written backwards because DNS reads names from right to left: 203.0.113.10 becomes 10.113.0.203.in-addr.arpa. IPv6 addresses are written backwards digit by digit (nibble by nibble) under ip6.arpa. An IP can have several PTRs, but one is the norm.

Diagram: 203.0.113.10 is reversed to 10.113.0.203.in-addr.arpa and DNS returns its PTR record, mail.example.com

Reverse DNS for Mail Servers (FCrDNS)

Big mailbox providers expect the sending IP to have a PTR whose hostname resolves back to that IP; generic or missing PTRs hurt delivery.

Forward-confirmed reverse DNS: the IP's PTR hostname resolves back to the same IP.

To set it up: give the server a name in your domain (an A record, for example mail.example.com → 203.0.113.10), then ask whoever owns the IP to set the PTR to that name. On AWS, Azure and Google Cloud it's a setting or a support form; on a VPS it's usually in the control panel. Then run the lookup above: you want a single PTR with "Forward-confirmed". Check the rest of your setup with the MX lookup and the blacklist checker.

Why an IP Has No Reverse DNS

Nobody created a PTR for it: common for home, mobile and new cloud IPs. It isn't an error unless the IP sends email.

The result says which case it is: "no reverse DNS entry" (NXDOMAIN) means nothing exists for the IP; "no PTR record" means the reverse zone exists but holds nothing for this address. Either way, only the IP owner can fix it. Find who that is with the IP WHOIS lookup.

Reverse DNS vs Reverse IP Lookup

Reverse DNS gives the one hostname set for an IP; a "reverse IP lookup" tries to list every website hosted on it, using crawled data. This tool does reverse DNS.

Do it yourself

How to Do a Reverse DNS Lookup With nslookup or dig

nslookup 8.8.8.8 or dig -x 8.8.8.8 +short.

Windows Command Prompt or PowerShell

nslookup 8.8.8.8
Resolve-DnsName 8.8.8.8

macOS / Linux Terminal

dig -x 8.8.8.8 +short
host 8.8.8.8

For the forward check, look up the name you get: dig +short dns.google should list 8.8.8.8.

How This Lookup Works

QueryPTR for the IP's in-addr.arpa or ip6.arpa name, live from Google Public DNS (8.8.8.8); Cloudflare (1.1.1.1) if Google doesn't answer.
ResultEvery PTR record with its TTL; "no PTR" and "no reverse DNS entry" are told apart.
Forward checkA and AAAA of each hostname (first four), compared with the IP.
Hostname hintsOur pattern list for cloud default names (AWS, Azure, Google Cloud, Hetzner, OVHcloud…), large ISPs' home connections, and static or dynamic keywords.
Several IPsUp to 16 public IPs or one /28 per run, 10 runs per 10 minutes.
Last verified

Frequently Asked Questions

How do I do a reverse DNS lookup?
Enter the IP address above. Without a website, run nslookup followed by the IP on Windows, or dig -x followed by the IP on macOS and Linux.
What is a PTR record?
The DNS record that stores the hostname of an IP address. It lives in the special zone in-addr.arpa for IPv4 or ip6.arpa for IPv6, under the IP written backwards.
Who can set the reverse DNS of my IP?
The owner of the IP block: your ISP or hosting provider, not the owner of the domain. Ask them, or use the reverse DNS setting of your cloud provider (AWS, Azure, Google Cloud and most hosts have one).
Why does my mail server need reverse DNS?
Receiving servers check that the sending IP has a PTR record whose hostname resolves back to the same IP (forward-confirmed reverse DNS). Gmail's sender guidelines require it; without it, mail is often refused or sent to spam.
What does "Reverse DNS does not match SMTP banner" mean?
It's a warning from mail test tools such as MXToolbox: your server's PTR name isn't in the greeting (banner) or HELO/EHLO name it sends to other mail servers. Make the two names match: set the server's hostname to its PTR name (or ask the IP owner to change the PTR), for example mail.example.com, with an A record pointing back to the same IP. A missing PTR record is the bigger problem: many receivers refuse mail from a server without one.
Why does my IP have no PTR record?
Nobody created one. Most home and mobile IPs don't need it; servers that send email, or that should show a name in logs, usually do.
Can I find all websites on an IP?
Not with reverse DNS: it returns only the hostname set for the IP, not the websites hosted on it. Sites that share a server don't appear.

Next steps

Related Tools

Website to IP Lookup
The forward direction: every IP of a hostname.
IP WHOIS Lookup
Who owns an IP block, and who to ask for a PTR.
IP Blacklist Checker
Check a mail server's IP against spam blacklists.
MX Lookup
The mail servers of a domain, with their IPs.

Related Guides

Guide What Is an IP Address?
How addresses and names fit together.
Guide Static IP vs Dynamic IP
Why mail servers need a fixed IP with its own name.