PTR lookup

Short answer

What is a PTR record?

A PTR record is reverse DNS: it links an IP address to a host name, for example that 192.0.2.25 points to mail.company.com. The record is under in-addr.arpa for IPv4 and ip6.arpa for IPv6, and is set by whoever owns the IP address. Mail servers must have PTR, otherwise Gmail and Outlook often reject the email.

Enter the IPv4 or IPv6 address.

Why PTR

Email receivers look up PTR for the sending server. If it is missing, or does not point back, the email is often rejected.

How to use the tool

Enter the IP address of the server, for example from the Received header of an email or from the DMARC reports. You get the name in the PTR record and see whether that name has an A or AAAA record pointing back to the same IP. When both directions match, it is called FCrDNS.

For IPv4, 192.0.2.25 is looked up as 25.2.0.192.in-addr.arpa. The tool builds this name for you.

Good PTR names

  • Use a real host name in your own domain, like mail.company.com.
  • Avoid generic names like 192-0-2-25.customer.isp.com for mail servers. Many spam filters treat them as home connections.
  • The name should be the same as the server uses in HELO/EHLO.

Questions and answers

Can I set PTR myself?

Only if you own the IP address. Otherwise the internet or cloud provider must do it.

Do I need PTR when I use Microsoft 365 or Google Workspace?

No. The email is then sent from Microsoft or Google servers, which already have PTR. You only need it for your own servers, like an on-premises Exchange or a printer that sends directly.

How long until a new PTR works?

Usually minutes to a few hours after the provider has added it, depending on the TTL.

Can an IP address have several PTR records?

It is possible, but not recommended for mail servers. Many receivers only look at the first answer. Use one PTR per IP address, with the name the server uses in HELO.