What Is Reverse DNS (a PTR Record)?

Category: Networking & IP ยท Updated 2026-11-12

A PTR record, short for pointer record, maps an IP address back to a hostname, which is the reverse of what a normal A record does. This process is called reverse DNS, and it is commonly used to verify that a mail server's IP address matches a legitimate, properly named host before accepting its email. Unlike a domain's own DNS records, the PTR record is controlled by whoever owns the IP address, usually the hosting or network provider, not the domain's owner.

Forward DNS vs. reverse DNS

A normal, "forward" DNS lookup answers the question "what IP address does this hostname point to?" using an A or AAAA record. Reverse DNS flips that question around to "what hostname does this IP address point back to?" and answers it with a PTR record. Both can exist for the same server, but they are configured and controlled completely separately.

Where a PTR record actually lives

PTR records are stored in a special reverse DNS zone built from the IP address itself, using the domain suffix in-addr.arpa for IPv4 or ip6.arpa for IPv6. An IPv4 address is written backward as part of the name.

; Reverse zone entry for 203.0.113.10
10.113.0.203.in-addr.arpa.  IN  PTR  mail.example.com.

Because this zone is tied to the IP address block, only the organization that controls that block, typically the hosting or data center provider, can publish a PTR record for it. This is why changing a PTR record usually means opening a support ticket with your host rather than editing your own domain's DNS.

Why reverse DNS matters most for email

  • Many receiving mail servers check that a connecting IP address has a PTR record at all, and reject or flag mail from servers that do not.
  • Some servers also check that the PTR record's hostname resolves forward back to the same IP, called forward-confirmed reverse DNS, as a basic sanity check against spoofing.
  • A missing or generic PTR record, such as one that only shows a provider's default hostname, is a common reason legitimate mail lands in spam.

Checking a PTR record

dig -x 203.0.113.10 +short
mail.example.com.

If the result is missing, wrong, or still shows a generic hostname assigned by the provider, contact the host or network provider that owns the IP address, since the domain registrar cannot fix it.

Frequently asked questions

What is a PTR record used for?

It maps an IP address back to a hostname, which receiving mail servers commonly check to confirm that an email is coming from a properly named, legitimate server before accepting it.

Who controls the PTR record for my server?

The organization that owns the IP address block controls it, which is usually your hosting or data center provider rather than your domain registrar.

Can I set my own PTR record?

Not directly through your domain's DNS. You need to request the change through whoever assigned you the IP address, typically your VPS, dedicated server or cloud provider.

Does every IP address need a PTR record?

Not strictly, but any IP address sending email should have one, since many mail servers reject or heavily penalize messages from IPs without a valid reverse DNS entry.

What happens if a PTR record does not match the sending domain?

It will not necessarily block mail by itself, but combined with other red flags it lowers deliverability; many hosts check that the PTR hostname at least resolves back to the same IP address.

How do I look up a PTR record?

Run a reverse lookup with a tool such as the dig command using the -x flag, or an online reverse DNS lookup tool, entering the IP address to see its associated hostname.

Related topics