Reverse DNS Lookup: How to Check a PTR Record (and Fix a Missing One)
Run a reverse DNS lookup on any IPv4 or IPv6 address with a free tool, dig, nslookup or curl. Fix a missing PTR record behind mail bounces.
On this page
A reverse DNS lookup maps an IP address back to a hostname by querying its PTR record. Paste an IP into the free reverse IP lookup tool and you get the hostname that address identifies itself as. IPv4 and IPv6 both work.
If you landed here from a mail bounce that mentions reverse DNS, jump to the troubleshooting table. The short version: the PTR record is missing, and only the owner of the IP can add it.
How reverse DNS works
The resolver queries the PTR zone: in-addr.arpa for IPv4, ip6.arpa for IPv6. That is the standard reverse-DNS path.
For IPv4, the octets are reversed and the suffix is appended. The address 8.8.8.8 becomes 8.8.8.8.in-addr.arpa. (It is a palindrome of sorts, so the example hides the reversal. 192.0.2.10 becomes 10.2.0.192.in-addr.arpa.) IPv6 works the same way, one hex digit at a time, 32 digits in total, which is why you let a tool build that name for you.
The answer comes from whoever controls the IP block, not from the owner of any domain pointing at it. That one fact explains most of the confusion later in this post.
What is a PTR record?
The Domainee reverse IP lookup tool returns the PTR record for an IP, which is the hostname that address maps to. It is the mirror of an A or AAAA record, which maps a name to an address.
A PTR record looks like this in a zone file:
10.2.0.192.in-addr.arpa. IN PTR mail.example.com.
Common PTR hostnames are either a name the operator chose on purpose (mail.example.com) or a name the hosting provider generated from the address. Both are valid. The tool returns hostnames as an array because more than one PTR per address is legal, even though it is rare and generally a bad idea.
How do I run a reverse DNS lookup?
You can run one in the browser, with dig, host or nslookup, or with a single curl call. All four ask the same question and should return the same hostname.
Step 1: in the browser
Open the free reverse IP lookup tool and paste an IPv4 address (8.8.8.8) or an IPv6 address (2606:4700::1111). It looks up the PTR record and shows the hostname. No signup.
Step 2: on the command line
Use dig -x and let it build the reverse name:
$ dig -x 8.8.8.8 +short
dns.google.
$ host 8.8.8.8
8.8.8.8.in-addr.arpa domain name pointer dns.google.
$ nslookup 8.8.8.8
8.8.8.8.in-addr.arpa name = dns.google.
The same flags work for IPv6: dig -x 2606:4700::1111 +short. Reverse nslookup is just nslookup <ip>.
Step 3: as an API
The lookup is also a keyless REST call:
curl -s "https://api.domainee.dev/v1/tools/reverse-ip-lookup?ip=8.8.8.8" | jq
The response is JSON, and the hostnames come back as an array. The endpoint resolves PTR records for the IP and lists other domains observed on the same address. See the reverse IP lookup API reference for the full response, or the free reverse IP lookup API page for the pitch.
It is one of 18 free public REST endpoints from Domainee. No key, CORS-enabled, 30 requests per minute and 500 requests per day per IP. Fine for a script or a browser app. Not fine for a loop over a /16.
Is reverse DNS the same as reverse IP lookup?
No. Two different things get called "reverse IP lookup", and only one of them is a DNS query.
| What you mean | What answers it | Is it authoritative? |
|---|---|---|
| "What hostname does this IP identify itself as?" | A PTR record lookup | Yes. It is a DNS answer from the owner of the IP block. |
| "What other domains are hosted on this IP?" | A list of domains observed on that address | No. It is observational and can be incomplete or stale. |
An A record maps a name to an address, and the mapping only runs in that direction. There is no DNS record type that lists every name pointing at a given IP. You can point any name you like at an IP with an A record, but only the IP's owner can make the IP point back.
So if you want the hostname behind an IP, you want a PTR query. If you want neighbors on a shared host, you want an observed list, and you should treat it as a hint.
The Domainee API returns both: the PTR records, plus other domains observed on the same address. Read the PTR part as DNS fact and the domain list as a lead to verify.
Why reverse DNS matters for email
Run the sending IP through the Domainee tool to see whether it has a PTR record, because receiving mail servers check for one. If it doesn't, some of them defer or reject the message, and the bounce says "reverse DNS".
The stricter check is forward-confirmed reverse DNS (FCrDNS). The PTR hostname must resolve back to the same IP. You run the PTR lookup, take the hostname, run a forward A or AAAA lookup on it, and confirm the original address is in the answer.
A PTR that fails that check is worse for reputation than no PTR at all. A missing record looks like neglect. A mismatched one looks like someone is lying about who they are.
Outside mail, PTR records make logs and traceroute output readable, and they help with abuse triage when you need to know who runs an address.
Troubleshooting: what to check when a lookup or a mail bounce goes wrong
Start from the symptom. Most reverse DNS problems are one of five.
| Symptom | What it means | What to check |
|---|---|---|
| Mail deferred with "reverse DNS" in the bounce | The PTR is missing | Run the PTR lookup on the sending IP. If it returns nothing, ask the IP owner to set one. |
| Lookup returns no PTR | The IP's owner has not published one | You cannot add it in your own zone. Ask your hosting provider or whoever controls the IP block. |
| PTR exists but mail is still rejected | The forward check may fail | Look up the PTR hostname's A or AAAA record and confirm it returns the same IP. |
| Two or more hostnames returned | Multiple PTRs on one IP | Reduce to one. Legal, but rarely a good idea. |
| You changed the PTR and still see the old one | A cached answer | Wait out the TTL and check from several resolvers. |
For the forward check, use the DNS record lookup to read the A or AAAA record on the PTR hostname. For recent changes, the DNS propagation checker shows what resolvers on several continents currently hold.
The pattern in the second row trips people up. Your domain's DNS panel has no field for the IP's PTR record, because that record lives in the reverse zone, which belongs to the IP's owner. On a cloud or VPS host, there is usually a setting for it in the provider's control panel or a support ticket that does the job.
Check a PTR record in seconds
Paste an IP into the free reverse IP lookup tool, or call the keyless API from curl, and see the PTR record right away.
Domainee is a custom-domains-as-a-service API for SaaS products, built by Common Ninja. The free tools exist because DNS debugging happens on a Tuesday afternoon, usually at the worst moment, and a signup wall in front of a single lookup is a bad trade.
FAQ
What is a reverse DNS lookup?
A reverse DNS lookup maps an IP address back to a hostname by querying its PTR record. It is ordinary DNS with the address rewritten as a name under in-addr.arpa (IPv4) or ip6.arpa (IPv6).
How do I do a reverse DNS lookup?
Paste the IP into Domainee's free reverse IP lookup tool, or run dig -x <ip> +short, host <ip> or nslookup <ip> on the command line. You can also call curl -s "https://api.domainee.dev/v1/tools/reverse-ip-lookup?ip=8.8.8.8" | jq for JSON.
What is a PTR record?
A PTR record maps an IP address to a hostname. It is the mirror of an A or AAAA record, which maps a name to an address.
Is reverse DNS the same as reverse IP lookup?
Not always. Two different things get called reverse IP lookup. A PTR query asks what hostname an IP identifies itself as and is authoritative DNS. Listing other domains on the same IP is observational and can be incomplete or stale.
Why does email need reverse DNS?
Receiving mail servers check that the sending IP has a PTR record. If it is missing, some servers defer or reject the message, and the bounce cites reverse DNS.
What is forward-confirmed reverse DNS (FCrDNS)?
FCrDNS requires the PTR hostname to resolve back to the same IP. A PTR that fails that check is worse for reputation than no PTR at all.
Can an IP address have more than one PTR record?
Yes, it is legal, but rare and generally a bad idea. That is why the Domainee API returns hostnames as an array. Reduce it to one if you control the record.
How do I set or change a PTR record?
You cannot add it in your own domain's zone. The record lives in the reverse zone, so ask the IP owner or your hosting provider to set it, then confirm the hostname resolves forward to the same IP.
How do I do a reverse DNS lookup for an IPv6 address?
Use the same methods. The Domainee tool accepts IPv6 such as 2606:4700::1111, and dig -x 2606:4700::1111 +short builds the ip6.arpa name for you.
Is there a free reverse DNS lookup API?
Yes. Domainee's reverse IP lookup API is free, keyless, CORS-enabled and returns JSON at GET https://api.domainee.dev/v1/tools/reverse-ip-lookup?ip=8.8.8.8. Limits are 30 requests per minute and 500 requests per day per IP.

