IP Tools

IP PTR Lookup

Find the PTR hostname associated with an IP address.

IP PTR Lookup shows the PTR record of an IP address. A PTR record is a DNS record that maps an address to a hostname, the opposite direction from the usual lookup that maps a name to an address. Looking one up is also called a reverse DNS lookup.

Enter an IPv4 or IPv6 address and the tool returns the hostname published for it, if there is one. It returns that record only. The websites hosted on the address are not listed.

How to look up a PTR record

  1. Enter an IPv4 address such as 8.8.8.8, or an IPv6 address.
  2. Click Lookup. The IP Tracker server sends a PTR query for that address to public DNS resolvers.
  3. Read the summary rows: IP address, Record type and Records found.
  4. Look at the DNS records table. The Value column holds the hostname from the PTR record.
  5. The same record is available under "View as JSON", with Copy JSON and Download JSON buttons for saving it.

The field takes addresses only. A domain name gets the message "Enter an IPv4 or IPv6 address." To go from a name to its addresses, use Hostname to IP.

Reading the result

PartWhat it shows
IP addressThe address you entered
Record typePTR, the only type this tool queries
Records foundHow many PTR records came back, normally 1 or 0
TypePTR again, in the DNS records table
ValueThe hostname the address points to

For 8.8.8.8 the Value is dns.google. The name tells you the address is one of Google's public DNS servers, and Google put the name there as the holder of the address.

When the address has no PTR record the page says "No records were returned." This is a normal answer. It means nobody published a name for the address, not that the address is unused or broken.

What a PTR record is

DNS is mostly used to turn names into addresses. An A record holds the IPv4 address for a name, and an AAAA record holds the IPv6 address. A PTR record, short for pointer, stores the reverse: a name for an address.

The two directions are stored in different places and maintained by different people. Nothing in DNS keeps them in agreement. An address can have a PTR record naming mail.example.com while mail.example.com points somewhere else, or does not exist at all.

PTR records are read by other systems more often than by people. Many mail servers look up the PTR record of each server that connects to them. Logging software and commands such as traceroute use PTR records to print names next to addresses. The email side is covered in the guide to Reverse DNS Lookup.

How the reverse name is built

DNS can only look up names, so an address has to be rewritten as a name before it can be queried. Two special zones exist for this: in-addr.arpa for IPv4 and ip6.arpa for IPv6.

For IPv4, the four numbers of the address are written in reverse order and in-addr.arpa is added to the end. The PTR record for 203.0.113.25 is stored under the name 25.113.0.203.in-addr.arpa.

The order is reversed because the two notations run in opposite directions. A DNS name has its most general part on the right, as in www.example.com. An IP address has its most general part on the left. Turning the address around lets the zone for a whole block, such as 113.0.203.in-addr.arpa, be handed to the organization that holds that block.

For IPv6, the address is first written out in full as 32 hexadecimal digits. The digits are then reversed and separated by dots, and ip6.arpa is added. The address 2001:db8::1 becomes 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa. IPv6 Expander shows the full form of an address if you need to build such a name by hand.

The tool does this rewriting for you. You enter the address in its normal form.

Who controls a PTR record

The reverse zones are delegated along the same lines as the addresses themselves. A regional internet registry delegates the reverse zone for a block of addresses to the organization that holds the block, which is usually an internet provider or a hosting company. That organization runs the nameservers for the zone and decides what each PTR record says.

The owner of a domain has no say in this. You can create any A record you like in your own domain, but you cannot create the PTR record for the address it points to unless you also hold the address block.

If you rent a server, the PTR record is set through the hosting company. Many hosts have a field for it in their control panel, often labeled reverse DNS or rDNS, and others set it on request. Home and mobile connections are different: the provider usually gives every customer address a generated name and does not offer to change it.

A provider that assigns a whole block of addresses to one customer can delegate the matching reverse zone to the customer's own nameservers. The customer then edits the PTR records directly.

PTR records compared with A records

