DNS & Domains 4 min read

What Is Reverse DNS (PTR Record)?

Explanation of reverse DNS (PTR record) — why it matters for email delivery, how to configure it and how to check it.

What Is Reverse DNS?

Reverse DNS (rDNS) is the opposite of regular DNS: instead of translating domain → IP, it translates IP → domain name. This is done via a special DNS record type called a PTR record (Pointer Record).

Example:

  • Forward DNS: mail.example.com → 203.0.113.10
  • Reverse DNS: 203.0.113.10 → mail.example.com

Why Does Reverse DNS Matter?

For Email Delivery

This is the primary reason you need a correct PTR record. Before accepting your email, a mail server checks:

  1. Does the sender's IP have a PTR record?
  2. Does the hostname returned by PTR resolve back to the same IP (forward-confirmed rDNS)?
  3. Does the PTR hostname match what the server uses in HELO/EHLO?

If any of these fail, many mail servers automatically reject the email or mark it as spam.

For Logging and Monitoring

In logs you see hostnames instead of cryptic IPs: mail.example.com instead of 203.0.113.10. Much more useful for debugging.

For Network Tools

Tools like traceroute, whois and ping display hostnames instead of IPs when a PTR record exists.

How to Set Up a PTR Record

Important: PTR records are NOT set at your domain's DNS provider. They are set by the provider who assigned you the IP — your hosting/VPS/datacenter.
  1. Find who controls your IP — check your VPS/dedicated server control panel. There's usually a "Reverse DNS" or "PTR record" option.
  2. Set the PTR value — the hostname you set must resolve back to the same IP (forward-confirmed). If you set mail.example.com, then mail.example.com must have an A record pointing to that IP.
  3. Wait for propagation — PTR changes typically take 1–4 hours.

Example of correct setup:

A record:   mail.example.com  →  203.0.113.10
PTR record: 203.0.113.10      →  mail.example.com

This bidirectional mapping is called FCrDNS (Forward-Confirmed Reverse DNS) and is what mail servers verify.

Check PTR records and DNS entries for any IP or domain:

→ DNS Checker

How to Check Your PTR Record

From the command line:

dig -x 203.0.113.10          # dig reverse lookup
nslookup 203.0.113.10        # Windows/Linux
host 203.0.113.10            # Linux

Or use NerdTools DNS Checker — select record type PTR and enter the IP in reversed octets format (e.g. for 203.0.113.1010.113.0.203.in-addr.arpa).

Shared Hosting — What Happens?

On shared hosting, the IP belongs to the hosting provider and serves many domains. Your hosting's PTR record likely points to the provider's hostname (e.g. mail.hostingprovider.com), not your domain.

This can negatively affect email delivery — if you have issues, the solution is to use an external mail provider (Google Workspace, Brevo, Mailgun, etc.) instead of sending email from shared hosting.

Frequently Asked Questions

Where do I set the PTR record?
At your IP provider — the hosting, VPS or datacenter. NOT at your domain's DNS provider. For shared hosting you typically don't have access — contact your host or use an external SMTP.
Are my emails going to spam because I don't have a PTR record?
Very likely. Missing PTR record is a strong spam signal — many mail servers check it and automatically reject. Set a PTR that matches your mail server's HELO hostname.
How many IPs can have PTR records?
Each IP can have one PTR record. Many-to-one (multiple IPs → one hostname) is fine; one-to-many (one IP → multiple hostnames) is not typically supported.
How long does it take for a PTR record to activate?
Usually 1–4 hours after setting it at the provider. Propagation is faster than regular DNS changes because PTR records typically have a low TTL.

Try it now

Related guides