Skip to content

Home Topics Email Authentication Reverse DNS and PTR records

Email Authentication · Reverse DNS and PTR records

How to set up reverse DNS (PTR) records: step-by-step guide (2026)

Short answer

To set up reverse DNS (PTR) records: Ask your hosting or ESP provider to set a PTR for each sending IP; Use a hostname under your domain (mail1.example.com) rather than the provider's generic name; Create the matching A record so forward and reverse agree. Then use the same hostname in the SMTP HELO/EHLO banner.

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.

How to implement reverse DNS (PTR) records#

  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.

How to verify it worked#

Send a test message to seed mailboxes at Gmail, Outlook, and Yahoo, then inspect the Authentication-Results and delivery headers. Repeat after any DNS or sending-platform change.

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