User Agents

Web browsers and everyday web tech, explained

Reverse DNS Error: What It Means and How to Fix It

· 6 min read · How the Web Works

In this article
  1. What a Reverse DNS Error Is Telling You
  2. The Six Checks That Pin Down a Reverse DNS Error
  3. Symptom, Likely Cause, and Fix at a Glance
  4. Which Failures Are Normal and Which Are Real Problems
  5. Fixing the Three Real Causes
  6. Keeping Reverse DNS From Breaking Again
  7. Why Mail Servers Care So Much About Reverse DNS

A reverse DNS error usually means one of three things: your mail server has no PTR record, the PTR record doesn't match your server's forward DNS name, or the IP itself has no reverse entry at all. Fixing it means setting a matching PTR record with whoever owns the IP address.

Time 20 min · Steps 6 · Level Medium

What a Reverse DNS Error Is Telling You

Most reverse DNS errors trace back to a missing or mismatched PTR record, an IP block listed with the wrong owner, or a mail server rejecting your connection because the reverse lookup fails. The good news: almost all of these are fixable without touching your own DNS zone, because PTR records live with the IP owner, not your domain registrar. The frustrating part is figuring out which of the three you have, since different services word the error differently.

Reverse DNS (rDNS) works opposite to normal DNS. Normal DNS turns a name like mail.example.com into an IP address. Reverse DNS starts with the IP and asks "what name owns this?" The answer comes from a PTR record stored in a special zone under in-addr.arpa for IPv4 (or ip6.arpa for IPv6). When that record is missing, wrong, or doesn't match the forward name, receiving mail servers and some network services refuse the connection.

The Six Checks That Pin Down a Reverse DNS Error

  1. Find your public IP. If you're troubleshooting a mail server, use the IP that connects outbound, not the one you type into a browser internally. A quick search for "what is my IP" from the server itself works.
  2. Run a reverse lookup. In Windows Command Prompt or PowerShell: nslookup then set type=ptr and query the IP again. On macOS or Linux: dig -x or host . Note the name that comes back, or the NXDOMAIN/no answer.
  3. Check the forward match. Look up whatever name the PTR returned: nslookup mail.example.com or dig mail.example.com. If the forward answer isn't the same IP you started with, you have a mismatch, not a missing record.
  4. Identify the IP owner. PTR records are controlled by whoever the IP block is delegated to, usually your hosting provider or ISP. Your domain's DNS panel won't show it, and changing records there fixes nothing.
  5. Request or fix the PTR record. In your hosting provider's control panel, look for a "reverse DNS" or "PTR" setting on the server or IP; if it isn't there, open a support ticket asking them to set the PTR for your IP to your server's fully qualified hostname. Menu labels differ slightly by provider and version.
  6. Verify after the change. Repeat the reverse lookup. DNS changes here can take anywhere from a few minutes to a couple of hours to propagate, so don't assume failure if the old answer appears right away.

Symptom, Likely Cause, and Fix at a Glance

SymptomLikely causeFix
Reverse lookup returns NXDOMAIN or no PTRNo PTR record set for the IPAsk the IP owner (host/ISP) to create one
Reverse lookup returns a name, mail still rejectedPTR and forward names don't match (or forward A record points elsewhere)Make PTR name and the server's forward A record agree exactly
PTR shows the hosting provider's generic nameDefault PTR never replacedRequest a custom PTR matching your mail hostname
Works from some networks, fails from othersPropagation delay or stale resolver cacheWait, then test with a public resolver like 8.8.8.8
Error mentions FCrDNS or "forward-confirmed reverse DNS"Both directions must match, not just oneSet PTR and A records so each resolves to the other

Which Failures Are Normal and Which Are Real Problems

A missing PTR record on a home broadband IP is completely normal, and most ISPs won't set one for residential connections. It only becomes a problem if you try to run a mail server from that line, which most residential terms of service discourage anyway. Cloud and dedicated server IPs also often ship without a PTR until you set one, so seeing nothing on a brand-new server isn't a fault.

What's not normal: a PTR that points to a name you don't recognise, a reverse lookup that returns a different company's domain, or a mail server that accepted your mail for months and suddenly rejects it with a reverse DNS error. The first two suggest the IP was reassigned or the block's delegation changed; the third usually means the receiving server tightened its checks, and your record was borderline all along.

Fixing the Three Real Causes

Missing PTR record

Confirm with dig -x returning no answer section. The fix sits entirely with the IP owner: in a cloud provider's panel, the reverse DNS setting is usually attached to the server instance or the reserved IP, and you'll type your server's fully qualified hostname (like mail.example.com, with a trailing dot in some panels). With an ISP, you'll need to contact support directly, and business connections are typically more willing to set PTR records than residential ones.

Mismatch between PTR and forward name

Confirm by resolving the PTR's name forward and getting a different IP, or resolving your hostname and finding no PTR match. Many receiving mail servers require forward-confirmed reverse DNS: the PTR must resolve back to the same IP that the name's A record points to. Fix it by making the PTR name identical, character for character, to the hostname your server announces in its HELO/EHLO greeting and that appears in its A record. A mismatch as small as mail.example.com versus example.com fails the check.

Wrong delegation for the IP block

Confirm when your provider says the PTR is set correctly, but lookups against public resolvers still return nothing or an odd answer. This means the in-addr.arpa zone for your IP range points at the wrong nameservers, often after an IP range changed hands. Only the provider can repair the delegation, so escalate the ticket and specifically mention that the reverse zone delegation appears incorrect, not just the record.

Keeping Reverse DNS From Breaking Again

Whenever you change a server's hostname, move to a new IP, or migrate mail services, update the PTR in the same change window rather than after. If you use a reserved or static IP, set its PTR before pointing any production service at it. Keep one note listing each public IP and its matching hostname, so a future rejection email gives you something to check against in seconds. And when a provider reassigns or renumbers your IPs, treat a reverse DNS check as part of acceptance testing, because delegation problems from renumbering are the ones that surface weeks later.

Why Mail Servers Care So Much About Reverse DNS

Receiving mail servers use the reverse lookup as a cheap first filter: legitimate mail infrastructure almost always has a matching PTR, while most spam sources don't. That's why a reverse DNS error on outbound mail is worth fixing properly rather than working around, because a growing number of providers reject on the spot. If mail is what brought you here, also confirm your SPF record includes the sending IP and that DKIM is signing correctly, since some rejections worded as DNS problems actually point at those checks.

Official source: Google Workspace Help