<div dir="ltr">Hi,<div><br></div><div>I am trying to configure a subnet (example: <a href="http://10.1.26.96/27" target="_blank">10.1.16.32/27</a>) zone files for internal domains, and have hard times with setting up the reverse lookup zone file.  The couple examples I found on the internet didn't help much.</div>

<div>This example taken from the Pro Bind and DNS book was the closest to what I wanted to achieve but unfortunately it didn't work for me due to an error: <a href="http://www.zytrax.com/books/dns/ch9/reverse.html" target="_blank">http://www.zytrax.com/books/dns/ch9/reverse.html</a></div>

<div><br></div><div>For instance adding a zone definition  in /etc/named.conf like this forced the DNS server to complain about bad name of the zone:</div><div><br></div><div><pre style="background-color:rgb(153,187,255);border-style:solid;border-color:rgb(204,204,204);border-width:1px 1px 1px 5px;padding:5px">
<font face="Courier New, monospace"><span style="font-size:15px">zone "27/32.16.1.10.in-addr.arpa" IN {
        type master;
        file "16.1.10.in-addr.arpa.db";
        };<br></span></font></pre></div><div>named-checkconf -z /etc/named.conf  produces the following errors<br></div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
zone 27/32.16.1.10.in-addr.arpa/IN: loading from master file 16.1.10.in-addr.arpa.db failed: bad name (check-names)<br>zone 27/32.16.1.10.in-addr.arpa/IN: not loaded due to errors.<br>_default/27/32.16.1.10.in-addr.arpa/IN: bad name (check-names)</blockquote>
</div><div><br></div><div>16.1.10.in-addr.arpa.db content <br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
$ORIGIN  27/32.16.1.10.in-addr.arpa.<br>$TTL 300<br>@       IN      SOA     <a href="http://ns1.example.com">ns1.example.com</a>. <a href="mailto:it@example.com">it@example.com</a> (<br>        2014033102      ; serial <br>
        300             ; time to refresh<br>        3600            ; time to retry<br>        604800          ; time to expire<br>        300)             ; time to live<br>        IN      NS      <a href="http://ns1.example.com">ns1.example.com</a><br>
        IN      NS      <a href="http://ns1.example.com">ns1.example.com</a>.<br>$GENERATE 34-61     $   IN PTR ${0,3,d}.<a href="http://perf01.example.com">perf01.example.com</a></blockquote></div><div><br></div><div>I tried adding  check-names ignore; to the zone definition in named.conf, which removed the bad-name errors but it didn't resolve the reverse lookup problem for this subnet.</div>
<div><br></div><div><br></div><div>Thanks</div><div><br>Dimitar</div></div>