Clear cache for dnsmasq when DBus is used
Daniel Letkiewicz
Thu Aug 29 11:42:41 2019
Hi guys,
I'm sorry if this is the well-known issue but it seems that resolvconf
doesn't clear dnsmasq cache via DBus when the configuration is changed.
I use OpenVPN + resolvconf + dnsmasq (with DBus) to manage DNS server /
domain via VPN tunnel. Everything works fine for me but I had to modify
https://github.com/rsmarples/openresolv/blob/master/dnsmasq.in#L206 to
clear dnsmasq cache.
I've just added the following command before line 206.
dbus-send --system --dest=uk.org.thekelleys.dnsmasq \
/uk/org/thekelleys/dnsmasq uk.org.thekelleys.ClearCache
Otherwise, when my VPN tunnel is down all record received from DNS server
exposed via the tunnel stay in dnsmasq cache what is incorrect.
Is there any better way to do that ?
--
Daniel
Archive administrator: postmaster@marples.name