Reverse DNS Lookup: Check the PTR Record of Any IP Address
Enter a public IPv4 or IPv6 address to see the hostname its PTR record points to, and confirm your mail server IP has reverse DNS before mailbox providers check it.
Results
- Free PTR lookup
- IPv4 and IPv6
- No signup required
Watch: reverse DNS lookup in 2 minutes
Chapters
- 0:00 No reverse DNS? Gmail can reject you
- 0:13 mailX in 10 seconds
- 0:24 What is reverse DNS (PTR)?
- 0:47 Who needs it, and how to find your sending IP
- 1:04 Live check: a Gmail IP, forward-confirmed
- 1:23 No PTR, and generic cloud hostnames
- 1:37 The same check inside ChatGPT
- 1:51 How to fix it: PTR at your host + an A record
- 2:10 Check your IP free
What does this reverse DNS lookup show?
Everything you need to confirm the reverse DNS of a sending IP.
PTR hostname
The hostname published in the PTR record of the IP address, such as mail.example.com.
IPv4 and IPv6
Works with both address families. Enter an address such as 8.8.8.8 or 2001:4860:4860::8888.
Mail server readiness
A missing PTR is one of the first things receiving servers check. The result tells you at once whether reverse DNS is set.
Public IPs only
Private and reserved ranges (10.x, 192.168.x, 127.x...) have no public reverse DNS, so the tool only accepts public addresses.
Live DNS answer
Each lookup queries DNS when you run it. A value cached by resolvers can take up to its TTL to update.
Next step guidance
If no PTR comes back, the result says so and links to a guide on how the owner of the IP range can create one.
How to check reverse DNS for a mail server
Five steps to confirm that your sending IP passes reverse DNS checks.
Find your sending IP
Look at the Received headers of an email you sent, or at your server or ESP dashboard. With a shared ESP IP, reverse DNS is the provider's job.
Run the reverse DNS lookup
Enter the IP in the tool. mailX queries the PTR record and returns the hostname, or tells you no PTR exists.
Check forward DNS
Look up the A (or AAAA) record of that hostname with the DNS lookup. It should point back to the same IP. This match is called forward-confirmed reverse DNS (FCrDNS).
Compare with your SMTP banner
Your server's SMTP banner (220 greeting) and its HELO/EHLO name should use a hostname that resolves, ideally the same one as the PTR. A mismatch is a common spam filter signal.
Ask the IP owner to fix it
If the PTR is missing or generic, ask your hosting provider, cloud provider or ISP to set it. Most cloud consoles let you edit reverse DNS yourself.
What is reverse DNS and what is a PTR record?
Normal DNS translates a hostname into an IP address. Reverse DNS does the opposite: it translates an IP address back into a hostname. The record that holds this answer is the PTR (pointer) record.
PTR records do not live in your domain's DNS zone. They live in a special zone for the IP range (in-addr.arpa for IPv4, ip6.arpa for IPv6), controlled by whoever owns the IP: your hosting provider, cloud provider or ISP. That is why you cannot add a PTR in the same place as your SPF or MX records.
For email, reverse DNS matters because receiving servers use it as a basic trust check. Gmail asks senders to have valid forward and reverse DNS on their sending IPs, and many servers reject or score down mail from IPs with no PTR or with a generic one such as 203-0-113-10.dynamic.isp.net.
How a PTR record is stored for 203.0.113.10:
Forward-confirmed reverse DNS:
Related mailX tools
Check the rest of your mail server setup.
Common reverse DNS problems
What the lookup reveals and how to fix it.
No PTR record
The IP has no reverse DNS at all. Many receiving servers will refuse or penalize your mail. Ask the IP owner to create a PTR pointing to your mail hostname.
Generic PTR
The PTR exists but looks auto-generated (IP numbers inside a provider hostname). It signals a residential or unmanaged IP. Replace it with your own hostname.
PTR and A record do not match
The PTR hostname does not resolve back to the same IP. Fix the A record of the hostname or the PTR so both point to each other.
PTR does not match the SMTP banner
Your server greets with a different name than its PTR. Align the banner and HELO/EHLO hostname with the PTR hostname.
PTR added in the wrong place
You added a PTR in your domain's DNS host. It has no effect there: reverse DNS is set by the owner of the IP block.
Shared IP of an email service
With SendGrid, Mailgun, Amazon SES or Google Workspace on shared IPs, the provider manages reverse DNS. You focus on SPF, DKIM and DMARC.
Reverse DNS guides
Go further on PTR records and mail server identity.
Reverse DNS Configuration for Mail Servers
How to set up reverse DNS with your hosting or cloud provider, step by step.
What a PTR Record Means for Deliverability
Why receiving servers check reverse DNS and what happens when it is missing.
Fix "Reverse DNS Does Not Match SMTP Banner"
Align your PTR, A record and HELO hostname to clear this warning.
How to run a reverse DNS lookup from the command line
mailX gives you the answer in the browser, but you can run the same check from a terminal. Replace 203.0.113.10 with your IP address.
If the command returns nothing, or an NXDOMAIN error, the IP has no PTR record. Use mailX when you want a quick answer without installing anything, or to share the result with your hosting provider.
macOS and Linux (dig):
Windows (Command Prompt):
Windows (PowerShell):
Reading your reverse DNS results
What each result means and what to do next.
PTR record found
The IP resolves to the hostname shown. Check that this hostname resolves back to the same IP and matches your mail server's HELO name.
No PTR record found
The IP has no reverse DNS. Ask your hosting provider, cloud provider or ISP to create one that points to your mail hostname.
Invalid or private IP
The input is not a public IPv4 or IPv6 address. Private ranges have no public reverse DNS.
Reverse DNS is fine but emails still land in spam?
PTR is only the first check. Make sure SPF, DKIM and DMARC pass for your domain, in one free test.