[freeside] $GENERATE records in BIND

Kristian Hoffmann khoff at fire2wire.com
Wed May 11 22:30:14 PDT 2005


I've been thinking about adding support for this as well.  The one problem
I ran into is that there would be no way to reference one of the generated
records in a svc_www (or potentially any other table that referenced a
recnum).  If this sort of limitation is acceptable, then I don't see why
it shouldn't be supported.  After all, you're probably not going to end up
setting up a vhost for dialup-192-168-100-20.mydomain.net anyway. :-)

Comments?

Kristian Hoffmann
Fire2Wire System Administrator
khoff at fire2wire.com
---

On Wed, 11 May 2005, Vlad Sedov wrote:

> hello list -
>
> I could not find a way to add $GENERATE records into BIND through freeside.
>
> is anyone using $GENERATE records?  I was thinking about hacking that
> little option into freeside. These types of records are very handy for
> ISP's with lots of IP addresses for dialup, broadband, etc.
>
> a refresher for those that forgot ;-) -
>
> e.g.
> $GENERATE 20-220 dialup-192-168-100-$.mydomain.net. A 192.168.100.$
>
> ..will generate:
>
> dialup-192-168-100-20.mydomain.net   IN   A  192.168.100.20
> dialup-192-168-100-21.mydomain.net   IN   A  192.168.100.21
> ....
> ....
> dialup-192-168-100-220.mydomain.net   IN   A  192.168.100.220
>
> it's a neat one-liner to make the zone files look a bit more readable,
> and saves you from having to type a million lines.
>
>
> regards
>
> -stereomind
>




More information about the freeside-users mailing list