IPv6 Reverse DNS Generator
IPv6 Reverse DNS Generator. Enter an IPv6 Address and click Generate Reverse DNS in this IPv6 reverse DNS generator to get its ip6.arpa PTR record.
Enter IPv6 Address
Reverse DNS Result
Example DNS Zone Entry
; Example PTR record for 2001:db8::1 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. IN PTR hostname.example.com.
Enter any IPv6 address to instantly generate its reverse DNS PTR record in the standard ip6.arpa format. Get the complete nibble-format hostname ready for DNS zone files — essential for configuring reverse lookups, PTR records, and IPv6 DNS delegation. For other technical calculators, browse technology & gadgets calculators at Joteo.
Paste in a compressed or fully expanded IPv6 address and the IPv6 Reverse DNS Generator hands you back the exact .ip6.arpa string a PTR record needs, without you doing the nibble-reversal math by hand. You'll see exactly how that conversion works, how it differs from the IPv4 rules under .in-addr.arpa, and how to turn a single lookup into a script you can run against an entire subnet. Whether you're setting up reverse DNS for a mail server, auditing a hosting provider's IP block, or just double-checking a PTR record before it finishes propagating, the same handful of rules apply every time — you don't have to convert anything by hand once you know them.
How the IPv6 Reverse DNS Generator Builds Your PTR Record
You'll see this kind of tool called a few different things depending on where you find it — a PTR record generator, a reverse lookup zone generator, a PTR zonefile generator, or just a PTR checker — but they all reduce to the same handful of rules below. Every reverse DNS generator — IPv4 or IPv6 — does the same basic job: it takes an address and rewrites it, in reverse order, under a special DNS zone reserved for pointer lookups. For IPv6 that zone is .ip6.arpa, and because IPv6 addresses are almost always written in compressed form, the generator's first job is to expand the address back to its full, colon-separated form before it can reverse anything. Written out, a PTR entry is really just a specific format of that address stored as its own entry in a reverse zone.
Expanding and Reversing the Address for ip6.arpa
Once you have the fully expanded IPv6 address, every remaining step is mechanical:
- Expand the compressed address to its full form — every group padded to four hex digits, with no
::shorthand left in it. - Strip out the colons, leaving one continuous string of hex digits.
- Reverse the entire string, character by character.
- Insert a dot between each of the 32 hex digits so every one gets its own dot-separated label.
- Append
.ip6.arpato the end of the result.
IPv4 vs IPv6 Reverse DNS Record Generator Rules
A reverse DNS record generator for IPv4 follows a simpler pattern than its IPv6 counterpart. Split the address on each dot into four octets, reverse their order, join them back together with dots, and add .in-addr.arpa. A /24 CIDR block like 192.168.1.0/24 maps directly onto a single .in-addr.arpa zone; a /64 subnet — the smallest block most ISPs delegate — maps onto a single .ip6.arpa zone instead, which is why bulk IPv6 reverse zones are usually generated from a CIDR block rather than one address at a time.
Splitting and Reversing IPv4 Octets
- Split the IPv4 address into four octets, separated by dots.
- Reverse the order of the four octets.
- Join the reversed octets back together with dots and add
.in-addr.arpa.
PTR Records, DNS Zones, and Zone Files Explained
A PTR record is the DNS entry that actually answers a reverse lookup — it does the reverse mapping that a forward DNS record doesn't: turning an address back into a hostname instead of a hostname into an address. An AAAA record maps a hostname to an IPv6 address; a PTR record mirrors that relationship without duplicating it. A PTR record is a DNS record like any other, and it lives inside a DNS zone built specifically for that block of addresses. Most authoritative nameservers manage it through a zone file you, or your hosting provider, maintain directly — the zone structure itself doesn't change between forward and reverse zones, only what each entry points to.
Zone File Stubs, SOA Records, and Serial Numbers
Generated reverse zones are usually delivered as zone file stubs you drop straight into your DNS server's configuration. A typical stub looks like this:
$TTL 86400
@ IN SOA ns1.example.com. hostmaster.example.com. (
2026090901 ; Serial
3600 ; Refresh
1800 ; Retry
1209600 ; Expire
86400 ) ; Minimum TTL
@ IN NS ns1.example.com.
@ IN NS ns2.example.com.
2.0.0.7.3.0.e.2.a.8 IN PTR host.example.com.The SOA line's serial number is what tells secondary nameservers a zone has changed, so most authoritative DNS servers expect it to increment on every regeneration, not just on the first one.
Quick reference: which suffix do I use?
Use .in-addr.arpa for any IPv4 address, and .ip6.arpa for any IPv6 address — the suffix is what tells the DNS server which reverse zone structure to expect, in order for the lookup to resolve correctly.
Automating Your Reverse DNS Tool With a Python Script
Once you're managing more than a handful of PTR records, running a reverse DNS tool by hand for every address stops being practical. Open-source options wrap the same rules into a repeatable script: install the dnspython and ipaddr Python modules, point a conf file at your forward and reverse zonefile pairs, and run the script from the terminal with a single command. That's exactly the logic a scripted IPv6 Reverse DNS Generator needs to run unattended — it reads your existing zonefile, regenerates only the auto-generated PTR section, and bumps the SOA serial number for you.
Verifying Your Reverse DNS Lookup Tool Output With nslookup and FCrDNS
Run nslookup (or dig -x) from the terminal to check what PTR record is actually registered for an address — a quick DNS lookup like this verifies the generator's output matches what's live in DNS, not just what your zone file says it should be. Public resolvers like Cloudflare and Quad9 publish their own reverse DNS for exactly this reason; try looking up either one yourself as a sanity check. A more thorough test is Forward-Confirmed rDNS, or FCrDNS: take the hostname the PTR record resolves to, look it up forward, and confirm it points back to the same IP. If it doesn't, the PTR record could be spoofed or simply misconfigured — the kind of mismatch that spam filters and mail servers flag as a fraud signal, and one reason so many providers cross-reference reverse DNS against a database of known-bad ranges.
Caching vs Non-Caching DNS Lookups
Most lookup tools query a caching DNS server by default, which is fast but can return a stale answer for up to a day after you update a record. Switching to a non-caching, authoritative query bypasses the cache and shows the change the moment propagation finishes.
Example IPv6 Reverse DNS Records
Below are a few worked examples, including an IPv4 address for comparison:
| Address | Type | Reverse DNS (PTR) Record | Zone |
|---|---|---|---|
| ::1 | IPv6 (loopback) | 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa | ip6.arpa |
| 2001:db8::1 | IPv6 (documentation) | 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 | ip6.arpa |
| 2001:db8:85a3::8a2e:370:7334 | IPv6 (documentation) | 4.3.3.7.0.7.3.0.e.2.a.8.0.0.0.0.0.0.0.0.3.a.5.8.8.b.d.0.1.0.0.2.ip6.arpa | ip6.arpa |
| 192.168.1.100 | IPv4 | 100.1.168.192.in-addr.arpa | in-addr.arpa |
Setting Up Reverse DNS With Your ISP or Hosting Provider
Unlike a forward A or AAAA record, you usually can't set a PTR record yourself in your own domain's DNS zone — reverse delegation for most IP blocks belongs to whichever ISP or hosting provider actually owns the address space. Ask them, or use their control panel, to point the PTR record at your domain name, wait for propagation across their authoritative DNS, and give it time to respect the record's TTL before you re-check it. This is routine DNS configuration work, not a one-time setup — treat it as part of your ongoing email deliverability checklist and DNS maintenance whenever you change providers or re-IP a server.
Why Reverse DNS Matters for Mail Servers and Network Diagnostics
A missing or mismatched PTR record is one of the fastest ways for a mail server to get flagged as spam — most receiving servers check reverse DNS before they'll even accept the connection, alongside SPF, DMARC, and other spam prevention signals. Reverse DNS also feeds network diagnostics tools: log analyzers and IP geolocation or country lookups both lean on the PTR hostname to make raw addresses readable in a report.
It sits alongside the rest of the domain name system's other record types:
- AAAA records map a hostname to an IPv6 address (forward direction).
- A record entries do the same for IPv4.
- CNAME handles domain aliases.
- MX routes mail for a domain.
- NS delegates a zone to its nameservers.
Each one is queried from the same authoritative database your DNS provider maintains — reverse DNS is simply the one direction most people forget to configure.
Related Network Tools
Explore these related tools for subnet calculation and IP address management.
Additional networking calculators for IP address planning and network analysis.
Comments & Feedback
Share your experience or ask questions about this tool