DIGISTR@T
Reverse DNS for Email: PTR Records, Setup and Fixes

Reverse DNS is the check a receiving mail server makes on the IP address your email came from, asking which hostname that address claims to belong to, and if the answer is missing or does not line up with the rest of your sending setup, mail can be rejected or pushed towards spam before your content is ever judged. The record behind it is called a PTR record, you cannot create it in your normal domain DNS, and the fix is usually a short request to whoever owns the IP address, provided you know exactly what to ask for. If your engagement has dropped and nobody can say why, this is one of the first infrastructure details we look at, alongside authentication and sender reputation, so this guide walks through what a correct setup looks like, how to check it and what to do when it is wrong.

Table of Contents

What reverse DNS means for email

Normal (forward) DNS turns a name into an address: mail.example.co.uk becomes an IP. Reverse DNS does the opposite and takes an IP address and returns a name. The record that stores that answer is the PTR (pointer) record, and Cloudflare’s explanation of PTR records describes how anti-spam filters use it to judge whether an IP is likely to be a legitimate mail server, noting that a domain with no PTR record, or the wrong one, can find its email blocked.

The mechanics are slightly odd, which is why the record cannot live with your other DNS entries. Reverse records sit in special ARPA zones that mirror the IP address backwards. Microsoft’s Azure DNS documentation gives the example of 203.0.113.100, whose reverse lookup is a PTR record named 100 in the zone 113.0.203.in-addr.arpa, and explains that receiving mail servers use this lookup to verify the sender of a message.

Mail server racks in a UK data centre

For a marketing, CRM or lifecycle team the practical meaning is simple. Before a mailbox provider reads a single word of your campaign, it has already looked at the connecting IP and asked whether it looks like a properly run mail server or like a hijacked machine, and a missing or inconsistent reverse record makes the answer less flattering.

How much it matters: rejection, spam scoring and reputation

The consequences vary by receiver. Some servers refuse the connection outright, while others accept the mail and quietly raise its spam score. The sender guidelines published by Spamhaus are the most direct statement of the standard: every sending IP should have a valid reverse DNS entry that resolves to a fully qualified domain name (a complete hostname such as mail.example.co.uk), that hostname should resolve back to the connecting IP, and IPs without reverse DNS are treated as suspicious, which is reflected in the IP’s reputation. Spamhaus also recommends a branded reverse DNS in your own domain rather than relying on generic names supplied by an upstream internet provider.

It is worth being realistic about what a PTR record can and cannot do. Rackspace’s documentation notes that a PTR record does not guarantee acceptance, only that it can prevent immediate rejection by servers that distrust an unauthenticated sender. That matches what we see in practice with delivery problems more broadly: reverse DNS removes one reason for a receiver to distrust you, but it does not rescue a poor sending reputation, a stale list or missing authentication alignment. If your results have dropped, treat it as one item on a checklist rather than the whole diagnosis, and our guide to the signals worth checking in the first 48 hours shows where it sits among the others.

What a correct PTR record looks like

The word to remember is forward-confirmed reverse DNS, usually shortened to FCrDNS. It simply means that the forward and reverse lookups agree with each other, so that a receiver who follows the IP to a name and then the name back to an IP lands where it started. Because the two records sit in different DNS zones, controlled by different parties, a throwaway spam server finds it hard to fake both.

A UK example from Zen Internet’s mail server guidance shows the whole pattern, and the same document explains why inconsistent DNS leads many servers to reject mail:

ElementWhere it livesExample value
A recordYour domain DNSmail.mydomain.co.uk points to 212.23.3.142
PTR recordThe IP owner’s reverse zone212.23.3.142 points to mail.mydomain.co.uk
HELO/EHLO nameYour mail server’s settingsmail.mydomain.co.uk

The HELO (or EHLO) name is the greeting your server gives when it opens a connection, announcing who it says it is. All three values should agree. OpenPanel’s documentation summarises the same arrangement as an IP pointing to a hostname by PTR, that hostname pointing back by A record, and the server greeting with that hostname.

For a UK cloud example, ANS documents a mail server whose A record points to an IP, whose reverse DNS points back to the same hostname, alongside MX and SPF records, which is a reminder that reverse DNS is one part of a set rather than a stand-alone fix.

One detail that catches people out is the reverse zone format. For 203.0.113.25, RackFiber’s guide shows the record as 25.113.0.203.in-addr.arpa pointing to mail.example.com, with the octets reversed. You will rarely type this by hand, because the provider’s portal usually asks only for the IP and the hostname, but it explains why a lookup tool will show you strings that look backwards.

Who can set the PTR record

This is the point that wastes the most time. The PTR record is controlled by whoever owns the IP address block, not by whoever owns your domain. Emaildelivery.com’s documentation states that it can only be set by the owner of the IP, typically the VPS provider, and cannot be set in Cloudflare, Namecheap or GoDaddy or anywhere an A record is normally managed. RackFiber says the same thing in different words: reverse zones are delegated to whoever controls the address range, so you cannot publish a PTR in your own DNS provider.

