Reverse DNS Generator

Turn an IP or a whole prefix into PTR names, a zone file and an RFC 2317 delegation block.

The Reverse DNS Generator runs entirely in your browser. Addresses and host names you enter are turned into records on your device and never uploaded — no DNS queries are made.

Open the CIDR Subnet Calculator

About Reverse DNS Generator

Reverse lookups live in two special trees. An IPv4 address reverses its octets under in-addr.arpa, so 192.0.2.15 becomes 15.2.0.192.in-addr.arpa; an IPv6 address reverses every single nibble under ip6.arpa, producing the 32-label names nobody types by hand. This tool builds those names for one address or an entire prefix, writes a zone file with an SOA and a PTR per host from a naming pattern, and handles the case that catches hosting customers out — a block smaller than a /24 cannot own a reverse zone at all, and has to be delegated with the CNAME arrangement described in RFC 2317.

Features

How to use the Reverse DNS Generator

  1. Enter a single IP to see its PTR name, or a CIDR prefix for a whole block
  2. Set a hostname pattern such as host-{last}.example.com
  3. Copy the PTR records, or switch to zone mode for a complete zone file
  4. For a prefix longer than /24, hand the delegation block to your provider

Example

Input

192.0.2.0/29

Output

0.2.0.192.in-addr.arpa. IN PTR host-0.example.com.
1.2.0.192.in-addr.arpa. IN PTR host-1.example.com.
…

A /29 sits inside someone else's /24, so it is delegated with CNAMEs rather than given a zone of its own.

Common errors & troubleshooting

Frequently asked questions

What is a PTR record?
The DNS record that maps an IP address back to a host name. It lives in the in-addr.arpa tree for IPv4 or ip6.arpa for IPv6, and it is what a reverse lookup such as dig -x returns.
How is an in-addr.arpa name built?
Reverse the four octets and append in-addr.arpa. The address 192.0.2.15 becomes 15.2.0.192.in-addr.arpa, because DNS reads names from the most specific label leftwards.
Why does reverse DNS matter for email?
Receiving mail servers use it as a basic sanity check on the sending host. An IP with no PTR, or one whose PTR does not resolve forward to the same address, is treated as more likely to be a compromised machine than a real mail server.
Can I set reverse DNS myself?
Only if you control the address block. Reverse zones are delegated by whoever holds the IP allocation, so for a single server it is normally set through your hosting provider's control panel rather than in your own DNS.
What is RFC 2317 delegation?
A convention for delegating reverse DNS for a block smaller than a /24. The parent zone publishes CNAMEs pointing each address into a sub-zone whose name encodes the range, and the customer hosts the PTR records in that sub-zone.

Related tools

All ArrayKit tools