Christmas−30 % for 12 months with codeGet the offer →
  1. Home
  2. Free tools
  3. Reverse DNS lookup
Free tool, no sign-up

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
Reverse DNS result: the IP address points to mail.example.com, which points back to the same address, FCrDNS check passed
FCrDNS passedConsistent in both directions
PTR foundmail.example.com
What the tool checks

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.

How it works

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::25

Who 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.

  1. 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.
  2. 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.
  3. 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.
  4. 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

  1. 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.
  2. 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.
  3. 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.
  4. Set the HELO name of your mail software to that same name, for example the myhostname directive in Postfix.
  5. 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.25

The 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.

Quick reference

The three verdicts and what to do

VerdictWhat it meansWhat to do
Consistent in both directionsPTR present, confirmed by A or AAAANothing, this is the right configuration
InconsistentThe name doesn't lead back to the addressFix the PTR or the A record
No PTRNo name published for the addressAsk your host for a PTR
Generic PTRAutomatically assigned nameReplace it with mail.your-domain
IPv6 without PTRIPv6 sending rejectedAdd the PTR or turn off IPv6
FAQ

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.

The complete toolbox

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

SPF, DKIM and DMARC checkerEmail authentication
Free

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
Open the tool
Domain security auditDomain security
Free

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
Open the tool
Email spam testDeliverability
Free

Send a message to a test address and get a score out of 100: authentication, reputation, content.

Open the tool
MX lookupReceiving
Free

Where your mail arrives, in what order, and whether it goes through a filter before your inbox.

Open the tool
DMARC generatorAuthentication
Free

Your DMARC record in one minute, with the right policy to get started safely.

Open the tool
SPF generatorAuthentication
Free

A correct SPF built from your sending services, without exceeding the ten lookup limit.

Open the tool
Email header analyzerInvestigation
Free

Paste a message's headers: route, delays and authentication checks translated into plain English.

Open the tool
MTA-STS, TLS-RPT and BIMIAdvanced security
Free

Encryption enforced between servers, TLS reports, brand logo and DNSSEC in a single test.

Open the tool
Blacklist checkerReputation
Free

Is your IP address or domain on anti-spam lists? Thirteen lists checked.

Open the tool
Email signature generatorBrand image
Free

A professional signature in six steps, compatible with every mail app.

Open the tool

Domains and DNS 6

DNS lookupRecords
Free

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
Open the tool
DNS propagationDNS changes
Free

Is a change already visible everywhere? The answer from nineteen resolvers around the world.

Open the tool
Reverse DNS lookup (PTR)IP address
You are here

The name associated with an IP address, checked in both directions, just as mail servers do.

Whois and RDAP lookupOwnership
Free

Registrar, creation and expiry dates, name servers and status of a domain or an IP.

Open the tool
Lookalike domain finderSpoofing
Free

Names close to yours that are already registered, which fraudsters could use against your customers.

Open the tool
Punycode converterAccented names
Free

Accented domains and the xn-- form, in both directions, with detection of misleading characters.

Open the tool

Websites and security 8

Speed testPerformance
Free

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
Open the tool
Cookie scannerGDPR
Free

Cookies before and after consent, banner, providers and a GDPR register ready to publish.

Open the tool
SSL certificate checkerEncryption
Free

Validity, issuer, chain, names covered and expiry date of a certificate, on any port.

Open the tool
HTTP headers and redirectsWeb server
Free

The redirect chain of an address and the grade of its security headers.

Open the tool
What is my IPNetwork
Free

Your public IP address, IPv4 and IPv6, its name, its operator and its country.

Open the tool
Internet speed testConnection
Free

Download and upload speed, latency and jitter of your connection, measured live in your browser.

Open the tool
IP and CIDR subnet calculatorNetwork
Free

Ranges, masks, subnets and number of addresses of an IPv4 or IPv6 network.

Open the tool
Password generatorSecurity
Free

Strong passwords and passphrases, created in your browser, never sent.

Open the tool

Migration and handy tools 1

Email migrationChanging host
Free

Copy all the messages from one mailbox to another, folders and dates included, without deleting anything.

Open the tool

Well-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.