DNS Tools

Reverse DNS Lookup

Look up the PTR record for an IP address.

A reverse DNS lookup starts with an IP address and returns the hostname published for it. Ordinary DNS goes from a name to an address. Reverse DNS goes the other way, using a record type called PTR, short for pointer.

This tool looks up the PTR record of an IPv4 or IPv6 address. The check matters most for email. Most receiving mail servers run the same lookup on every server that connects to them, and they treat an address with no hostname, or with a mismatched one, as a warning sign.

How to run a reverse DNS lookup

  1. Type an IP address into the field, for example 8.8.8.8. IPv4 and IPv6 addresses are both accepted.
  2. Click Lookup. The record type is fixed to PTR.
  3. Read the rows IP address, Record type and Records found.
  4. Look at the DNS records table. The Value column holds the hostname that the address points to.

The field takes addresses only. A domain name gets the message "Enter an IPv4 or IPv6 address." To check your own mail server, enter the address it sends from, which is not always the address of your website. If you only know the name of the server, Hostname to IP gives you its addresses.

Private and reserved addresses, such as 192.168.1.10, 10.0.0.5 or 127.0.0.1, are refused. They have no meaning on the public internet, and the lookup runs on the IP Tracker server, not inside your network.

How to read the result

Part of the resultWhat it shows
IP addressThe address you entered
Record typePTR
Records foundThe number of PTR records, normally 1 or 0
TypePTR on each row of the table
ValueThe hostname that the address points to

Read the name itself, because its form tells you what kind of address this is. A name such as mail.example.com was set on purpose by whoever runs the server. A name built from the address, such as 203-0-113-25.dsl.example.net, was generated by the provider for every address in a block and usually marks a home or office connection.

When the address has no PTR record, the table is empty and the page says "No records were returned." The holder of the address block has not published a name for this address.

Why mail servers check reverse DNS

Any computer on the internet can open a connection to a mail server and claim to be anyone. Receiving servers therefore collect evidence about the sender before they accept a message. Reverse DNS is one of the oldest of these checks, and it costs a single DNS question about the connecting address.

The check works because the person who runs a machine does not control its PTR record. The organization that holds the address block publishes it. Someone who sends spam from a hijacked home computer cannot give that computer the hostname of a mail server.

  • The address has no PTR record at all. Many servers refuse the connection or reject the message with an error that mentions reverse DNS or PTR. Others accept it and count the missing record toward a spam verdict.
  • The name is a generic one generated by the provider. Filters read it as a sign of a consumer connection, where a real mail server is unlikely.
  • The hostname does not point back to the address. Such a name could be invented, so receivers treat it like a missing record.
  • The PTR name differs from the name the server announces. A mail server introduces itself with a hostname in the HELO or EHLO greeting when it connects. Some receivers compare that name with the PTR name, and a mismatch lowers trust.

The large mailbox providers list valid reverse DNS among their published requirements for senders. A server that fails it can see its mail refused however well SPF and DKIM are set up.

Forward-confirmed reverse DNS

A PTR record alone proves little, because the holder of an address block can write any name into it, including a name under a domain that belongs to someone else. The stronger test runs in both directions. It is called forward-confirmed reverse DNS, often shortened to FCrDNS.

  1. Look up the PTR record of the address. Suppose 203.0.113.25 returns mail.example.com.
  2. Look up the addresses of that hostname with Hostname to IP.
  3. Compare. If 203.0.113.25 is among the addresses of mail.example.com, the two records confirm each other.

You can try it with the example on the page. The PTR record of 8.8.8.8 names dns.google, and the addresses of dns.google include 8.8.8.8.

Whoever owns the domain controls the forward half, and whoever holds the address controls the reverse half. A match exists only when both agree. For a mail server, set up exactly this pair: one A record from the hostname to the address, and one PTR record from the address back to the same hostname. Use that hostname in the greeting of the server as well.

The PTR name does not have to match the domain in your email addresses. A server called mail.example.net can send mail for anna@example.com and for many other domains. Reverse DNS identifies the machine. The SPF, DKIM and DMARC records, which you can read with TXT Lookup, connect the machine to the domain.

How to get a PTR record set

