All posts

Reverse DNS for Email: What a PTR Record Is and Who Sets It

· 7 min read

A yoga studio manager at a small front desk reading an email settings page on a laptop, with an amber notebook and an orange mug beside it

Most deliverability advice is about records you publish on your own domain: SPF, DKIM, DMARC. Reverse DNS for email is different, because the record sits with whoever owns the sending IP address, and that is often not you. Google's sender guidelines still list it as a requirement for everyone who writes to Gmail, so it is worth knowing what it is, how to look at yours and who to ask when it is wrong. This post goes through each of those, and it says plainly what InboxRampUp does and does not check.

What reverse DNS for email actually is

Normal DNS turns a name into an address. Reverse DNS goes the other way: you give it an IP address and it answers with a hostname. The record that holds that answer is a PTR record, short for pointer.

RFC 1035, the original DNS specification, describes where those records live. Under the heading "IN-ADDR.ARPA domain" it explains that an IPv4 address is written backwards, so the address 10.2.0.52 is looked up at 52.0.2.10.IN-ADDR.ARPA. The reversal looks odd, and the RFC says why it is there: it lets a whole block of address space be delegated as one zone to whoever runs that block. Source: RFC 1035, section 3.5.

The same section carries a caution that matters for email. The reverse zone and the normal domain are different zones, so the data in them can be inconsistent. A receiving mail server uses that gap. It takes the IP that connected, asks for its PTR record and then checks that the hostname in the answer points back to the same IP.

What Google asks of senders

Google's email sender guidelines name reverse DNS in two places. It appears in the requirements for all senders who write to personal Gmail accounts, and it appears again in the longer list for senders above 5,000 messages a day. A small cold-email sender is not exempt.

The page gives the rule in two parts. The public IP address of a sending SMTP server must have a PTR record that resolves to a hostname, which Google calls a reverse DNS lookup. That same hostname must also have an A record (IPv4) or AAAA record (IPv6) that resolves to the same public IP. Google calls this the forward DNS lookup, and it states the consequence twice: the sending IP address must match the IP address of the hostname in the PTR record.

The guidelines list one more infrastructure requirement next to it, a TLS connection for transmitting email. Google links its own help page, Require a secure connection for email, for the Google Workspace steps.

A courier depot dispatcher at a desktop monitor in a small office, with parcel shelves visible behind a glass partition
Whoever runs the sending server owns this record.

The page also shows what a failure can look like on IPv6. It quotes the rejection 550-5.7.1, "Message does not meet IPv6 sending guidelines regarding PTR records and authentication", and says it could mean the sending server's PTR record isn't using IPv6. If you use an email service provider, Google's advice is to confirm that they use an IPv6 PTR record.

Google doesn't say what share of mail gets rejected for a missing PTR record, and we don't have a number either. What we can say is that the requirement is written down, and that a check you fail on this one is an avoidable failure.

Who controls the record

Here the usual advice breaks down. You can't add a PTR record in your own DNS zone for your domain, because the lookup doesn't go there. It goes to the reverse zone for the IP address, and as the RFC describes, that zone follows the address block. In practice the block belongs to a hosting company, a cloud provider or a mail provider, and they are the ones who can set the record. Some expose it as a setting on the server or the IP, and others handle it on request.

How that plays out depends on how you send:

  • Through a large mailbox provider. The guidelines page notes that large providers, such as Google, AOL and Yahoo, typically follow these guidelines, and the servers that connect to Gmail on your behalf are theirs to configure. There is usually nothing for you to publish.
  • Through an email service provider or an SMTP relay. Google tells you to verify that the provider follows the guidelines on the page, and for IPv6 to confirm they use an IPv6 PTR record. That is a question for their support team.
  • From a server you run yourself, on a VPS or a dedicated IP. This one is yours to fix. Set the PTR record to a hostname you control, in the provider's control panel or by asking them, then make sure that hostname has an A or AAAA record with the same IP.
  • From a shared IP. Google's page says the activity of every sender on a shared address affects the reputation of all of them, so a correct PTR record doesn't shield you from a neighbor's behavior. Its advice is to check that the shared IP isn't on a blocklist and to use Postmaster Tools if you send through an email service provider.

How to check yours

Google points to its Admin Toolbox Dig tool for the lookup, at toolbox.googleapps.com/apps/dig/#PTR/. Enter the sending IP, read the hostname it returns and then look that hostname up as an A or AAAA record. If the IP in the second answer matches the one you started with, the forward and reverse records agree.

You need the IP that actually connects to the receiving server, which you can read from the Received headers of a delivered message. The IP of your website is not the same thing. If you can't tell which IP your mail leaves from, ask your provider before you change anything.

A few mistakes to look for:

  • The PTR record exists but the hostname has no A or AAAA record.
  • The hostname resolves, but to a different IP than the one sending.
  • Mail goes out over IPv6 and only the IPv4 address has a PTR record.
  • The record was set for an old IP, and the server has since moved.

What InboxRampUp checks and what it doesn't

The domain health check inside InboxRampUp and the free deliverability checker test SPF, DKIM, DMARC, MX and blacklists. They do not test PTR records, and they do not test TLS. A clean score there tells you nothing about reverse DNS, and we won't pretend it does.

Live DNS checks for a mailbox's domain showing SPF, DKIM, DMARC, MX and blacklist status (demo data)
In InboxRampUp: the domain health panel for one mailbox, shown with demo data.

What the health panel does cover is the half of the picture that lives on your own domain. Our posts on domain health checks and on SPF, DKIM and DMARC explain those records, and the MX records post covers the direction where mail comes in. Reverse DNS belongs to the sending side, so it needs a lookup of its own.

A locksmith shop owner typing an email at a workbench corner, with keys hanging on a pegboard behind him
Check the sending IP, not just the domain.

Warmup doesn't replace any of this either. It gives a legitimate sender a track record, and it assumes the basics are in place. A missing PTR record is one of those basics, and Google lists it with the requirements, not with the nice-to-haves. For the full list in one place, see our post on Gmail and Yahoo bulk sender requirements.

FAQ

Do I need a PTR record if I send through Google Workspace or Microsoft 365?

Not one you set yourself, as a rule. The mail leaves from the provider's servers, so the reverse DNS belongs to them. Google's guidelines note that large providers typically follow its requirements. For certainty about a specific provider, ask their support what the PTR record of your sending IP resolves to.

Where do I add a PTR record?

Not in your domain's DNS zone. It goes into the reverse zone for the IP address, which the owner of the IP block controls. Look in your hosting or cloud control panel, or ask the provider to set it.

What should the PTR hostname be?

Google says the hostname must resolve forward to the same IP that sends the mail, and that the reverse record should point to your domain. It doesn't prescribe a naming pattern beyond that, so we don't either.

Does a PTR record guarantee inbox placement?

No. It is one requirement on a list, and mailbox providers make their own call on every message. Having it in place keeps you from failing a check that is easy to avoid.

Does InboxRampUp test reverse DNS?

No. The domain health check and the free checker cover SPF, DKIM, DMARC, MX and blacklists. Use the Google Admin Toolbox lookup above for PTR.

Check the records you can see

If you're setting up new sending domains, start a free trial (no credit card), connect a mailbox and open its domain health panel. For a quick look at SPF, DKIM, DMARC, MX and blacklist status before that, run your domain through the free deliverability checker.

  • reverse DNS
  • PTR record
  • Gmail sender requirements
  • email deliverability
  • sending IP

Ready to get out of spam for good?

Build sender reputation on autopilot. Free trial, no credit card required.