<div dir="ltr"><div><br></div><div>One post said 220/24 is not the correct format,</div><div>Another post said that is the format. Not sure which one is correct.</div><div><br></div><div>Setting 220            NS            <a href="http://ns2.sub.test.com">ns2.sub.test.com</a>.</div>
<div>Did not work as suggested by Phil.</div><div><br></div><div>Having the CNAME $0.220 caused the entries to be 94.0.220/24.20.172.IN-ADDR.ARPA.</div><div><br></div><div>Used the generate statement </div><div>$GENERATE   0-255   $.220      CNAME  $.220 </div>
<div><br></div><div>This is the only one irrespective or 0-255.220 or 220 or 220/24 against the NS statement, </div><div>which gave a reply back without NXDOMAIN but all it gives as a response is</div><div><br></div><div>
94.220.20.172.IN-ADDR.ARPA        canonical name = 94.220.20.172.IN-ADDR.ARPA.</div><div><br></div><div>However due to the  situation I am in ( the Unix / Linux server hosts a /16 subnet ) and there is a Windows DNS which hosts a subset /24 of this. Hence trying this out, as it is not possible to get all the information for the hosts and PTR's in the /24 subnet and host my own class C PTR file.</div>
<div><div><br></div></div><div><br></div><div>Message: 2<br> Date: Tue, 19 Aug 2014 13:37:08 +0100<br> From: Phil Mayers <<a href="mailto:p.mayers@imperial.ac.uk">p.mayers@imperial.ac.uk</a>><br> To: <a href="mailto:bind-users@lists.isc.org">bind-users@lists.isc.org</a><br>
 Subject: Re: DNS reverse sub delegation NXDOMAIN problem, Class C<br> Message-ID: <<a href="mailto:53F344F4.3010009@imperial.ac.uk">53F344F4.3010009@imperial.ac.uk</a>><br> Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br> On 19/08/14 13:12, Bazy V wrote:<br><br>> $ORIGIN 20.172.IN-ADDR.ARPA.<br>> <br>> 0.220/24       NS <a href="http://ns2.sub.test.com/" target="_blank">ns2.sub.test.com</a><br><br> You don't need to do this. You just need:<br>
<br> $ORIGIN 20.172.IN-ADDR.ARPA.<br> 220     NS <a href="http://ns2.sub.test.com/" target="_blank">ns2.sub.test.com</a>.<br><br> RFC 2317 is only need for /25 and longer.<br><br><br> ------------------------------<br><br>
 Message: 3<br> Date: Tue, 19 Aug 2014 19:09:04 +0530<br> From: Mukund Sivaraman <<a href="mailto:muks@isc.org">muks@isc.org</a>><br> To: Bazy V <<a href="mailto:bzahy8@gmail.com">bzahy8@gmail.com</a>><br> Cc: <a href="mailto:bind-users@lists.isc.org">bind-users@lists.isc.org</a><br>
 Subject: Re: DNS reverse sub delegation NXDOMAIN problem, Class C<br> Message-ID: <<a href="mailto:20140819133904.GA4332@totoro.home.mukund.org">20140819133904.GA4332@totoro.home.mukund.org</a>><br> Content-Type: text/plain; charset="us-ascii"<br>
<br> Hi Bazy<br><br> On Tue, Aug 19, 2014 at 08:12:58AM -0400, Bazy V wrote:<br>> so I set up the following in my reverse file for <a href="http://ns2.sub.test.com/" target="_blank">ns2.sub.test.com</a> domain<br>> -----------------------<br>
> $ORIGIN 20.172.IN-ADDR.ARPA.<br>> <br>>                     NS     <a href="http://ns1.test.com/" target="_blank">ns1.test.com</a><br>> 0.220/24       NS     <a href="http://ns2.sub.test.com/" target="_blank">ns2.sub.test.com</a><br>
> 43.222          IN PTR  <a href="http://ns1.test.com/" target="_blank">ns1.test.com</a>.<br>> 97.201          IN PTR  <a href="http://dev1.test.com/" target="_blank">dev1.test.com</a>.<br><br> The "220/24" isn't treated as a netmask for automatic expansion. It is<br>
 used exactly. The only thing that generates records is the $GENERATE<br> directive, but even it doesn't understand "220/24" as something for<br> expansion.<br><br> As another poster pointed out, you don't need to delegate a /24 network<br>
 using classless delegation, but if you want to delegate a set of<br> addresses, say 172.20.200.0-172.20.200.63, you'd use something like<br> this:<br><br> (a) In 20.172.IN-ADDR.ARPA. zone:<br><br> 0-63.220                  NS      <a href="http://ns-other.example.com/" target="_blank">ns-other.example.com</a>.<br>
 $GENERATE 0-63    $.220       CNAME   $.0-63.220<br><br> # which should generate:<br> # 0.220 CNAME 0.0-63.220.20.172.IN-ADDR.ARPA.<br> # 1.220 CNAME 1.0-63.220.20.172.IN-ADDR.ARPA.<br> # 2.220 CNAME 2.0-63.220.20.172.IN-ADDR.ARPA.<br>
 # ...<br> # 63.220 CNAME 63.0-63.220.20.172.IN-ADDR.ARPA.<br><br> (b) on <a href="http://ns-other.example.com/" target="_blank">ns-other.example.com</a>, in 0-63.220.20.172.IN-ADDR.ARPA. zone:<br><br> 0 PTR <a href="http://zero.example.com/" target="_blank">zero.example.com</a>.<br>
 1 PTR <a href="http://one.example.com/" target="_blank">one.example.com</a>.<br> # etc.<br><br>> .<br>> .<br>> $ORIGIN 220.20.172.IN-ADDR.ARPA.<br>> $GENERATE    1-255    $       CNAME   $.220/24<br>> ---------------------------------------<br>
