[Dnsmasq-discuss] How to get dnsmasq to see changes in files in /etc/dnsmasq.d?
Petr Menšík
pemensik at redhat.com
Thu Apr 4 10:32:47 UTC 2024
Normal conf-file or conf-dir is not re-read upon receiving SIGHUP
signal. You would have to use special servers-file for that. If you
explicitly add your blacklist using
servers-file=/etc/dnsmasq.d/blacklist.conf, it should be able to read
that blacklist again. I am afraid there is no servers-dir variant, which
might watch for file changes automatically.
On 25. 03. 24 20:26, Chris Green wrote:
> Is there a way (other than restarting dnsmasq) to get it to notice
> changes to files in /etc/dnsmasq.d?
>
> I have a blacklist file which I put in /etc/dnsmasq.d and, obviously,
> when the file is updated I want dnsmasq to notice any changes in the
> file.
>
--
Petr Menšík
Software Engineer, RHEL
Red Hat, http://www.redhat.com/
PGP: DFCF908DB7C87E8E529925BC4931CA5B6C9FC5CB
More information about the Dnsmasq-discuss
mailing list