Skip in a $GENERATE

Mike S. Whitlow dudeha at bluestem.prairienet.org
Tue Mar 2 21:18:57 UTC 2004


Howdy!

I was wondering if there is a **fancier** way, other than the common sense way of doing multiple
rangess, to skip PTR records in a $GENERATE statement..

Suppose I wanted generic "host" format records for all of the IPs in 192.168.29.0/24, except for the
three records that I have custom PTRs for:

72.29.168.192.in-addr.arpa. 86400  IN    PTR         www.funwithdollargenerate.com.
245.29.168.192.in-addr.arpa. 86400 IN    PTR         mail.funwithdollargenerate.com.
4.29.168.192.in-addr.arpa. 86400   IN    PTR         ftp.funwithdollargenerate.com.
$GENERATE 1-254 $ PTR host-192-168-29-$.funwithdollargenerate.com.

If you do this like I have above, .72, .245, and .4 will each have two PTR records, and that is 
not legal.. 

Is multiple ranges with the $GENERATE my only option or is there something slicker I could do here 
to exclude those three IPs from having a generic record generated?

Thanks much!

Mike


More information about the bind-users mailing list