What this means depends on how you send:

  • You send through an email service provider (ESP) on shared infrastructure. The platform owns the IPs and normally maintains the reverse records, so there is usually nothing for you to publish. Your attention belongs on authentication and the behaviour that shapes the shared reputation you inherit.
  • You send through a dedicated IP at an ESP. The reverse record is a platform setting or a request to the provider, and it is worth confirming that it uses a hostname that makes sense for your brand.
  • You run your own mail server, or a transactional relay on a cloud or hosted server. The PTR is yours to request from the hosting or cloud provider, and you also own the A record and the HELO name, so all three pieces need to line up.

The shared-hosting case has a further wrinkle. A PTR that resolves to the hosting provider’s own hostname is generally fine for basic deliverability, but dotCanada’s guide points out that sending meaningful volume from a shared IP means inheriting whatever reputation previous tenants have built, which is why serious senders move to a dedicated IP with a clean PTR. If you are weighing that move, the structure behind it is covered in our piece on sending architecture and authentication.

How to set up reverse DNS, step by step

The order matters, because the PTR should point to a hostname that already resolves correctly. The sequence below follows the approach in the RackFiber and Emaildelivery.com documentation, applied to a typical business sending setup.

  1. Identify the real sending IP. Do not assume it is the one you were told about when the system was built. Send a test message to a mailbox you control and read the Received headers to find the IP that actually connected to the recipient. Going wrong here means requesting a PTR for an address that is not even sending your mail.
  2. Establish who owns that IP. A lookup of the address will tell you whether it belongs to a hosting company, a cloud platform, an ESP or your own network. That owner is the party who has to publish the record.
  3. Choose a hostname you control. Use a name in your own domain, such as mail.yourdomain.co.uk or a dedicated sending subdomain, rather than a generic provider name, in line with the branded approach Spamhaus recommends. Keep it consistent across all your sending IPs so that anyone reading logs or reports can tell what they are looking at.
  4. Create the forward A (or AAAA for IPv6) record first. Add it in your normal DNS and confirm that it resolves publicly to the sending IP before you move on.
  5. Ask the IP owner to set the PTR. In most hosting portals this is a field next to the IP address, and with some providers it is a support request. The PTR should return exactly the hostname from step 3.
  6. Set the server’s HELO/EHLO name to the same hostname. In Exchange 2016 and 2019 Zen’s guidance places this under the Send connector in Mail flow, and in Postfix the equivalent is the myhostname setting, which RackFiber advises should match the PTR so the SMTP banner agrees.
  7. Verify both directions and send a controlled test (covered in the next section), and only then resume normal volume.

The same documentation recommends creating the DNS records before installing a mail server or sending a first test message. That is sensible for a new build, because a first-time sender whose test fails can see the negative result held by some receivers for at least 24 hours after the fix, according to Emaildelivery.com, which is a nasty way to lose a day during a migration or a new IP warm-up.

Where teams stumble is rarely the technical syntax. It is usually that the A record lives with marketing’s DNS manager, the PTR with an infrastructure supplier, and the sending platform with a third party, so nobody owns the whole picture. If that sounds familiar, our authentication setup service is designed to cover exactly that kind of cross-team gap, with one consultant working inside your platforms alongside your people.

How to check your reverse DNS

You need two lookups, one in each direction. With the dig command-line tool (available on most Linux and macOS systems and in Windows via the Subsystem for Linux), the reverse lookup is dig -x followed by the IP, and the forward lookup is dig followed by the hostname that came back. RackFiber’s guide describes verifying both directions this way, and the test is passed when the name from the first lookup returns the original IP in the second.

A worked example makes the logic clear. Suppose your sending IP is 203.0.113.10:

  1. dig -x 203.0.113.10 returns mail.yourdomain.co.uk.
  2. dig mail.yourdomain.co.uk returns 203.0.113.10.
  3. Your server’s greeting in a test message’s headers or SMTP log reads mail.yourdomain.co.uk.

If all three agree, the reverse DNS side is sound. If the first step returns nothing, the owner of the IP has not published a record. If it returns a generic provider name rather than your own, the record exists but is not branded to you. If the second step returns a different IP, your A record is wrong or stale.

UK organisations also have a free monitoring route. The NCSC’s Mail Check service lets you look for suspicious emails failing reverse DNS checks as part of DMARC reporting, which is a useful way to notice a problem that arrives after an infrastructure change rather than at setup.

Fixing an SMTP reverse DNS mismatch

A “reverse DNS does not match” message usually means one of four things, and the check above tells you which.

  • No PTR exists. Request one from the IP owner, pointing to a hostname with a matching A record.
  • The PTR exists but points to a name with no forward record, or a different IP. Fix the A record in your DNS, or ask the provider to change the PTR to a name that does resolve.
  • The HELO name differs from the PTR. Change the greeting in your mail server or send connector so that it uses the PTR hostname.
  • The mail is leaving from a different IP than you think. This happens after a platform change, a failover or an added relay, and the headers will show it. Repeat the setup for the IP that is genuinely sending.

