Skip to main content

Reverse DNS lookup: check the PTR record for any IP

Paste an IPv4 or IPv6 address and this finds its PTR record, the hostname the IP says it belongs to. Then it looks that hostname up again to confirm it points back to the same IP, which is the forward-confirmed reverse DNS check that Gmail and Outlook run on every server that sends them mail. You can also enter a mail server hostname and we resolve it first. It's free, runs in your browser, and needs no signup.

Built by Garrett Wolfe, founder of OneGTM. We set up sending infrastructure for outbound teams. Updated .

Try:

Key takeaways

  • Reverse DNS maps an IP address back to a hostname through a PTR record. Normal DNS goes from a name to an IP.
  • Google tells all senders to make sure their sending IPs have valid forward and reverse DNS. Missing or mismatched PTR records get mail throttled or rejected.
  • The PTR is set by whoever owns the IP (your host, ISP, or email provider), never by your domain's DNS host.
  • On Google Workspace, Microsoft 365, or a shared ESP pool, reverse DNS is already handled. You only own it when you run your own mail server or a dedicated IP.

What reverse DNS and a PTR record are

A regular DNS lookup turns a name into an address: you ask for dns.google and get back 8.8.8.8. Reverse DNS (rDNS) runs the same question backwards. You start with the IP and ask which name it goes by.

The answer lives in a PTR record (short for pointer). DNS can only look up names, so the IP gets rewritten into one. For IPv4 the four numbers are reversed and put under in-addr.arpa, so 8.8.8.8 becomes 8.8.8.8.in-addr.arpa and 209.85.220.41 becomes 41.220.85.209.in-addr.arpa. For IPv6 every hex digit of the full address is reversed and dotted under ip6.arpa, which is why IPv6 PTR names run to 32 labels. The tool above shows the exact name it queried.

A PTR on its own proves very little, because whoever controls an IP can point its PTR at any name they like. So receivers do a second step called forward-confirmed reverse DNS (FCrDNS): look up the A or AAAA record of the PTR hostname and check that it lists the original IP. That only works if the IP owner and the hostname's owner agree, which is what makes it a useful trust signal.

How to check reverse DNS from the command line

Every operating system can do a reverse lookup without a website. On macOS and Linux, dig has a shortcut that builds the in-addr.arpa name for you:

dig -x 209.85.220.41 +short
mail-sor-f41.google.com.

dig mail-sor-f41.google.com A +short
209.85.220.41

The first command is the reverse lookup and the second is the forward confirmation. If both line up, FCrDNS passes. On Windows, or anywhere dig is missing, a reverse nslookup works the same way when you give it an IP:

nslookup 209.85.220.41
host 2001:4860:4860::8888

To query the PTR record type directly, use dig PTR 41.220.85.209.in-addr.arpa. If you get NXDOMAIN or an empty answer, there is no PTR for that address.

Why rDNS matters for email deliverability

When a mail server connects to Gmail or Outlook, the first thing the receiver knows is the connecting IP. Before it reads a single header, it looks up that IP's PTR and checks whether the name resolves back. Google's email sender guidelines list it as a requirement for all senders: "Ensure that sending domains or IPs have valid forward and reverse DNS records, also referred to as PTR records." Microsoft, Yahoo, and most corporate spam filters behave the same way.

What a failing check looks like in practice: no PTR at all usually means a temporary deferral or an outright 550 rejection. A PTR that doesn't resolve back gets treated about the same. A PTR that looks like a home connection (something like 203-0-113-7.dyn.example-isp.net) passes FCrDNS but still gets scored like a residential IP, which is where botnets send from.

For cold email this is rarely the problem, because you send through Google or Microsoft mailboxes whose IPs are set up correctly. The records you do control are SPF, DKIM, and DMARC on each sending domain, which our email deliverability checker tests. The full picture, from authentication to warmup and volume, is in our guide to email deliverability for cold email, and the mailbox and domain providers we use are compared in cold email infrastructure.

Who sets your PTR record

This trips up a lot of people. Your domain's DNS host (Cloudflare, GoDaddy, Route 53 for your domain, whoever holds your A and MX records) can't create a PTR for your server's IP. The reverse zone for an IP belongs to whoever was allocated that IP block, so the PTR has to be set by them:

  • Cloud and VPS hosts. Most let you set it yourself. AWS has a reverse DNS setting on Elastic IPs, DigitalOcean uses the droplet's name, and Hetzner, Linode, and Vultr have a field in the IP settings. Create the forward A record first, since several providers refuse a PTR that doesn't resolve back.
  • Business ISPs and colocation. Open a ticket with the provider and give them the IP and the hostname you want.
  • Email service providers. On a dedicated IP, the ESP sets the PTR, often to a hostname on your domain once you verify it. On shared IPs it stays on their own domain.

