DNS tools
Reverse DNS Lookup
Find the public PTR hostnames associated with an IPv4 or IPv6 address.
What is reverse dns lookup?
Reverse DNS searches for PTR records that associate an IP address with a hostname. The network operator controls those records.
How to use this tool
- Enter the ip you want to check and review any options.
- Select Look up to submit your request.
- Read the result, inspect its source and copy or download the response if needed.
Understanding the results
- Hostnames
- The PTR names published for the address. Many addresses have none.
- Who controls it
- The network that owns the IP address sets its PTR record, not the owner of the hostname.
- Matching forward DNS
- Mail servers often check that the PTR hostname resolves back to the same address. Run a DNS lookup on the hostname to confirm.
Supported features and common uses
A PTR record does not prove a website’s identity or ownership. Some public addresses have no reverse records. Private and reserved IP addresses are not queried.
Troubleshooting
Check the input format if validation fails. Public data may be missing or redacted, and upstream services can time out or rate limit requests. A failed lookup is not proof that a domain or website is unavailable.
How reverse DNS works
Ordinary DNS turns a name into an address. Reverse DNS goes the other way. The address is written backwards and placed under a special domain, and a PTR record at that name holds the hostname. For the IPv4 address 8.8.8.8 the name is 8.8.8.8.in-addr.arpa, and its PTR record points to dns.google.
IPv6 works the same way under ip6.arpa. Each hexadecimal digit of the address becomes its own label, written in reverse, which makes the names long but the idea is identical.
Who can set a PTR record
The reverse zones belong to whoever holds the address block, which is normally a hosting provider or an internet provider. You cannot create a PTR record in your own domain’s DNS zone, because your domain is not where resolvers look. Ask the company that gave you the address. Most hosting control panels have a field for it, often labelled reverse DNS or rDNS.
Why mail servers care
Receiving mail servers look up the PTR record of every server that connects to them. An address with no PTR record, or one with a generic name assigned by an internet provider, looks like a home computer sending spam. Many receivers reject or penalize mail from those addresses. Google’s guidelines for email senders ask for valid forward and reverse DNS on every sending address.
The check usually goes both ways. The receiver reads the PTR hostname, then looks up that hostname’s address and expects to get the original IP back. This is called forward-confirmed reverse DNS. Use the DNS lookup on the hostname to check the second half.
What PTR names look like
- Custom names set by the server’s owner, such as mail.example.com.
- Generic names created by the provider that include the address, such as a name built from the four numbers of the IP.
- Cloud names such as ec2-203-0-113-25.compute-1.amazonaws.com, which identify the platform and region.
- Router names that contain a city or airport code, which you often see in traceroute output.
Uses beyond email
Reverse DNS makes server logs easier to read, because a hostname says more than a bare address. It also helps you check who a visitor is. Google documents this method for confirming its crawler: look up the PTR record for the address, confirm the name ends in googlebot.com or google.com, then look up that name and confirm it returns the same address.
Limits of reverse DNS
A PTR record is a label chosen by the network operator. It is not proof of who runs a server or which websites are on it. One address can host hundreds of sites on shared hosting and still have a single PTR name that mentions none of them. To see who an address is registered to, use the IP lookup.
Private and reserved addresses, such as those starting with 10. or 192.168., are not looked up. They mean something only inside a private network, and public DNS has no answer for them.
A worked example
Look up 8.8.8.8 and the answer is dns.google. Now run a DNS lookup for the A record of dns.google and the list of addresses includes 8.8.8.8. The reverse and forward records agree, which is the result mail servers and security tools hope to see.
Try the address of a server on a low-cost hosting plan and the answer is often a name made up of the address digits under the provider’s domain. That is a generic record the provider created for every address it owns.
Setting up reverse DNS for a mail server
- Choose a hostname for the server, such as mail.example.com.
- Create an A record for that hostname pointing to the server’s address, and an AAAA record if it uses IPv6.
- Ask the hosting provider to set the PTR record for the address to the same hostname.
- Set the mail server to introduce itself with that hostname.
- Run this lookup, then a DNS lookup on the hostname, and confirm the two agree.
Terms used on this page
- PTR record: the DNS record that maps an address to a hostname.
- in-addr.arpa: the domain under which IPv4 reverse records are stored.
- ip6.arpa: the same for IPv6.
- Forward-confirmed reverse DNS: a reverse record and a forward record that agree.
- Generic PTR: a name a provider creates automatically for every address.
How reverse zones are delegated
Regional registries delegate the reverse zone for each address block to the network that holds it. That network runs the nameservers for the zone, or passes parts of it on to customers with larger blocks. For a single address or a handful, the provider keeps control and offers a form or an API for setting the name. That is why you change a PTR record through the provider that assigned the address.
Learn more: DNS record types explained: A, AAAA, MX, TXT, CNAME and more.
Frequently asked questions
Good questions. Clear answers.Why is the result empty?
The network operator may not have configured a PTR record.
Is reverse DNS the same as a domain lookup?
No. Reverse DNS starts from an address, while domain registration lookup retrieves registry information about a name.
How do I set up reverse DNS for my server?
Ask the provider that assigned the IP address. Most hosting companies let you set the PTR record in their control panel. Set it to a hostname that resolves back to the same address.
What is forward-confirmed reverse DNS?
A check in two steps. The PTR record for an address gives a hostname, and the A or AAAA record for that hostname gives the same address back. Mail servers use it to filter out badly configured senders.
Can one IP address have several PTR records?
The DNS allows it, but most software reads only one and some mail servers treat several as a fault. Publish a single PTR record for each address.
Does reverse DNS show every website on an IP address?
No. It shows the one name the network operator published. Websites on shared hosting do not appear in it.
Why does the PTR name not match the website I expected?
The website’s owner controls the forward record, and the hosting company controls the reverse record. On shared hosting and behind content delivery networks, the PTR name belongs to the provider.
Does IPv6 need reverse DNS?
For mail servers, yes. Receivers apply the same checks to IPv6 senders, and Gmail rejects IPv6 mail from addresses without a PTR record.
Is a PTR record the same as an A record?
No. An A record maps a name to an address and is set by the domain’s owner. A PTR record maps an address to a name and is set by the holder of the address block.
Why does a lookup of my home IP address show my provider’s name?
Providers publish generic PTR records for the addresses they lend to customers. The name describes the provider’s network, and home connections cannot normally change it.
How long does a PTR change take to appear?
Like any DNS record, it depends on the TTL the provider set. Most changes are visible within an hour or so.
Can I look up a hostname here?
No. This tool starts from an IP address. To go from a hostname to an address, use the DNS lookup.
Does every server need a PTR record?
Mail servers do. For web servers and most other uses it is optional, though it makes logs easier to read.