Logo

MonoCalc

/

Reverse DNS Generator

Networking

Quick examples:

192.168.1.2510.0.0.1203.0.113.5IPv6IPv6

About This Tool

🔀 Reverse DNS Generator – PTR Record Builder for IPv4 & IPv6

Reverse DNS (rDNS) maps an IP address back to a hostname — the opposite of the familiar forward DNS lookup. This tool automates the creation of PTR records, the special DNS resource records that power reverse lookups. Whether you need a single PTR entry for a mail server, a reverse zone name for your BIND configuration, or a full zone file for an entire subnet, this generator handles all three scenarios in seconds.

🌐 What Is a PTR Record?

A PTR (Pointer) record lives in a special part of the DNS namespace:

  • IPv4 addresses use the in-addr.arpa domain. The four octets are reversed and appended: 192.168.1.25 → owner name 25.1.168.192.in-addr.arpa.
  • IPv6 addresses use the ip6.arpa domain. The 128-bit address is expanded to 32 hex nibbles, reversed, and dot-separated: 2001:db8::11.0.0.0…8.b.d.0.1.0.0.2.ip6.arpa.

PTR records are critical for email deliverability — most spam filters reject mail from servers whose sending IP has no matching PTR record. They also appear in security logs, traceroutes, and network diagnostics tools such as dig -x and nslookup.

🛠 How to Use This Tool

The generator has three focused tabs:

1. Single PTR Record

Enter one IPv4 or IPv6 address and its target hostname. The tool auto-detects the IP version, computes the arpa owner name, and outputs a complete PTR record line ready to paste into your zone file or registrar portal. For IPv6 addresses, an interactive nibble-expansion panel shows every transformation step.

2. Zone Name Lookup

Enter a CIDR block (e.g. 192.168.10.0/24) and get the correct in-addr.arpa zone name to use in your named.conf zone block. For prefixes shorter than /24, the tool applies RFC 2317 classless delegation notation (e.g. 128/26.10.0.192.in-addr.arpa).

3. BIND Zone File Generator

Provide a CIDR block and a hostname pattern using {n} as a placeholder (e.g. host{n}.dc.example.com.). The tool generates a complete, paste-ready BIND zone file including:

  • $ORIGIN and $TTL directives
  • SOA record with auto-generated serial (YYYYMMDDNN format)
  • NS record pointing to your name server
  • PTR record for every usable host in the subnet

Download the output as a .zone file or copy it directly to clipboard.

📐 PTR Record Format Reference

IP AddressPTR Owner NameExample PTR Record

192.168.1.25

25.1.168.192.in-addr.arpa.

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

10.0.0.1

1.0.0.10.in-addr.arpa.

1.0.0.10.in-addr.arpa. 3600 IN PTR gw.corp.

2001:db8::1

1.0.0.0…8.b.d.0.1.0.0.2.ip6.arpa.

[nibble reversed].ip6.arpa. 3600 IN PTR host.example.com.

📂 Reverse Zone Names for CIDR Blocks

The correct zone name depends on the prefix length:

PrefixExample CIDRZone NameNotes
/8

10.0.0.0/8

10.in-addr.arpa

Class A
/16

172.16.0.0/16

16.172.in-addr.arpa

Class B
/24

192.168.1.0/24

1.168.192.in-addr.arpa

Class C (standard)
/26

198.51.100.128/26

128/26.100.51.198.in-addr.arpa

RFC 2317 classless

📧 Why Reverse DNS Matters for Email

Mail Transfer Agents (MTAs) and spam-filtering services such as Spamhaus routinely perform a forward-confirmed reverse DNS (FCrDNS) check: they look up the PTR record for the sending IP, then verify that the resulting hostname resolves back to the same IP via a forward A or AAAA lookup. Failing this check significantly increases the spam score of outgoing email and can lead to outright rejection by major providers like Gmail, Outlook, and Yahoo Mail.

Always ensure your mail server IP has a PTR record, that the PTR target hostname resolves back to the original IP, and that the hostname matches or relates to the domain used in the HELO/EHLO greeting.