Pick a hostname you control, such as mail.yourcompany.com, give it an A or AAAA record pointing at the IP, then ask for the PTR to match. That hostname should also be what your server says in its SMTP greeting (HELO or EHLO).

Google Workspace, Microsoft 365, and ESPs already have it

If you send from Google Workspace or Microsoft 365, you don't set or check reverse DNS. Mail leaves from Google's or Microsoft's IPs, and their PTRs and forward records are already in place (try 209.85.220.41 above, a Google outbound IP). The same goes for SendGrid, Mailgun, Postmark, Amazon SES, and the other ESPs on their shared pools, and for sequencers like Instantly or Smartlead, which send through the mailboxes you connect. Reverse DNS becomes your job only when you run Postfix or Exchange on your own server, or pay for a dedicated IP.

Common reverse DNS problems

SymptomLikely causeFix
No PTR record (NXDOMAIN)The IP owner never set one, common on fresh VPS and cloud IPsSet it in your host's control panel, or open a ticket with whoever owns the IP
PTR exists, forward lookup doesn't matchThe hostname has no A or AAAA record, or it points at a different IPAdd or fix the A or AAAA record for the PTR hostname so it lists this IP
Generic PTR like ip-203-0-113-7.provider.netThe host's default naming, which filters read as residential or unmanagedChange the PTR to a hostname on your own domain, such as mail.yourcompany.com
Gmail returns 550 5.7.25Google could not match the sending IP's PTR to a hostname that resolves backSet a PTR and a matching A or AAAA record, then retry
IPv4 passes, IPv6 failsThe server sends over IPv6 and only the IPv4 address has reverse DNSAdd a PTR and AAAA for the IPv6 address, or make the mail server send over IPv4 only
PTR changed but the old name still showsResolvers are caching the previous answer until its TTL runs outWait out the TTL, often a few hours, then check again
Several PTR records on one IPMultiple names were added to the reverse zoneKeep one PTR per IP. Some receivers only check the first answer they get

Reverse DNS FAQ

What is a reverse DNS lookup?
A reverse DNS lookup starts with an IP address and asks which hostname it belongs to. It works by querying a PTR record under in-addr.arpa for IPv4 or ip6.arpa for IPv6. A normal DNS lookup goes the other way, from a hostname to an IP.
How do I check reverse DNS for an IP address?
Type the IP into the tool on this page. From a terminal, run dig -x followed by the IP, or nslookup followed by the IP on Windows. Both return the PTR hostname if one is set.
What is FCrDNS?
Forward-confirmed reverse DNS means the IP's PTR hostname resolves back to that same IP. Mail servers check it because anyone can point a PTR at a big brand's name, but only the owner of that name can make its A or AAAA record point back.
Does Gmail require reverse DNS?
Yes. Google's sender guidelines tell every sender, not only bulk senders, to make sure sending domains or IPs have valid forward and reverse DNS records, also called PTR records. Mail from IPs without them is often rate limited or rejected.
How do I set or change a PTR record?
Ask whoever owns the IP address. That is your hosting or cloud provider, your ISP, or your email service. Your domain registrar or DNS host cannot set it, because the PTR lives in the IP owner's reverse zone, not in your domain.
Do I need to set reverse DNS for Google Workspace or Microsoft 365?
No. Google, Microsoft, and email platforms like Instantly or Smartlead that send through those mailboxes use IPs that already have PTR records. You only manage reverse DNS when you run your own mail server or rent a dedicated IP.
Is this reverse DNS lookup free?
Yes, with no signup. Lookups run in your browser through Cloudflare's public DNS-over-HTTPS resolver, with Google Public DNS as a fallback, and we do not store the addresses you check.

Reverse DNS is fine and mail still lands in spam?

Get your sending setup reviewed

Tell me what you're building. I reply the same day.

Call with Garrett
Where did you hear about us? (optional)

Takes about 20 seconds. Times show up right here, and the call is with Garrett directly. See our privacy policy.

Rather do it the old way? team@getaob.com LinkedIn