Bluehost.com Web Hosting $6.95

Skip in a $GENERATE

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** ...


Go Back   Usenet Forums > DNS and Related Forums > Bind Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-03-2004
Barry Finkel
 
Posts: n/a
Default Skip in a $GENERATE

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


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 12:43 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0