<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">For the short term, NM does have an /etc/NetworkManager/dnsmasq.d<br>
directory where you can toss dnsmasq config files, which NM will pass to<br>
dnsmasq when it spawns it.  Unfortunately, because D-Bus gets used on<br>
Ubuntu and dnsmasq isn't respawned on changes, that won't work for you.<br>
Ideally, dnsmasq would get some kind of SIGHUP-like signal that *would*<br>
re-read config files too, and then you could dump your info there and<br>
SIGxxx it and everything would be fine.<br></blockquote><div><br></div><div>Can't seem to find this in the documentation, but the reason that SIGHUP only rereads datafiles (hostsfile, /etc/ethers, etc) and not configuration has been explained before:</div><div><br></div><div>Implementing configuration (opening port 53, among other things) requires root privilege.  But signals are received after dnsmasq drops root.  Allowing full reconfiguration while dnsmasq is running would open the door to privilege escalation, and therefore is excluded as an intentional design decision.</div><div><br></div><div>Ideally, you would fix your wrapper's behavior that "dnsmasq isn't respawned on changes", because this behavior is wrong.</div></div></div></div>