[freeside] $GENERATE records in BIND

ivan ivan at 420.am
Thu May 12 13:21:57 PDT 2005


On Wed, May 11, 2005 at 10:30:11PM -0700, Kristian Hoffmann wrote:
> 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?

I don't think $GENERATE should necessarily be supported verbatim, it is
a BIND-specific zone-file shortcut.

How about "expanding" the $GENERATE records on initial import, and
having a "$GENERATE"-like option in the web UI?  If we wanted to get
extra-fancy, we could also optionally "collapse" the multiple records
back into a single line "$GENERATE"-like display when displaying them.

-- 
_ivan

> 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