It helps to know how strict the standards actually are. As the Spamhaus guidelines make plain, valid reverse DNS is an expectation for sending IPs, and large providers apply their own thresholds on top. The GOV.UK guidance on setting up government email services securely requires matching forward and reverse (A and PTR) records for all email-sending hostnames, together with SPF, DKIM signing and a DMARC record, and the NCSC’s email compliance advice lists valid PTR records among the things bulk senders should maintain after the recent changes by large mailbox providers. Government and security bodies treat it as baseline hygiene, and a commercial sender at volume should do the same.

Once the records agree, run a small controlled test to a Gmail and an Outlook address before you release a campaign, and check where the messages land rather than only whether they were accepted.

SPF fail versus reverse DNS: two different problems

Searches for reverse DNS and for an SPF fail often arrive together because both appear in bounce messages and header analysers, but they test different things and are fixed in different places.

Reverse DNS (PTR)SPF
What it asksDoes this IP have a sensible hostname that confirms itself?Is this IP authorised to send for this domain?
Where you fix itThe IP owner’s reverse zone, plus your A record and HELO nameA TXT record in your domain DNS
Typical cause of failureNo PTR, mismatched name, wrong sending IPSending IP or platform missing from the record, or too many lookups

For an SPF fail, Spamhaus’s guidelines set out what a sound record needs: the sending IP explicitly included, SPF records on both the HELO domain and the envelope From domain (the address bounces are returned to), and a total within the limit of 10 DNS lookups, counting include, a, mx, ptr, exists and redirect. Exceeding the limit returns a PermError, which is not a pass and which breaks DMARC alignment. Spamhaus also advises using ip4: and ip6: entries in preference to a or mx mechanisms, because they cost no lookups.

The usual route to an SPF fail is a new tool added to the stack, such as a CRM, a support desk or a transactional service, without anyone updating the record, or the opposite, so many includes accumulating that the lookup limit is breached. Our explanation of SPF, DKIM and DMARC covers how the three work together and why errors there can be costly, and it is the right companion to this page if your bounces mention SPF as well.

Where reverse DNS fits in a wider deliverability picture

The cleanest way to think about it is as the entry requirement for a sending IP, in the same family as authentication. It earns you the right to be assessed rather than dismissed, and the assessment itself then draws on reputation, complaint and bounce rates, who you are mailing and how often.

That is why teams who fix their PTR record and see no change in placement should not conclude the fix was wrong. If open rates have fallen, the cause may sit in audience quality, overlapping lifecycle triggers or an IP that was warmed too quickly, and none of that shows up in a reverse DNS lookup. Our overview of how to fix email deliverability issues sets out how to work through those in a sensible order.

How Digistrat can help

If you would rather not trace who owns which IP, which record sits in which DNS account and why the headers disagree with the documentation, the place to start is our free health check, which shows where the problems are before any decision about fixing them. Where the issue is authentication or sending infrastructure, Deliverability Review and Fix combines a detailed investigation with 45 days of implementation support, and ESP migrations and IP warm-up programmes are covered on the same deliverability services page. For a specific question, such as whether your PTR, HELO and DNS records line up, a free 15-minute call will usually settle it.

Digistrat

For teams that want an owner for the problem after the fix, Managed Deliverability provides daily monitoring, incident response, monthly inbox placement testing and one agreed improvement each month, so that an infrastructure change does not quietly undo a setup that was working.

FAQ

What is reverse DNS in email?

It is a lookup that takes the IP address a message came from and returns a hostname through a PTR record. Receiving servers use it to judge whether the connecting server looks legitimate, and many expect that hostname to resolve back to the same IP.

Can I set a PTR record in my own domain DNS?

No, because reverse zones are controlled by the owner of the IP address block. You create the A record in your domain DNS, and the hosting, cloud or sending platform that owns the IP publishes the PTR record pointing to that hostname.

Will fixing reverse DNS stop my emails going to spam?

It removes one reason for a receiver to distrust your IP, but it is not a guarantee of inbox placement. SPF, DKIM, DMARC alignment, sender reputation, list quality and sending behaviour all continue to influence where your messages land.

How do I fix an SPF fail?

Check that the sending IP or platform is included in your SPF record and that the record stays within the 10 DNS-lookup limit, because exceeding it produces a PermError rather than a pass. Replacing a or mx mechanisms with ip4: and ip6: entries where possible saves lookups.

How long does a corrected PTR record take to work?

The change usually needs to propagate through DNS first, and some receivers may keep a failed result from a first-time sender cached for at least 24 hours after the fix, according to Emaildelivery.com. Verify both lookups with dig before sending a controlled test.

Sources

Not sure if this applies to you?

Book a free check-up and we will walk through your sending situation. No obligation, no pitch.

Book a free check-up

More on authentication

Not sure where your emails are landing?

Send a test email and we will walk through what we find in 15 minutes. No pitch. No obligation.

Book a free check-upFree. 15 minutes. No obligation.