Skip to content
Mailwel
Theme

Reverse DNS zones

Get the PTR name for an IP address and the reverse DNS zones for a network, including RFC 2317 delegation for blocks smaller than a /24. Add hostnames to get a zone file.

IPv4 or IPv6, like 192.0.2.25, 198.51.100.0/24 or 2001:db8::/48.

Try:

One “address hostname” per line. They go into the zone file below.

Try:

PTR name

192.0.2.25

Example: type your own address above.

PTR name25.2.0.192.in-addr.arpawhere the PTR record for this address lives

Reverse zone

192.0.2.0/24

No network entered, so this uses the /24 around the address. Enter your network to match your delegation.

Zone2.0.192.in-addr.arpa

Zone file

2.0.192.in-addr.arpa
$ORIGIN 2.0.192.in-addr.arpa.
$TTL 3600
; Placeholder SOA and NS: replace ns1.example.com, ns2.example.com and
; hostmaster.example.com with your own name servers and contact address.
@  IN SOA ns1.example.com. hostmaster.example.com. (
       1      ; serial: raise it on every change
       3600   ; refresh
       900    ; retry
       1209600 ; expire
       3600 ) ; negative-answer TTL
@  IN NS  ns1.example.com.
@  IN NS  ns2.example.com.

; Add one PTR record per address, for example:
; 10  IN PTR mail.example.com.