🔢 IPv6 Nibble Reversal Explained

IPv6 PTR records require expanding the address to all 128 bits (32 hex digits), then reversing the digit order one nibble at a time. For 2001:db8::1:

  1. Expand: 20010db8000000000000000000000001
  2. Split into nibbles: 2 0 0 1 0 d b 8 … 0 0 0 1
  3. Reverse all 32 nibbles: 1 0 0 0 … 8 b d 0 1 0 0 2
  4. Dot-separated + suffix: 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.

The IPv6 tab in this tool shows every step of this expansion, making it easy to verify the output and understand how the ip6.arpa namespace works.

⚙️ BIND Zone File Tips

  • Use a trailing dot on all FQDNs (e.g. mail.example.com.) — without it, BIND appends the zone origin, producing incorrect names.
  • The serial number must be incremented every time you modify the zone file. The YYYYMMDDNN format (e.g. 2026052201) makes the edit date visible at a glance and allows up to 99 changes per day.
  • Choose a TTL appropriate for your change frequency: 3600 (1 hour) is a safe default; use 300 (5 minutes) when planning changes, and increase to 86400 (24 hours) for stable infrastructure.
  • Test your reverse zone with dig -x <IP> or host <IP> after deploying to confirm PTR resolution.

Frequently Asked Questions

Is the Reverse DNS Generator free?

Yes, Reverse DNS Generator is totally free :)

Can I use the Reverse DNS Generator offline?

Yes, you can install the webapp as PWA.

Is it safe to use Reverse DNS Generator?

Yes, any data related to Reverse DNS Generator only stored in your browser (if storage required). You can simply clear browser cache to clear all the stored data. We do not store any data on server.

What is a PTR record and why is it needed?

A PTR (Pointer) record maps an IP address back to a hostname — the opposite of an A/AAAA record. PTR records are used in reverse DNS (rDNS) lookups, which are critical for email server reputation (many spam filters reject mail from IPs without PTR records), security auditing, network diagnostics, and ISP infrastructure management.

How does this Reverse DNS Generator work?

Enter an IPv4 or IPv6 address along with its target hostname. The tool automatically reverses the IP octets (IPv4) or expands and nibble-reverses all 32 hex digits (IPv6), appends the correct `.in-addr.arpa.` or `.ip6.arpa.` suffix, and formats a complete PTR record ready to paste into your DNS zone file. In Subnet mode it generates PTR records for every host in a CIDR block.

What is the in-addr.arpa zone?

The `in-addr.arpa` domain is the special DNS namespace used for IPv4 reverse lookups. IP octets are reversed and appended to `.in-addr.arpa` to form the PTR record owner name. For example, `192.168.1.25` becomes `25.1.168.192.in-addr.arpa.`. The `ip6.arpa` domain serves the same purpose for IPv6, using nibble-by-nibble reversal of the full 128-bit address.

What is RFC 2317 classless reverse delegation?

RFC 2317 defines a method for delegating sub-/24 subnets (prefix length /25 to /31) in reverse DNS. Because the standard `in-addr.arpa` structure only delegates at /8, /16, and /24 boundaries, smaller subnets need CNAME-based delegation. For example, a /26 block uses the zone name `128/26.x.y.z.in-addr.arpa` with CNAME records forwarding PTR lookups from the parent /24 zone to the delegated zone.

How do I use the generated zone file in BIND?

Copy the generated zone file content and save it to a file such as `db.192.168.1`. In your `named.conf`, add a `zone` block pointing to this file with `type master` (or `primary`). The `$ORIGIN` directive sets the default zone suffix, and the `$TTL` line sets the default time-to-live. The SOA and NS records are required for a valid zone file.

Does this tool support IPv6 reverse DNS?

Yes. Enter any IPv6 address in standard, compressed, or mixed notation. The tool expands it to the full 32-hex-digit form, reverses all digits, inserts dots between each nibble, and appends `.ip6.arpa.` to produce the correct PTR record owner name. For example, `2001:db8::1` generates `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.`