Pointer Record (PTR)

A PTR record (Pointer record) is a type of DNS record used to map an IP address to a domain name (e.g. 127.0.0.1 -> localhost). It enables reverse DNS (rDNS) lookup, allowing you to find the associated domain name for an IP address.

What is a Pointer Record (PTR) used for?

A PTR record is used for reverse DNS lookups. It associates an IP address with a domain name, enabling identification of the domain name associated with a given IP address. PTR records are commonly used for verifying server identities, preventing email spam, and troubleshooting network issues.

Why should an email server have a valid PTR record?

Having a valid PTR record for an email server is important for several reasons:

In summary, a valid PTR record for an email server is crucial for maintaining email deliverability, preventing spam, establishing server credibility, and aiding in troubleshooting and identification.

Where can I set a PTR record for an email server?

The ability to change a PTR record for an email server depends on your level of control over the DNS configuration of the IP address in question. Generally, the PTR record is managed by the organization or service provider that controls the IP address block.

Can I change a PTR record for an email server?

If you have control over the DNS configuration, you can request a change to the PTR record through the entity responsible for managing the IP address or the DNS settings. However, changing a PTR record for an email server should be approached with caution, as it can have the following consequences:

To minimize any negative consequences, it’s advisable to leave a PTR record - even on a change of a company name. If you have several servers setup for the same purpose, you can change one server and slowly rise traffic of the server to see whether it has any consequences.

How can I check a PTR record?

You can use dig (dnstools) to chec a ptr record of an IP address.

First of all query a valid mail server for an A (IPv4) or AAAA (IPv6) record like from web.de:

$ dig a mout.web.de

;; QUESTION SECTION:
;mout.web.de.			IN	A

;; ANSWER SECTION:
mout.web.de.		61	IN	A	212.227.15.4
mout.web.de.		61	IN	A	217.72.192.78
mout.web.de.		61	IN	A	212.227.17.12
mout.web.de.		61	IN	A	212.227.15.6
mout.web.de.		61	IN	A	212.227.15.14
mout.web.de.		61	IN	A	212.227.15.5
mout.web.de.		61	IN	A	212.227.15.3
mout.web.de.		61	IN	A	212.227.17.11

As next step, use one of the IP addresses listed to query the corresponding PTR record asking for the IP address:

$ dig -x 212.227.15.4

;; QUESTION SECTION:
;4.15.227.212.in-addr.arpa.	IN	PTR

;; ANSWER SECTION:
4.15.227.212.in-addr.arpa. 82994 IN	PTR	mout.web.de.

As you can see, the same domain can point to the same domain name.