[Dnsmasq-discuss] Variables inside config
Simon Kelley
simon at thekelleys.org.uk
Tue Oct 23 20:59:58 BST 2012
On 23/10/12 10:15, Michael Strelnikov wrote:
> Hi all,
>
> Can I define a variable in the top of dnsmasq.conf and use
> it throughout config?
>
Not directly. You can make dnsmasq read it's configuration from stdin,
which makes it theoretically possible to use something like m4 to
pre-process the config.
m4 /etc/dnsmasq.conf | dnsmasq --conf-file=-
Cheers,
Simon.
More information about the Dnsmasq-discuss
mailing list