way to clean up db files

Sebastian Castro Avila secastro at nic.cl
Tue Jul 13 18:57:24 UTC 2004


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}

> 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


More information about the bind-users mailing list