New: mailX now works inside ChatGPT. Try it →
Free Reverse DNS Checker

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 it works

How to check reverse DNS for a mail server

Five steps to confirm that your sending IP passes reverse DNS checks.

01

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.

02

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.

03

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).

04

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.

05

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:

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

Forward-confirmed reverse DNS:

203.0.113.10 -> PTR -> mail.example.com -> A -> 203.0.113.10

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.

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):

dig -x 203.0.113.10 +short

Windows (Command Prompt):

nslookup 203.0.113.10

Windows (PowerShell):

Resolve-DnsName 203.0.113.10 -Type PTR

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.

Reverse DNS Lookup FAQ

Reverse DNS basics

What is a reverse DNS lookup?
A reverse DNS lookup finds the hostname associated with an IP address by querying its PTR record. It is the opposite of a normal DNS lookup, which finds the IP address of a hostname.
What is a PTR record?
A PTR (pointer) record maps an IP address to a hostname. It is stored in the in-addr.arpa zone for IPv4 or the ip6.arpa zone for IPv6, which is controlled by the owner of the IP range.
Is a PTR lookup the same as a reverse DNS lookup?
Yes. Reverse DNS lookup, rDNS lookup and PTR lookup all describe the same query: asking DNS for the PTR record of an IP address.

Reverse DNS and email

Why does reverse DNS matter for email?
Receiving mail servers check that the connecting IP has a PTR record, and often that it resolves back to the same IP. Missing or generic reverse DNS is a common reason for rejections and spam placement. Gmail requires valid forward and reverse DNS for sending IPs.
What is forward-confirmed reverse DNS (FCrDNS)?
FCrDNS means the IP's PTR points to a hostname, and that hostname's A or AAAA record points back to the same IP. It proves the hostname and the IP belong together.
Do I need a PTR record if I use Google Workspace or SendGrid?
Not for their shared IPs: the provider manages reverse DNS. You need your own PTR when you send from your own server. With a dedicated IP from an email service, the service sets the PTR, often to a hostname on your domain after you add a DNS record it gives you.

Fixing reverse DNS

How do I set up a PTR record?
Ask the owner of the IP address: your hosting provider, cloud provider or ISP. AWS, Google Cloud, Azure, OVHcloud, Hetzner and most VPS hosts let you set reverse DNS in their console or through support. You cannot create a PTR in your domain's DNS zone.
How long does a PTR change take?
Usually minutes once the IP owner publishes it, but an old value can stay cached until its TTL expires. Run the lookup again after the TTL to confirm.
Can one IP have several PTR records?
It is technically possible, but avoid it for mail servers. Use a single PTR that matches the hostname your server uses in its SMTP banner.