[HOWTO] Sub Class C Subnet Reverse DNS – Bind9

Having your ISP delegating the reverse DNS maybe a YMMV scenario. Some will allow you and others will not. If your ISP does allow you to host your own reverse DNS you have to create a zone file for the reverse DNS entry. This is a very easy thing to do if you have a class C subnet, but anything smaller than that or with different IP ranges, it gets complicated. Here’s what they usually have to do on their end, and what you need to do on your end.

ISP end
assuming the class C is and the subnet you own is
21.237.216.in-addr.arpa [SOA Entries]
21.237.216.in-addr.arpa [NS Servers]

;someone else's entry
$GENERATE 1-63 $ IN PTR 216-237-21-$.orng.nextweb.net.

;start of your entry
64-127 IN NS ns1.mydomain.net.
64-127 IN NS ns2.mydomain.net.
$GENERATE 64-127 $ CNAME $.64-127

;someone else's entry
$GENERATE 128-255 $ IN PTR 216-237-21-$.orng.nextweb.net.

Client Side
Create the following zone “64-” with the following entry:
Read the rest of this entry »

Tags: , ,