Reverse DNS (PTR) lookup

Enter an IP address, or a domain to look up its addresses first (up to 8). You get the PTR name of each address and whether that name resolves back to the same address.

What reverse DNS is

Ordinary DNS turns a name into an address. Reverse DNS goes the other way: for 192.0.2.10 a resolver asks for the PTR record of 10.2.0.192.in-addr.arpa, and for IPv6 for a name built from the 32 hex digits of the address under ip6.arpa. The PTR record is controlled by whoever holds the address block, usually the hosting provider or ISP, not by the owner of the domain. You set it in the provider's control panel or by asking them.

Forward-confirmed reverse DNS and why mail servers care

Anyone who controls an address block can write any name into a PTR record. So receivers check the other direction as well: the PTR name must resolve, through an A or AAAA record, back to the same address. That pair is called forward-confirmed reverse DNS (FCrDNS).

Receiving mail servers use it as a basic hygiene test. An address with no PTR record, or a PTR name that does not resolve back, looks like a residential line or a misconfigured server, and large mailbox providers say in their sender guidelines that sending addresses need valid forward and reverse DNS. A mail server should have a PTR record that names a host in your domain, that host name should resolve to the same address, and ideally the server introduces itself with that name in HELO.

What this tool does

For an IP address it queries the PTR record and then resolves every PTR name forward. For a domain it first looks up the A and AAAA records and does the same for each address (up to eight). The result says confirmed, mismatch, no address or could not be checked for each name. A failed query is never reported as "no PTR record". The tool only sends DNS queries; it does not connect to the address.

How to use this tool

  1. Enter an IP address or a domain. IPv4 and IPv6 both work. For a domain, its A and AAAA addresses are looked up first.
  2. Look up the PTR records. The tool queries the PTR record of each address.
  3. Check the forward confirmation. Each PTR name is resolved again. "Confirmed" means it points back to the same address, which is what mail servers expect.

Command line equivalent

The same check from a terminal. The commands use example.com: replace it with your own name.

  • PTR record of an IPv4 addressdig -x 192.0.2.10 +short
  • PTR record of an IPv6 addressdig -x 2001:db8::10 +short
  • Forward confirmation of the PTR namedig mail.example.com A +short
  • Windowsnslookup 192.0.2.10

FAQ

How do I do a reverse DNS lookup?

Enter the IP address above, or run dig -x 192.0.2.10 +short. On Windows use nslookup 192.0.2.10.

How do I set a PTR record?

At the provider that gave you the IP address: most hosting control panels have a "reverse DNS" field per address. You cannot set it at the DNS host of your domain unless the address block is delegated to you.

What should the PTR record of a mail server be?

The full host name of the server, such as mail.example.com, and that name must have an A (or AAAA) record with the same address. A generic provider name works technically but is treated with more suspicion.

Why does my website's IP have a PTR that is not my domain?

On shared hosting and behind CDNs one address serves many sites, and the PTR names the provider's machine. That is normal and has no effect on a website. It only matters for servers that send mail.

Can an address have several PTR records?

It is allowed, but mail systems expect one. The tool lists up to five names and checks each.