Published by expire0
Posted on January 05, 2017
Reference::: http://support.simpledns.com/kb/a146/how-to-sub-delegate-a-reverse-zone.aspx
Sub-delegate full class C (256 IP addresses) from a class B or larger (65536+ IP addresses)
If you have at least a class B (65536 IP addresses) and provide a class C (256 IP addresses) from this to a customer, the reverse DNS sub-delegation is done simply by adding NS-records for the customer’s DNS servers.
For example say you have IP addresses 11.22.0.0/16 and you want to sub-delegate reverse DNS for 11.22.33.0/24 to your customer’s DNS servers.
Then in your “22.11.in-addr.arpa” zone, you would add an NS-record for “33.22.11.in-addr.arpa” for each of your customer’s DNS servers like this:
NS: 33.22.11.in-addr.arpa -> ns1.customer.com
NS: 33.22.11.in-addr.arpa -> ns2.customer.com
Sub-delegate full class C (256 IP addresses) from less than a class B (< 65536 IP addresses)
If you have multiple class Cs (multiple sets of 256 IP addresses) but not a full class B, then the best way to sub-delegate reverse DNS for one of those class Cs is to ask your IP address provider to create/change this delegation on their DNS servers.
Technically you could use "classless IN-ADDR.ARPA delegation" (see below) but this is not recommend for a full class C because the customer will (rightly) expect a standard reverse delegation (as above).
Sub-delegate less than a class C (< 256 IP addresses) from a class C or larger (256+ IP addresses)
If you have at least a class C (256 IP addresses), and you want to sub-delegate reverse DNS for only part of a class C to your customer's DNS servers, this is typically done using the "classless IN-ADDR.ARPA delegation" style described in RFC2317.
Technically it is possible to use other sub-delegation naming styles, but we highly recommend that you stick with the RFC2317 style because this is much more likely to work with various tools and programs. For example, the GUI record editor in Simple DNS Plus automatically recognizes the RFC2317 zone naming style as a reverse zone.
For example say you have IP addresses 11.22.33.0/24 (11.22.33.0 to 11.22.33.255) and you want to sub-delegate reverse DNS for 11.22.33.64/30 (11.22.33.64 to 11.22.33.67) to your customer's DNS servers.
Then in your "33.22.11.in-addr.arpa" zone, you would add an NS-record for "64/30.33.22.11.in-addr.arpa" for each of your customers's DNS servers, and a CNAME-record for "XX.33.22.11.in-addr.arpa" pointing to "XX.64/30.33.22.11.in-addr.arpa" for each of the IP addresses in the customer's IP range where XX is the last segment of each IP address like this:
NS: 64/30.33.22.11.in-addr.arpa -> ns1.customer.com
NS: 64/30.33.22.11.in-addr.arpa -> ns2.customer.com
CNAME: 64.33.22.11.in-addr.arpa -> 64.64/30.33.22.11.in-addr.arpa
CNAME: 65.33.22.11.in-addr.arpa -> 65.64/30.33.22.11.in-addr.arpa
CNAME: 66.33.22.11.in-addr.arpa -> 66.64/30.33.22.11.in-addr.arpa
CNAME: 67.33.22.11.in-addr.arpa -> 67.64/30.33.22.11.in-addr.arpa
Your customer would setup a zone called “64/30.33.22.11.in-addr.arpa” on his DNS server with the following records:
SOA: 64/30.33.22.11.in-addr.arpa …
NS: 64/30.33.22.11.in-addr.arpa -> ns1.customer.com
NS: 64/30.33.22.11.in-addr.arpa -> ns2.customer.com
PTR: 64.64/30.33.22.11.in-addr.arpa -> [reverse DNS name for IP 11.22.33.64]
PTR: 65.64/30.33.22.11.in-addr.arpa -> [reverse DNS name for IP 11.22.33.65]
PTR: 66.64/30.33.22.11.in-addr.arpa -> [reverse DNS name for IP 11.22.33.66]
PTR: 67.64/30.33.22.11.in-addr.arpa -> [reverse DNS name for IP 11.22.33.67]
Sub-delegate from less than a class C (< 256 IP addresses) If you have an IP address range of less than 256 IP addresses, then the best way to sub-delegate reverse DNS for part of that range is to ask your IP address provider to create/change this delegation on their DNS servers. Technically you could create another level of CNAME redirection similar to "classless IN-ADDR.ARPA delegation" (see above) but this is not recommend because the redirection becomes too deep.