This is a discussion on Skip in a $GENERATE within the Bind Users forums, part of the DNS and Related Forums category; Mike S. Whitlow" <dudeha@bluestem.prairienet.org> wrote: >I was wondering if there is a **fancier** ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Mike S. Whitlow" <dudeha@bluestem.prairienet.org> wrote:
>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? I have never used $GENERATE. If I had to create records like $GENERATE 1-254 $ PTR host-192-168-29-$.funwithdollargenerate.com. I would write a quick-and-dirty awk script to generate the lines. Then I could delete any of the output lines that I did not want. (Others might use something other than awk.) ---------------------------------------------------------------------- Barry S. Finkel Computing and Instrumentation Solutions Division Argonne National Laboratory Phone: +1 (630) 252-7277 9700 South Cass Avenue Facsimile:+1 (630) 252-4601 Building 222, Room D209 Internet: BSFinkel@anl.gov Argonne, IL 60439-4828 IBMMAIL: I1004994 |