What Is a PTR Record? Understanding Reverse DNS

· Unified DNS Team · 7 min read

What Is a PTR Record?

A PTR record (Pointer record) maps an IP address to a hostname — the reverse of what A records do. While A records answer "What IP does this domain have?", PTR records answer "What domain name is associated with this IP?"

The Basics

Forward vs Reverse DNS

DirectionRecord TypeQueryAnswer
**Forward**A recordmail.example.com → ?198.51.100.25
**Reverse**PTR record198.51.100.25 → ?mail.example.com

Example PTR Record

; IPv4 reverse DNS
25.100.51.198.in-addr.arpa.    3600    IN    PTR    mail.example.com.

; IPv6 reverse DNS
8.b.d.0.1.0.0.2.ip6.arpa.      3600    IN    PTR    mail.example.com.

How PTR Records Work

The in-addr.arpa Zone

IPv4 reverse DNS uses a special domain: in-addr.arpa

The IP address is reversed and appended to this domain:

StepValue
**IP Address**198.51.100.25
**Reversed**25.100.51.198
**PTR lookup**25.100.51.198.in-addr.arpa

IPv6 Reverse DNS

IPv6 uses ip6.arpa with each hex digit separated:

StepValue
**IPv6**2001:0db8:85a3:0000:0000:8a2e:0370:7334
**Reversed**4.3.3.7.0.7.3.0.e.2.a.8.0.0.0.0.0.0.0.0.3.a.5.8.8.b.d.0.1.0.0.2
**PTR lookup**4.3.3.7.0.7.3.0.e.2.a.8.0.0.0.0.0.0.0.0.3.a.5.8.8.b.d.0.1.0.0.2.ip6.arpa

The Reverse DNS Hierarchy

LevelZoneNotes
**Root**arpa
**Level 1**in-addr.arpa
**Level 2**198.in-addr.arpaDelegated to IP owner
**Level 3**51.198.in-addr.arpa
**Level 4**100.51.198.in-addr.arpa
**PTR Record**25.100.51.198.in-addr.arpaResolves to mail.example.com

Performing a Reverse Lookup

# Using dig
dig -x 198.51.100.25

# Using host
host 198.51.100.25

# Using nslookup
nslookup 198.51.100.25

Why PTR Records Matter

Email Deliverability

This is the most common reason MSPs deal with PTR records. Mail servers check PTR records to:

  1. Verify sender identity — IP should resolve to a legitimate hostname
  2. Match forward DNS — PTR hostname should resolve back to the same IP
  3. Check for spam characteristics — Generic PTR = likely spam

What mail servers want to see:

CheckValueResult
**IP**198.51.100.25
**PTR**mail.example.com
**A record**mail.example.com → 198.51.100.25Forward and reverse match

What triggers spam filters:

CheckValueResult
**IP**198.51.100.25
**PTR**25-100-51-198.dynamic.isp.netGeneric ISP hostname = likely residential/dynamic IP

Security and Logging

PTR records help with:

Network Troubleshooting

# traceroute shows hostnames with PTR records
traceroute google.com

# Hop 5: router.isp.net [198.51.100.1]  vs  198.51.100.1

Setting Up PTR Records

Who Controls PTR Records?

Unlike forward DNS where you control your domain's records, PTR records are controlled by whoever owns the IP address block:

IP SourceWho Sets PTR
Your ISPContact ISP support
Cloud provider (AWS, Azure)Provider's portal
ColocationYour control or request to provider
VPS providerUsually in control panel

Common Provider Instructions

AWS EC2:

  1. Request Elastic IP
  2. Create reverse DNS record via AWS Support or in console
  3. Provide the hostname and IP

Azure:

  1. Go to Public IP resource
  2. Set "DNS name label"
  3. PTR automatically created as: label.region.cloudapp.azure.com

DigitalOcean:

  1. Set Droplet name to desired PTR value
  2. PTR automatically matches Droplet name

Most Hosting Providers:

  1. Open support ticket
  2. Provide: IP address, desired hostname
  3. Provider creates PTR record

Verifying PTR Setup

# Check PTR record
dig -x 198.51.100.25

# Verify forward/reverse match
dig mail.example.com A
dig -x 198.51.100.25

# Both should show mail.example.com ↔ 198.51.100.25

Forward-Confirmed Reverse DNS (FCrDNS)

For best email deliverability, ensure:

  1. PTR exists — IP resolves to a hostname
  2. Forward matches — That hostname resolves back to the IP
  3. Hostname is meaningful — Not generic like "198-51-100-25.static.isp.net"
# Test FCrDNS
IP="198.51.100.25"
PTR=$(dig -x $IP +short)
FORWARD=$(dig $PTR A +short)

echo "IP: $IP"
echo "PTR: $PTR"
echo "Forward: $FORWARD"

# Should show same IP

Best Practices for MSPs

1. Always Set PTR for Mail Servers

Any server sending email must have:

2. Use Meaningful Hostnames

Good PTR values:

Poor PTR values:

3. Check PTR During Server Provisioning

Add to your server setup checklist:

  1. Request/configure PTR record
  2. Wait for propagation (can take 24-48 hours)
  3. Verify with dig -x
  4. Verify FCrDNS match

4. Monitor PTR Records

Include in your monitoring:

5. Document PTR Configurations

Track:

6. Plan for IP Changes

When migrating servers:

  1. Provision new IP and set PTR first
  2. Update forward DNS (lower TTL beforehand)
  3. Migrate services
  4. Remove old PTR (optional, usually handled by provider)

Frequently Asked Questions

Why can't I set PTR records in my DNS provider?

PTR records must be set by whoever controls the IP address block. This is usually your ISP, hosting provider, or cloud provider — not your DNS provider.

How long does PTR propagation take?

Typically 24-48 hours, but can vary by provider. Some cloud providers update within minutes.

Do I need PTR for every server?

PTR is essential for:

Less critical for:

What if my ISP won't set a custom PTR?

Options:

Can one IP have multiple PTR records?

Technically yes, but it's uncommon and not recommended. Most services expect a single PTR record per IP.

Does PTR affect SEO or website performance?

No. Browsers and search engines don't use PTR records. PTR primarily matters for email and network administration.


Get Started with Unified DNS

While PTR records are managed separately from your domain DNS, Unified DNS lets you view, modify, audit, and backup all your DNS configurations — with automated backups and Hudu syncing to keep your documentation complete, including notes on the PTR records your mail servers need.

Unified DNS is live — try it free for a month with code FREETRIAL2026 at billing setup. No commitment. Or request a demo for a walkthrough.