You cannot create a PTR record in the DNS settings of your domain. Reverse DNS for an address is managed by the organization that the address block is assigned to: the hosting company for a rented server, the internet provider for a business line.

  1. Find out who that is, if you are not sure. IP Lookup shows the ISP and organization for the address.
  2. Create the forward record first. Add an A record that points your chosen hostname at the address, and an AAAA record if the server has an IPv6 address. Some providers will not set a PTR record until the forward record exists.
  3. Look in the control panel of the provider for a setting called reverse DNS, rDNS or PTR, and enter the full hostname there.
  4. Open a support request if there is no such setting. State the IP address and the exact hostname you want.
  5. Run this lookup again afterwards. Resolvers may hold the old answer for a while, so allow some time before you conclude that the change failed.

Home internet connections are a different case. Providers rarely set custom PTR records for them, the addresses often change, and many providers block outgoing connections on port 25 altogether. Many receivers refuse mail sent directly from such a connection. Send through the mail server of your provider or through an email service instead.

On shared hosting and with email services you share the sending address with other customers. Its PTR record carries the hostname of the provider, and that is correct. You do not need a PTR record with your own domain in it.

Reverse DNS for IPv6

IPv6 addresses have PTR records too, and receivers tend to be strict about them. Some large mail providers reject mail that arrives over IPv6 from an address with no PTR record.

The trap is a server that has both kinds of address. Its IPv4 address has had a PTR record for years, and nobody noticed that the server also sends over IPv6 when the receiver supports it. Mail to some recipients then fails and mail to others works. Check both addresses with this tool. Then either give the IPv6 address a PTR record and a matching AAAA record, or configure the mail server to send over IPv4 only.

Reverse names for IPv6 are built from the fully written address, one hexadecimal digit at a time in reverse order, under the special domain ip6.arpa. You do not need to build that name to use this tool. Enter the address in its normal form. If your provider asks for the full form when you request a PTR record, IPv6 Expander writes it out.

Providers usually assign a whole IPv6 range to one server. A PTR record covers a single address, so set it for the exact address the mail server sends from.

Verifying crawlers and other visitors

Reverse DNS with forward confirmation is also the usual way to check a visitor that claims to be a search engine crawler. Anyone can copy the user-agent string of a crawler. Its IP address is much harder to imitate.

Search engines document the procedure. Look up the PTR record of the visiting address and check that the hostname ends in a domain the search engine names in its documentation. Then look up that hostname and confirm that it returns the same address. Without the forward confirmation, the name is only a claim made by the holder of the address.

What this tool does not show

The tool returns the PTR record and nothing more. It does not run the forward check for you, does not connect to the mail server, and does not read the name in its greeting. Blocklist status is not part of the result either.

It is not a list of the websites hosted on an address. One address can serve thousands of sites and still has only the PTR name its provider chose. The result shows no TTL value, and DNSSEC is not validated.

Queries go from the IP Tracker server to public resolvers run by Cloudflare, Google and Quad9, and the first answer is used. The limit is 15 lookups a minute per visitor, and IP Tracker keeps no history of the addresses you look up.

Frequently asked questions

What is the difference between reverse DNS and a normal DNS lookup?

A normal lookup takes a name and returns an address, using A and AAAA records. A reverse lookup takes an address and returns a name, using a PTR record. The two are maintained by different parties and do not agree automatically.

Why was my email rejected because of reverse DNS?

The receiving server looked up the PTR record of the address your mail came from and found none, or found a name that does not point back to that address. The rejection message usually quotes the address. Look it up here to see what receivers see.

Can I add a PTR record in the DNS settings of my domain?

No. PTR records live in the reverse zone of the address block, which belongs to your hosting company or internet provider. Ask them, or use the reverse DNS setting in their control panel.

Does the PTR hostname have to match my email domain?

No. It has to fit the mail server, not the mail addresses. The name must point back to the sending address, and it should be the name the server uses in its greeting.

Why does my address show the name of my provider?

Providers publish default PTR records for the addresses they hold, usually built from the address and a label for the connection type. That default stays until someone asks for a custom name.

How long does a new PTR record take to appear?

The nameservers of the provider usually have it soon after the change. Resolvers that asked about the address recently keep their earlier answer until it expires, for the time set in the TTL of the record.

Does this tool list all domains hosted on an IP address?

No. It returns only the PTR record. Finding every domain that points at an address needs a database built from forward DNS data, which is a different kind of service.