way to clean up db files

Justin Randall j_randall_ at hotmail.com
Wed Jul 14 00:28:51 UTC 2004


Using $GENERATE will also work for A records, however the proper notation 
would be as such:


$GENERATE       37-62   unused-10-168-24-$     A    10.168.24.$

This is what I used for my unused private IP space.  Forward queries behave 
perfectly normal.

Hope this helps.

>From: Vinny Abello <vinny at tellurian.com>
>To: "Sebastian Castro Avila" <secastro at nic.cl>
>CC: gopher2 at sdf.lonestar.org, bind-users at isc.org, secastro at nic.cl
>Subject: Re: way to clean up db files
>Date: Tue, 13 Jul 2004 19:49:44 -0400
>
>At 02:57 PM 7/13/2004, Sebastian Castro Avila wrote:
> >On Tue, 13 Jul 2004 18:46:06 +0000 (UTC), <gopher2 at sdf.lonestar.org> 
>wrote:
> >
> > >   my db files i have 30 lines like this
> > >
> > > vpn_client1             A               192.168.5.225
> > > vpn_client2             A               192.168.5.226
> > > vpn_client3             A               192.168.5.227
> > > vpn_client4             A               192.168.5.228
> > > ......
> > > vpn_client30             A               192.168.5.254
> > >
> >
> >Using GENERATE directive
> >
> >You should use something like
> >
> >$GENERATE 1-30 vpn_client$ A 192.168.5.${224}
>
>Just commenting on this, but I remember reading that the $GENERATE
>statement is only valid for PTR records. Has this changed or has this not
>been the case? I think I read this in the O'Reilly DNS and BIND 4th Edition
>book but I'm not positive. I'm very interested to know if this works as I
>have not used it for that reason in forward zones.
>
> > > also my reverse lookup is the same
> > >
> >
> >Here use
> >
> >$GENERATE 225-254 $ PTR vpn_cliente${-224}.example.org.
> >
> >
> > > 225                     PTR     vpnclient1.example.org.
> > > 226                     PTR     vpnclient2.example.org.
> > > 227                     PTR     vpnclient3.example.org.
> > > ....
> > > 254                     PTR     vpnclient30.example.org.
> > >
> > >
> > > is there any way i can do this on just one line
> > > i think i seen it before but not sure
> > > thanks
> > >
> >
> >Good luck!
> >
> > >
> > >
> > > gopher2 at sdf.lonestar.org
> > > SDF Public Access UNIX System - http://sdf.lonestar.org
> >
> >
> >
> >--
> >Sebastian E. Castro Avila             sebastian at nic.cl
> >Administrador de DNS, NIC Chile
> >Fono: (2) 9407705                  Fax  : (2) 9407701
>
>
>Vinny Abello
>Network Engineer
>Server Management
>vinny at tellurian.com
>(973)300-9211 x 125
>(973)940-6125 (Direct)
>PGP Key Fingerprint: 3BC5 9A48 FC78 03D3 82E0  E935 5325 FBCB 0100 977A
>
>Tellurian Networks - The Ultimate Internet Connection
>http://www.tellurian.com (888)TELLURIAN
>
>There are 10 kinds of people in the world. Those who understand binary and
>those that don't.
>
>

_________________________________________________________________
MSN Premium includes powerful parental controls and get 2 months FREE*   
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines



More information about the bind-users mailing list