What Is Reverse DNS (rDNS) and Why It Matters

Reverse DNS (rDNS) flips a normal DNS lookup on its head: instead of starting with a name, it starts with an IP address and hands back the hostname assigned to it, via a PTR record. Where it really earns its keep is email — receiving servers routinely distrust or outright reject mail from any IP address that has no valid reverse DNS.

A regular, "forward" DNS lookup answers "what IP address does mail.example.com have?" Reverse DNS asks the opposite question: "what name belongs to 203.0.113.25?" The two are maintained completely separately, often by entirely different organizations — which is exactly why they can disagree with each other, and why checking both directions turns out to be a genuinely useful trust signal.

How reverse DNS works

DNS can only ever look up names, so a reverse lookup has to cheat a little: it turns an IP address into a special name inside a reserved domain, then queries that name for a PTR (pointer) record. Whatever the PTR record contains is the hostname.

IPv4 and in-addr.arpa

With IPv4, the four octets get written in reverse order and tacked onto in-addr.arpa. So 203.0.113.25 ends up looking like this:

25.113.0.203.in-addr.arpa.  3600  IN  PTR  mail.example.com.

Why reverse it at all? Because DNS names get more specific moving right to left, while IP addresses get more specific moving left to right. Flip the octets and suddenly the DNS hierarchy lines up with how IP blocks are actually allocated: the zone 113.0.203.in-addr.arpa covers the entire 203.0.113.0/24 network and can be delegated wholesale to whoever holds that block.

IPv6 and ip6.arpa

IPv6 does the same trick in the ip6.arpa domain, just taken further: the full 128-bit address gets expanded out to all 32 hexadecimal digits ("nibbles"), each one becomes its own label, and the whole thing is reversed. 2001:db8::25 turns into this:

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.  IN  PTR  mail.example.com.

Nobody actually types these out by hand — tools like dig -x build them for you.

Who controls PTR records?

This is the bit that trips up almost everyone at first. Your domain's DNS provider controls the forward records — A, MX, and the like — for example.com. But PTR records don't live there at all; they live in the reverse zone for the IP address itself, and that zone belongs to whoever the address block was assigned to: your hosting company, your cloud provider, or your ISP.

  • Cloud servers and VPS: most providers let you set the reverse DNS name in their control panel or API, often requiring that the matching forward record exists first.
  • Dedicated servers and business internet: you usually request the PTR through a support ticket, or the provider delegates a reverse zone to your own name servers if you have a large enough block.
  • Home broadband: the ISP sets a generic name such as 203-0-113-25.dynamic.example.net and normally will not change it.
Note: So adding a PTR record at your domain's DNS host? That does precisely nothing. Reverse lookups never touch your domain's zone at all — they go straight to the zone of the IP address owner instead.

Forward-confirmed reverse DNS (FCrDNS)

Here's the catch: anyone who controls an IP block can point its PTR record at any name they like, including a domain they don't even own. So a PTR record by itself proves almost nothing. That's where forward-confirmed reverse DNS comes in — it closes the gap by checking both directions:

  1. Look up the PTR for the IP address: 203.0.113.25 returns mail.example.com.
  2. Look up the A (or AAAA) record for that name: mail.example.com returns 203.0.113.25.
  3. If the forward lookup includes the original IP, the result is forward-confirmed.

Since that second step depends entirely on the domain owner's own DNS, a match tells you something real: both the IP holder and the domain owner agree on the name. Our reverse DNS lookup tool runs this forward confirmation automatically, so you don't have to do it by hand.

Why reverse DNS matters for email

Email is really where reverse DNS proves its worth. A lot of spam comes from compromised home computers and short-lived throwaway servers, and their IPs typically have no PTR record at all, or just a generic ISP-assigned one. Receiving mail servers lean on rDNS as an early, cheap filter:

  • Many servers reject or heavily penalize connections from IPs that have no PTR record at all.
  • Some check that the PTR is forward-confirmed.
  • Generic-looking names that embed the IP address or words like "dynamic" or "dsl" are commonly scored as likely spam sources.

Google's own published sender guidelines, for instance, require sending servers to carry valid forward and reverse DNS records. Running your own mail server? Set the PTR for its sending IP to a hostname like mail.example.com, make sure that name has an A record pointing right back to the same IP, and use the same name in the server's SMTP greeting (HELO/EHLO). The PTR doesn't need to match the domain in the From address — it just needs to be a real, forward-confirmed name.

And reverse DNS is only one piece of the deliverability puzzle. Pair it with proper authentication records, covered in SPF, DKIM and DMARC explained, and double-check your MX records with our MX lookup.

Other uses of reverse DNS

  • Logs and diagnostics: web server logs, firewalls and tools like traceroute show hostnames instead of bare IPs, and that often reveals the network or city a router sits in, something like ae1.edge1.fra.example.net.
  • Verifying crawlers: major search engines recommend confirming their bots with a reverse lookup followed by a forward one, since the user agent string can be faked without any effort at all.
  • Identifying networks: a PTR name can hint at which provider runs a given address, complementing whatever an IP lookup or WHOIS query already shows you.

Checking reverse DNS yourself

Both of these work fine from a terminal on macOS and Linux, and nslookup runs on Windows too:

$ dig -x 203.0.113.25 +short
mail.example.com.

$ nslookup 203.0.113.25
25.113.0.203.in-addr.arpa    name = mail.example.com.

Confirm the forward direction next with dig mail.example.com A +short and check the same IP comes back out. Get NXDOMAIN on the reverse lookup instead? That just means no PTR record exists for the address.

Frequently asked questions

Can an IP address have more than one PTR record?

Technically, sure — but it's discouraged for good reason. Plenty of programs only ever read the first answer, and mail servers expect one single, consistent name. Stick to one PTR per IP address.

Do I need reverse DNS for a website?

No. Browsers never check reverse DNS when they load a site, and plenty of web servers sitting on shared or CDN infrastructure carry nothing but generic PTR names. It mainly matters for servers that send email.

Why does my home IP have a strange reverse DNS name?

Your ISP hands out generic PTR names to its customer addresses, usually just the IP itself plus a word like "dynamic" or a region code. You can't change it on a residential connection, which is also part of why home connections make such poor email senders.

Does reverse DNS reveal my identity?

It reveals your ISP and sometimes a rough region — the same kind of thing an IP lookup would tell you. Your name or street address? Not in there.

جرّبها بنفسك

طبّق هذا الدليل عمليًا باستخدام أدواتنا المجانية.

التعليقات

شارك نصيحة أو اطرح سؤالًا أو أخبر الآخرين كيف عملت الأداة معك.

تابع القراءة

تم النسخ إلى الحافظة