Any changes will not be read real time, only selected files like
--dhcp-hostsdir or --hostsdir. I think --hostsdir could be used for it,
reloading it without explicit SIGHUP. It will just watch for changes in
that directory. It would not allow to remove already served names
however. I think you can
If I update an external conf file will dnsmasq read in the changes in real
time or do I have to restart it?
On Fri, Mar 2, 2018 at 10:39 AM wrote:
> On 03/02/2018 07:46 AM, Petr Menšík wrote:
> > and then generate your file any way you need. For example in bash
> >
> > echo "# Autogenerated file
On 03/02/2018 07:46 AM, Petr Menšík wrote:
and then generate your file any way you need. For example in bash
echo "# Autogenerated file, do not edit by hand" >
/etc/dnsmasq.d/blocked.conf
for DOMAIN in 2o7.net 2mdm.net
do echo "address=/$DOMAIN/$MYIP" >> /etc/dnsmasq.d/blocked.conf
done
ev
You can use any script to generate those addresses into separate file.
Dnsmasq is very low overhead server without real built-in scripting for
these things. It already contains lua interpreter, but I think such
features should be left to external scripts instead.
You can already use:
conf-dir=/etc
On 2018-02-19 21:28, Steve Lloyd wrote:
> Is it possilbe to set a variable and then use it as follows? or is there a
> way to set and use a variable in the conf file for address entries?
>
> myip=10.0.1.6
> address=/2o7.net/$myip [1]
> address=/2mdm.net/$myip [2]
>
> instead of
> address
Is it possilbe to set a variable and then use it as follows? or is there a
way to set and use a variable in the conf file for address entries?
myip=10.0.1.6
address=/2o7.net/$myip
address=/2mdm.net/$myip
instead of
address=/2o7.net/10.0.1.6
address=/2mdm.net/10.0.1.6