PropertyA recordPTR record
DirectionName to IPv4 addressAddress to name
Stored inThe zone of the domainThe reverse zone under in-addr.arpa or ip6.arpa
Controlled byThe domain ownerThe holder of the address block
Usual numberA name can have severalAn address normally has one
Needed forReaching the name at allMail delivery and readable logs, otherwise optional

Many names can point at one address. A shared hosting server may carry hundreds of websites, each with an A record leading to the same address. The address still has only one PTR record, and it usually names the server or the provider, not any of the sites.

DNS permits more than one PTR record for an address, and the Records found row shows the count. A single record is the convention, because software that reads PTR records generally expects one name and may pick any of them when given several.

When a PTR lookup is useful

  • You run a mail server and want to confirm the PTR record your provider set. Receiving servers look it up, so the name here is the name they see.
  • You asked your host to change a PTR record and want to see whether public resolvers return the new name yet.
  • An unknown address appears in a log and you want a first clue about it. A provider name or a word such as mail or crawl in the hostname narrows it down, and IP Lookup adds the network operator.
  • You are checking a server you just rented. Many hosts leave a generic name on a new address until the customer sets one.

Resolvers keep a PTR answer for a period set by the zone, in the same way as any other DNS record. After a change, the old name can still appear here until that period has passed.

What this lookup does not do

The tool returns the PTR record and nothing else. It does not list the domains or websites hosted on an address. A PTR record cannot provide that, since it holds one name chosen by the address holder, and no DNS query returns every name that points at an address.

It does not check that the hostname points back to the address. That second step is called forward confirmation. To do it, enter the returned hostname in Hostname to IP and see whether your address is in the list.

The query goes from the IP Tracker server to public resolvers, so only public addresses work. Private addresses such as 192.168.1.10 and 10.0.0.5 are refused. They may have PTR records on a DNS server inside your own network, but public resolvers cannot see those.

The result has no TTL column, so it does not show how long the record may be cached. The usual limit of 15 lookups a minute per visitor applies, and the addresses you enter are not kept in any history.

Frequently asked questions

What does PTR stand for?

Pointer. A PTR record points from an IP address to a hostname, and it is the record type that reverse DNS is built on.

Can I set a PTR record in my domain's DNS settings?

No. A PTR record belongs to the reverse zone of the address, and that zone is run by whoever holds the address block. That is the hosting company for a rented server and the internet provider for an office or home line.

Ask that company to set the record, or look for a reverse DNS setting in its control panel. Create the matching A record in your own domain first, because some providers check it before they accept the change.

Can one IP address have more than one PTR record?

DNS allows it, but it is rarely a good idea. Programs that read the PTR record usually take a single name, and with several records there is no way to say which one they will use.

One address, one PTR record is the normal arrangement, even when many domains point at the address.

Why does the lookup say "No records were returned"?

No PTR record is published for that address. The holder of the address block never created one, which is common for addresses that do not send email.

If you expected a name, check that you asked your provider, not your domain host, to create it.

Does this tool show all the websites on an IP address?

No. It shows the PTR record, which is one hostname set by the address holder. Websites are connected to an address through A records in their own domains, and DNS has no query that collects those.

Why does the PTR name not match my domain?

The PTR record was set by your hosting company or provider, and by default it carries a name from their domain. Your own A record does not change it.

On a website this mismatch does no harm. A mail server is different, and there you should ask the provider to set the PTR record to the hostname the mail server uses.

Do IPv6 addresses have PTR records?

They can. The record is stored under ip6.arpa and works the same way. Enter the IPv6 address in the field in its usual form.

In practice fewer IPv6 addresses have one, because the address blocks are too large for providers to fill with generated names.

How is this different from Reverse DNS Lookup and IP to Hostname?

All three send the same PTR query and return the same record. The pages differ in their guides. This one explains the record itself, Reverse DNS Lookup covers email and verification, and IP to Hostname covers reading the names found in logs and headers.