- Home
- Free tools
- Reverse DNS lookup
Reverse DNS lookup
A reverse DNS lookup starts from an IP address to find the host name associated with it. Enter an IPv4 or IPv6 address: the tool reads the PTR record, then checks that this name points back to the same address. This is the FCrDNS check that mail servers apply before accepting your emails.
- IPv4 and IPv6 addresses
- PTR record shown
- Automatic FCrDNS check

One IP address, one confirmed name
The tool runs the same check as a mail server facing an incoming connection: it reads the address's name, then checks that this name really belongs to it.
IPv4 and IPv6
Every written form is accepted, including abbreviated IPv6 addresses. The tool builds the reverse name under in-addr.arpa or ip6.arpa itself, without you having to write it.
PTR reading
The host name or names published for the address in the reverse zone, as a receiving server sees them at the moment your server connects.
FCrDNS check
For each name found, up to four, the tool looks up its A or AAAA addresses and checks that the starting address is among them. That is the proof in both directions.
Plain verdict
Consistent in both directions, inconsistent or no PTR: a badge sums up the situation, and a message explains what needs fixing for a sending server.
Detail per name
A table lists each name found, its addresses and whether it leads back to the address entered. Each name can be copied with one click for your settings.
Logical next step
From the result, go straight to the address's Whois or its check against anti-spam blacklists, without having to re-enter the IP address or change page.
Do a reverse DNS lookup in four steps
Enter the IP address
The IPv4 or IPv6 address of your sending server, or one found in the headers of an email or in your logs.
Run the lookup
The tool builds the reverse name, reads the PTR, then looks up the addresses of each name found for the double check.
Read the verdict
Consistent in both directions, inconsistent or no PTR. The table shows which name is causing a problem and why.
Fix and test again
Set the PTR at your host or the A record in your zone, then run the test again to confirm.
What is a reverse DNS lookup?
DNS is most often used in one direction: you start from a name, such as www.example.com, and get an IP address. Reverse DNS takes the opposite path. You start from an IP address, for example 192.0.2.25, and look for the host name associated with it, for example mail.example.com.
This mapping is carried by a particular type of record, the PTR (for “pointer”). It isn't required for a server to work: a website displays perfectly well without it. But it plays an identification role. A clear PTR tells the rest of the internet “this address belongs to the server mail.example.com”, whereas an address with no name, or with a generic name assigned automatically, says nothing about its user.
That is why a reverse DNS lookup matters above all for email. Servers that receive emails look at the name of the address connecting to them, and many are wary of an anonymous address. It also shows up in server logs, in network diagnostic tools such as traceroute, and in message headers, where it helps you understand which route an email took.
How a reverse DNS lookup works
DNS can only look up names. To find an IP address, it is therefore turned into a special name, placed under a zone reserved for this purpose.
For an IPv4 address
The four numbers of the address are written in reverse order, followed by in-addr.arpa. The address 192.0.2.25 becomes the name 25.2.0.192.in-addr.arpa. The order is reversed because DNS reads names from right to left, from the most general to the most specific, whereas an IP address reads from left to right.
For an IPv6 address
The address is first written out in full, without abbreviation, then each hexadecimal digit is separated by a dot, in reverse order, under ip6.arpa. The resulting name has 32 digits: it is impossible to type by hand, but the tool builds it for you.
25.2.0.192.in-addr.arpa. 3600 IN PTR mail.example.com.
mail.example.com. 3600 IN A 192.0.2.25
5.2.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. PTR mail.example.com.
mail.example.com. 3600 IN AAAA 2001:db8::25Who manages the reverse zone?
This is the point that surprises people most. The reverse zone doesn't belong to the owner of the domain name, but to whoever holds the IP address: your hosting company, your server provider or your internet provider. Address blocks are allocated by the regional internet registries (RIPE NCC for Europe), which then delegate the corresponding reverse zone. So you can create mail.example.com in your zone in a few seconds, but the matching PTR is set by whoever rents you the address.
Doing a reverse DNS lookup with the tool
The tool accepts IPv4 and IPv6 addresses, in every written form, including abbreviated ones such as 2001:db8::25.
- Enter the IP address to check: that of your sending server, one found in the headers of an email, or that of a suspicious connection in your logs. If you don't know your public address, the What is my IP tool gives it to you.
- Run the lookup. The tool builds the reverse name, under in-addr.arpa or ip6.arpa, and queries DNS to get the PTR record or records.
- Let the double check run. For each name found, up to four, the tool in turn looks up its addresses, A for an IPv4 address, AAAA for an IPv6 address, and checks whether the starting address is among them.
- Read the verdict and, if needed, continue to the address's Whois or the blacklist check, offered below the result.
Private or reserved addresses, such as 192.168.x.x, 10.x.x.x or the documentation ranges, are rejected: they can't be reached from the internet and have no public PTR.
Reading the result: PTR and FCrDNS
At the top of the result, the tool shows the address entered and the reverse name queried. A badge gives the verdict, which can take three values.
- Consistent in both directions: the address has a PTR, and each name found points back to that same address. This is the expected configuration for a mail server.
- Inconsistent: a PTR exists, but at least one of the names doesn't point back to the starting address. You need to fix either the PTR or the name's A or AAAA record.
- No PTR: the address holder hasn't published any reverse name. This is common for a home connection or a freshly installed server.
The table details each name found, the list of its addresses, and a column that says whether it leads back to the starting address.
Why the double check matters
This two-way check is called FCrDNS, for forward-confirmed reverse DNS. It is essential because a PTR alone proves nothing. Any address holder can write a PTR in their reverse zone pointing to mail.bank.example, a name they don't control. On the other hand, only the owner of bank.example can point that name to the address. When both directions match, it shows that the address holder and the name owner agree. This match is what receiving servers check.
Why reverse DNS matters for sending email
When a server connects to deliver a message, the receiving server knows its IP address before it has even read the first word of the message. The PTR of that address is one of the very first clues it looks at.
- An address without a PTR looks like an infected home machine sending spam. Many servers refuse the connection, slow down delivery or file the message as junk.
- A generic PTR, such as 192-0-2-25.client.isp.example, signals a consumer connection. Several blacklists list precisely these address ranges.
- A PTR that doesn't confirm suggests spoofing or a careless configuration.
The major email providers spell it out in black and white. Google's guidelines for senders to Gmail require sending addresses to have valid forward and reverse DNS records. Microsoft applies comparable checks for Outlook.com.
The ideal for a sending server comes down to three matching points: a PTR to a name of its own (mail.example.com), that name pointing to the same address, and that same name announced in the HELO or EHLO command at the start of each SMTP session. Reverse DNS doesn't replace domain authentication, though. It comes on top of SPF, DKIM and DMARC, which you can check with the SPF, DKIM and DMARC checker. For a full review of your sending, PTR included, send a message to the email spam test.
What if you use a sending service?
If your messages go out through Google Workspace, Microsoft 365, your website's shared hosting or a newsletter platform, it isn't your IP addresses that connect to receiving servers, but the service's. Their reverse DNS is then managed by that service, and you have nothing to configure on that side. Test an address found in the headers of one of your messages: you will see a name belonging to the provider, confirmed in both directions. Your work then focuses on SPF, DKIM and DMARC, which link these messages to your domain. Reverse DNS only becomes your concern if you run your own mail server, on a dedicated server, a virtual server or on your premises.
Setting up your server's PTR, step by step
- Choose a host name specific to the server, in a domain you control, for example mail.example.com or smtp.example.com. Avoid using the bare domain name directly.
- Create the forward record in your DNS zone: an A record to the server's IPv4 address, and an AAAA record to its IPv6 address if it has one. Check it with the DNS lookup.
- Request the PTR from whoever provides the address. Most server hosts offer a “reverse” or “PTR” field in their control panel. With some business internet providers, you need to open a support request.
- Set the HELO name of your mail software to that same name, for example the myhostname directive in Postfix.
- Check with the tool: the badge should show “Consistent in both directions” for each sending address, for IPv4 as well as IPv6.
If you have an entire block of addresses, your provider can delegate the corresponding reverse zone to you so that you manage the PTR records yourself. For a block smaller than a /24, delegation uses the technique described in RFC 2317. The IP subnet calculator helps you find the exact addresses of a block.
Common mistakes and how to fix them
- The generic PTR left by default: it exists, but doesn't designate a mail server. Replace it with your own host name from your host's control panel.
- A PTR without a forward record: the PTR points to mail.example.com, but that name has no A record, or it points to another address after a move. FCrDNS fails. Fix the A or AAAA record in your zone.
- Forgotten IPv6: a server with an IPv6 address often uses it first to send to Gmail or Outlook. Without a PTR on that address, messages are rejected even though everything is correct over IPv4. Configure both, or disable sending over IPv6.
- Several PTR records for the same address: this is allowed, but each name must then confirm, and some receiving servers only look at one. A single clear name avoids surprises.
- A PTR changed in the wrong zone: creating a PTR record in your domain's zone has no effect. Only the reverse zone, at the address holder, is consulted.
- A different name in the HELO: the server announces itself under an internal name, such as localhost or server1.local. Align it with the PTR.
A properly named sending address may still have been listed in the past. Check it with the blacklist checker, and look up its Whois to find out which network it belongs to.
Checking reverse DNS by hand
The same checks can be done from the command line. On Linux and macOS:
dig -x 192.0.2.25 +short
dig mail.example.com A +short
host 192.0.2.25The first command returns the PTR, the second the addresses of the name obtained. If the starting address appears in the second answer, FCrDNS is valid. On Windows, nslookup followed by the IP address gives the associated name directly.
Keep in mind that a freshly changed PTR is subject, like any DNS record, to the cache duration of the old one. If the tool still shows the old name just after your change, wait for the TTL of the reverse zone before concluding that it failed. The tool's result is itself kept in memory for a few minutes.
Reverse DNS is also useful for investigation. Faced with a suspicious email, the email header analyzer finds the addresses of the servers it went through. Their reverse name often reveals the real sending provider, sometimes very different from what the displayed sender suggests.
The three verdicts and what to do
| Verdict | What it means | What to do |
|---|---|---|
| Consistent in both directions | PTR present, confirmed by A or AAAA | Nothing, this is the right configuration |
| Inconsistent | The name doesn't lead back to the address | Fix the PTR or the A record |
| No PTR | No name published for the address | Ask your host for a PTR |
| Generic PTR | Automatically assigned name | Replace it with mail.your-domain |
| IPv6 without PTR | IPv6 sending rejected | Add the PTR or turn off IPv6 |
Reverse DNS: all your questions
What is a reverse DNS lookup?
A reverse DNS lookup starts from an IP address to find the associated host name, the opposite of classic DNS, which goes from the name to the address. It relies on the PTR record, published in a special zone. It is mainly used to identify mail servers and to read network logs.
What is a PTR record?
It is the DNS record that maps an IP address to a host name. It is published in the reverse zone: under in-addr.arpa for an IPv4 address, with the numbers written in reverse order, and under ip6.arpa for an IPv6 address, digit by digit. This zone is managed by the address holder, not by the domain owner.
How do I set up reverse DNS for my server?
First create the name in your own DNS zone, with an A or AAAA record pointing to the server's address. Then request the PTR from whoever provides the address: hosting company, server provider or internet provider. Most offer a “reverse” or “PTR” field in their control panel. Finally, check the result with the tool.
What does FCrDNS mean?
FCrDNS stands for forward-confirmed reverse DNS. The name given by the PTR must in turn point to the same IP address. A PTR alone can be written by any address holder, whereas only the domain owner can point the name to the address. A match in both directions is therefore real proof of identity.
Is reverse DNS required to send email?
No standard strictly requires it, but in practice it is essential. Many receiving servers reject or penalise messages from an address without a consistent PTR, and Google's guidelines for senders to Gmail require valid forward and reverse records for sending addresses.
Why is no host name found for my IP address?
The address holder hasn't published any PTR. This is common for a home connection, a newly delivered server or a recently added IPv6 address. Only your hosting company or internet provider can create one. Adding a record in your own domain's zone has no effect on the reverse lookup.
Does the PTR have to match my domain name?
It doesn't need to be identical to the domain of your email addresses. Above all, it must be consistent: a name that clearly designates the server, such as mail.example.com, in a domain you control, that points to the same address and is announced in the HELO command. The same server can send for several domains with a single PTR.
How do I do a reverse DNS lookup from the command line?
On Linux and macOS, the command dig -x followed by the IP address shows the PTR, and host followed by the address gives the same result. On Windows, type nslookup followed by the address. To check FCrDNS, then query the name obtained with dig and the A or AAAA type, and compare it with the starting address.
Do I need a PTR for my server's IPv6 address?
Yes, if the server sends emails over IPv6. Many mail programs use IPv6 first when the recipient accepts it, which is the case for Gmail and Outlook. Without a PTR on that address, messages can be rejected even though everything is correct over IPv4. Configure both, or limit sending to IPv4.
Does a reverse DNS lookup give the location of an IP address?
No. The PTR gives a host name, freely chosen by the address holder. It sometimes contains a hint of a city or provider, but nothing guarantees it. To find out the network, the organisation and the declared country of an address, look up its Whois instead, offered directly below the tool's result.
Are the IP addresses I check stored?
The result is cached for five minutes to answer the same question faster, without being linked to your identity, then deleted automatically. To limit abuse, the tool counts checks per visitor using a fingerprint of the IP address, without keeping the address. Private or reserved addresses are rejected and never queried.
Is the reverse DNS lookup tool free?
Yes, it is free and with no sign-up, for IPv4 and IPv6 addresses alike. You can check all the addresses of your sending servers, or those found in suspicious emails, as often as needed. Only an anti-abuse limit asks you to wait a few minutes after a very large number of checks in quick succession.
All our free tools, in one place
25 free tools, no sign-up needed, to check your email, your domain and your website. Each one gives a clear result and the steps to follow.
Email and deliverability 10
An A to F grade for your domain, with the exact fix to publish for each issue.
- SPF, DKIM and DMARC read and explained
- DMARC policy and alignment
- Fixes ready to copy
Free domain security check: SPF, DKIM, DMARC, MTA-STS, blacklists, certificate and lookalike domains. Get an A to F grade and fixes ready to copy.
- A to F grade in 20 to 40 seconds
- Fixes ready to copy
- Free weekly monitoring
Send a message to a test address and get a score out of 100: authentication, reputation, content.
Open the toolWhere your mail arrives, in what order, and whether it goes through a filter before your inbox.
Open the toolYour DMARC record in one minute, with the right policy to get started safely.
Open the toolA correct SPF built from your sending services, without exceeding the ten lookup limit.
Open the toolPaste a message's headers: route, delays and authentication checks translated into plain English.
Open the toolEncryption enforced between servers, TLS reports, brand logo and DNSSEC in a single test.
Open the toolIs your IP address or domain on anti-spam lists? Thirteen lists checked.
Open the toolA professional signature in six steps, compatible with every mail app.
Open the toolDomains and DNS 6
All of a domain's records, A, MX, TXT, NS, CAA and the rest, on the resolver of your choice.
- Every record type
- A choice of seven public resolvers
- Explanations for each value
Is a change already visible everywhere? The answer from nineteen resolvers around the world.
Open the toolThe name associated with an IP address, checked in both directions, just as mail servers do.
Registrar, creation and expiry dates, name servers and status of a domain or an IP.
Open the toolNames close to yours that are already registered, which fraudsters could use against your customers.
Open the toolAccented domains and the xn-- form, in both directions, with detection of misleading characters.
Open the toolWebsites and security 8
An A to F grade, Core Web Vitals, image-by-image loading and advice, on mobile and desktop.
- Google metrics and server analysis
- Request waterfall and page weight
- PDF report to share
Cookies before and after consent, banner, providers and a GDPR register ready to publish.
Open the toolValidity, issuer, chain, names covered and expiry date of a certificate, on any port.
Open the toolThe redirect chain of an address and the grade of its security headers.
Open the toolYour public IP address, IPv4 and IPv6, its name, its operator and its country.
Open the toolDownload and upload speed, latency and jitter of your connection, measured live in your browser.
Open the toolRanges, masks, subnets and number of addresses of an IPv4 or IPv6 network.
Open the toolStrong passwords and passphrases, created in your browser, never sent.
Open the toolMigration and handy tools 1
Copy all the messages from one mailbox to another, folders and dates included, without deleting anything.
Open the toolWell-identified sending, well-protected receiving
Reverse DNS looks after the reputation of the emails you send. For the emails you receive, Passmundi validates the sender, checks SPF, DKIM and DMARC and blocks spam, viruses and phishing.