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.
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.41The 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::8888To 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
| Symptom | Likely cause | Fix |
|---|---|---|
| No PTR record (NXDOMAIN) | The IP owner never set one, common on fresh VPS and cloud IPs | Set it in your host's control panel, or open a ticket with whoever owns the IP |
| PTR exists, forward lookup doesn't match | The hostname has no A or AAAA record, or it points at a different IP | Add 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.net | The host's default naming, which filters read as residential or unmanaged | Change the PTR to a hostname on your own domain, such as mail.yourcompany.com |
| Gmail returns 550 5.7.25 | Google could not match the sending IP's PTR to a hostname that resolves back | Set a PTR and a matching A or AAAA record, then retry |
| IPv4 passes, IPv6 fails | The server sends over IPv6 and only the IPv4 address has reverse DNS | Add a PTR and AAAA for the IPv6 address, or make the mail server send over IPv4 only |
| PTR changed but the old name still shows | Resolvers are caching the previous answer until its TTL runs out | Wait out the TTL, often a few hours, then check again |
| Several PTR records on one IP | Multiple names were added to the reverse zone | Keep one PTR per IP. Some receivers only check the first answer they get |
Reverse DNS FAQ
What is a reverse DNS lookup?
How do I check reverse DNS for an IP address?
What is FCrDNS?
Does Gmail require reverse DNS?
How do I set or change a PTR record?
Do I need to set reverse DNS for Google Workspace or Microsoft 365?
Is this reverse DNS lookup free?
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.
Pick a time
Nothing works? Write team@getaob.com and I'll find one.
Book a timeGrid not loading? Open the booking page
Rather do it the old way? team@getaob.com LinkedIn