> <br>> When I do a named-checkzone and out put it , it seems to have written the<br>> right records like<br>> <br>> 42.220.20.172.IN-ADDR.ARPA.          TTL   IN CNAME<br>> 42.220/24.220.20.172.IN-ADDR.ARPA.<br>
<br> In your config in zone 20.172.IN-ADDR.ARPA., there are no delegations<br> for 220/24.220.20.172.IN-ADDR.ARPA.<br><br>                 Mukund<br> -------------- next part --------------<br> A non-text attachment was scrubbed...<br>
 Name: not available<br> Type: application/pgp-signature<br> Size: 2881 bytes<br> Desc: not available<br> URL: <<a href="https://lists.isc.org/pipermail/bind-users/attachments/20140819/e2b86b45/attachment-0001.bin" target="_blank">https://lists.isc.org/pipermail/bind-users/attachments/20140819/e2b86b45/attachment-0001.bin</a>><br>
<br> ------------------------------<br><br> Message: 4<br> Date: Tue, 19 Aug 2014 15:40:49 +0200<br> From: Matus UHLAR - fantomas <<a href="mailto:uhlar@fantomas.sk">uhlar@fantomas.sk</a>><br> To: <a href="mailto:bind-users@lists.isc.org">bind-users@lists.isc.org</a><br>
 Subject: Re: DNS reverse sub delegation NXDOMAIN problem, Class C<br> Message-ID: <<a href="mailto:20140819134049.GB30614@fantomas.sk">20140819134049.GB30614@fantomas.sk</a>><br> Content-Type: text/plain; charset=us-ascii; format=flowed<br>
<br>> On 19/08/14 13:12, Bazy V wrote:<br>>> $ORIGIN 20.172.IN-ADDR.ARPA.<br>>> <br>>> 0.220/24       NS <a href="http://ns2.sub.test.com/" target="_blank">ns2.sub.test.com</a><br><br> On 19.08.14 13:37, Phil Mayers wrote:<br>
> You don't need to do this. You just need:<br>> <br>> $ORIGIN 20.172.IN-ADDR.ARPA.<br>> 220    NS <a href="http://ns2.sub.test.com/" target="_blank">ns2.sub.test.com</a>.<br>> <br>> RFC 2317 is only need for /25 and longer.<br>
<br> ... and it exactly causes the problem.<br><br> if <a href="http://ns2.sub.test.com/" target="_blank">ns2.sub.test.com</a> contains 220.20.172.IN-ADDR.ARPA, resolution should<br> work the usual way.<br><br> Delegating 220/24.20.172.IN-ADDR.ARPA. to <a href="http://ns2.sub.test.com/" target="_blank">ns2.sub.test.com</a>, you'd have to<br>
 create CNAMEs for 0.220/24 to 255.220/24, whic would be an overkill.<br><br> Note that either 0.220/24 wasn't technically correct, it should be:<br><br> 220/24  NS      <a href="http://ns2.sub.test.com/" target="_blank">ns2.sub.test.com</a>.<br>
 0.220   CNAME   0.220/24<br><br> but that's an overkill as Phil correctly pointed out.<br><br> --<br> Matus UHLAR - fantomas, <a href="mailto:uhlar@fantomas.sk">uhlar@fantomas.sk</a> ; <a href="http://www.fantomas.sk/" target="_blank">http://www.fantomas.sk/</a><br>
 Warning: I wish NOT to receive e-mail advertising to this address.<br> Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.<br> Microsoft dick is soft to do no harm<br><br><br></div></div>