way to clean up db files

Vinny Abello vinny at tellurian.com
Tue Jul 13 23:49:44 UTC 2004


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.



More information about the bind-users mailing list