PTR Records

Reverse DNS lookups: Mapping IP addresses back to domain names.

What is a PTR Record?

A PTR record (Pointer record) is the opposite of an A record. While an A record maps a hostname to an IP address, a PTR record maps an IP address to a hostname. This process is known as a Reverse DNS Lookup.

Structure of a PTR Record

34.216.184.93.in-addr.arpa. 3600 IN PTR example.com.

Why Reverse DNS Matters

Email Deliverability

Many mail servers use PTR records to verify that a sending server is actually who they claim to be. If you send mail from an IP that doesn't have a PTR record (or if it doesn't match your domain), your emails will often be flagged as spam.

Security & Logging

PTR records are used in network troubleshooting and logging to translate IP addresses into human-readable domain names. It's much easier to identify mail.google.com in a log than its IP address.

Who Manages PTR Records?

Unlike A or MX records, which you manage through your DNS provider, PTR records are typically managed by the owner of the IP address. This is usually your ISP (Internet Service Provider) or Cloud Hosting provider (like AWS, DigitalOcean, or Linode). You often need to ask them to set up a PTR record for you.

Reverse DNS Zones

Reverse DNS uses a special domain hierarchy called in-addr.arpa (for IPv4) and ip6.arpa (for IPv6). The IP address is reversed and appended to this domain. For example, the reverse lookup for 1.2.3.4 is 4.3.2.1.in-addr.arpa.