summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Letkiewicz <daniel@letkiewicz.pl>2019-09-07 10:06:27 +0100
committerRoy Marples <roy@marples.name>2019-09-07 10:06:27 +0100
commit08a892a68eda830c7eed6d0a0bfc73ded9e1f228 (patch)
tree99989ae13f1766eee471d5b71d5728a8b4297ff0
parentcec3341e0a1d71b5951639c2fec1352f1175a89c (diff)
downloadopenresolv-08a892a68eda830c7eed6d0a0bfc73ded9e1f228.tar.xz
dnsmasq: Clear cache when DBus is used
Otherwise, when a VPN tunnel is down all record received from DNS server exposed via the tunnel stay in the dnsmasq cache.
-rw-r--r--dnsmasq.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/dnsmasq.in b/dnsmasq.in
index e0a7f53..70dbffd 100644
--- a/dnsmasq.in
+++ b/dnsmasq.in
@@ -206,4 +206,6 @@ if $dbus; then
dbus-send --system --dest=uk.org.thekelleys.dnsmasq \
/uk/org/thekelleys/dnsmasq uk.org.thekelleys.$method \
$dbusdest
+ dbus-send --system --dest=uk.org.thekelleys.dnsmasq \
+ /uk/org/thekelleys/dnsmasq uk.org.thekelleys.ClearCache
fi