Gate46
  1. All tools
  2. Names line

Reverse DNS lookup

Find the hostname an IP address points back to, and check that the hostname points to the same address in return.

Enter an IP address to find its hostname.

You will see the PTR record for the address, the reverse name that was queried, and whether the hostname points back to the same address. Try a well-known public resolver:

What reverse DNS is

Ordinary DNS turns a name into an address. Reverse DNS goes the other way: it asks which hostname an IP address claims as its own.

The answer is stored in a PTR (pointer) record. To find it, the address is rewritten as a name under a special domain. For IPv4 the four numbers are reversed and .in-addr.arpa is added, so 192.0.2.25 becomes 25.2.0.192.in-addr.arpa. For IPv6 all 32 hexadecimal digits are written out, reversed, separated by dots and placed under .ip6.arpa. This tool builds that name for you, asks a public resolver for its PTR record over DNS-over-HTTPS, and shows exactly what came back.

Who controls a PTR record

Not the owner of the domain. Reverse zones are handed out together with the addresses themselves: from the regional registry to whoever holds the address block, which is usually an internet provider, a hosting company or a cloud platform. Only that holder can publish a PTR record.

This is why you cannot set reverse DNS in your own domain's DNS zone, even when the hostname you want is in your domain. It is also why a PTR record proves little by itself. The address holder can point it at any name at all, including a name they have nothing to do with. The proof comes from checking both directions.

Reading the result

ResultWhat it meansWhat to do
Forward-confirmedThe address names a hostname, and that hostname resolves back to the same addressNothing. This is what mail servers want to see
Does not matchThe PTR record names a hostname that resolves to a different address, or to nothingFix the A or AAAA record of the hostname, or have the PTR record changed
No PTR recordThe address holder has not published a hostnameNormal for many home and unused addresses. Request one if you send mail from it

A name such as host-203-0-113-42.example.net is generated automatically by a provider for every customer address. It tells you which provider holds the address and little else.

Why mail servers need forward-confirmed reverse DNS

A receiving mail server sees only the IP address of whoever connects to it. It looks up the PTR record of that address, then resolves the hostname it got and checks that the original address is among the answers. This two-way check is called forward-confirmed reverse DNS, or FCrDNS. Spam sent from infected home computers almost never passes it, so it is a cheap and effective filter.

Many receivers refuse mail, or file it as spam, when the sending address has no PTR record or fails the forward check. Large mailbox providers, Gmail among them, list valid forward and reverse DNS in their requirements for senders. For the best result, the PTR hostname should also be the name your mail server announces in its SMTP greeting.

How to request a PTR record

  1. Find the address holder. A WHOIS lookup on the IP address shows which provider the block is registered to.
  2. Create the forward record first. Add an A record (AAAA for IPv6) for the hostname, such as mail.example.com, pointing at the address. Many providers will not set a PTR record until this exists.
  3. Ask the holder to set the PTR record. Cloud and hosting companies usually have a reverse DNS field in the control panel next to the address. Business connections with a static address need a support request. Home connections with a changing address generally cannot have a custom PTR record.
  4. Check both directions here. Resolvers cache the old answer until its TTL runs out, so allow some time before looking again.

Common questions

Can I set reverse DNS at the company that hosts my domain's DNS?

Only if that company also holds the IP address. The PTR record lives in the reverse zone of the address block, which belongs to your internet or hosting provider. Your domain's DNS host controls the forward record, the A or AAAA record, and you need both.

Can one address have more than one PTR record?

The DNS allows it, and this tool lists and checks every one. In practice a lot of software reads only the first answer, and the order is not fixed, so mail checks can pass one minute and fail the next. One PTR record per address is the safe choice for a mail server.

Why does my home address show my provider's name?

Providers publish automatic PTR records for their customer ranges, often with the address or the region written into the name. It identifies the provider, not you, and it changes when your address changes.

Does a missing PTR record break anything?

Not for browsing, streaming or gaming. It matters when the address sends email, and it makes logs and traceroute output harder to read because hops show as bare numbers. Private addresses such as 192.168.1.10 never have a public PTR record. Only a DNS server inside that network can name them.