$GENERATE or $EXEC?

Cricket Liu cricket at acmebw.com
Sun Jul 18 16:21:03 UTC 1999


AndrX Pirard <A.Pirard at ulg.ac.be> wrote in message
news:3791be1e.478635 at nntp.ulg.ac.be...
> Even more interesting than $GENERATE would be an
> $EXEC <filename> <parameters>
> that would use the standard output of a script as input to BIND.
> For example, it would be especially useful in a configuration file
> defining many zones. A simple "if" in a script used much like an
> $INCLUDE file would output zone definitions as master or slaves
> depending the particular host the script runs on.
> Allowing some programmed extensions to BIND much more easily than
> preprocessing, this $EXEC would even bring fun to such things like
> reloading the server with different data according to the time of the
> day.

That's an interesting idea, Andre.  And with $EXEC, you could replace
$GENERATE with a small program and the appropriate right-hand side:

$EXEC /usr/sbin/named/generate 1-63 $ IN CNAME
$.0-63.0.168.192.in-addr.arpa.

I guess someone would have to publish a new RFC extending the current master
file format to include $EXEC, too.

cricket




More information about the bind-users mailing list