Skip to content

Home Topics Email Authentication Reverse DNS and PTR records

Email Authentication · Reverse DNS and PTR records

Reverse DNS (PTR) records for beginners: a plain-English guide

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). If you are starting from zero: Ask your hosting or ESP provider to set a PTR for each sending IP.

The one-sentence version#

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 you should care#

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.

The mental model#

Think of reverse DNS (PTR) records as a contract between you and the mailbox providers receiving your mail. You publish or configure something they can check; they check it on every message; the result feeds their decision about where your message lands. Everything below is about making that check pass consistently.

Your first setup, step by step#

  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.

Words you will see#

  • Mailbox provider: Gmail, Microsoft, Yahoo, Apple, and the corporate gateways that decide where mail lands.
  • Authentication: proof that a message is from who it says it is (SPF, DKIM, DMARC).
  • Reputation: the provider's running score of your domain and IP.
  • Placement: whether a message reaches the inbox, spam, or is rejected.

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