Skip to content

Home Topics Email Authentication Reverse DNS and PTR records

Email Authentication · Reverse DNS and PTR records

What are reverse DNS (PTR) records? Definition, how it works, and why it matters

Short answer

A PTR record maps a sending IP address back to a hostname. Mailbox providers check that the PTR resolves and that the hostname's A record points back to the same IP (forward-confirmed reverse DNS).

What reverse DNS (PTR) records are#

A PTR record maps a sending IP address back to a hostname. Mailbox providers check that the PTR resolves and that the hostname's A record points back to the same IP (forward-confirmed reverse DNS).

Why it matters#

Gmail's sender guidelines require valid forward and reverse DNS. Missing or generic PTRs are a classic spam signal and cause outright rejections at many gateways.

Getting started#

  1. Ask your hosting or ESP provider to set a PTR for each sending IP.
  2. Use a hostname under your domain (mail1.example.com) rather than the provider's generic name.
  3. Create the matching A record so forward and reverse agree.
  4. Use the same hostname in the SMTP HELO/EHLO banner.

Common mistakes#

  • Generic PTRs like 203-0-113-10.provider.net.
  • HELO names that do not match the PTR.

Frequently asked questions#

Can I set PTR records in my own DNS?

No. PTRs live in the IP owner's reverse zone. Your hosting provider or ESP sets them, though some offer self-service.

Analyse your own setup

All analysers
Technical analysis

SPF record analyser

Parse an SPF record, count its DNS lookups, and find what will break it.

Runs in your browser
Technical analysis

DMARC record analyser

Grade a DMARC record on enforcement, not just syntax.

Runs in your browser
Technical analysis

DKIM key analyser

Check a DKIM public key's strength, revocation state, and tags.

Runs in your browser

Keep reading on Reverse DNS and PTR records