dnsmasq: Clear cache when DBus is used
authorDaniel Letkiewicz <daniel@letkiewicz.pl>
Sat, 7 Sep 2019 09:06:27 +0000 (10:06 +0100)
committerRoy Marples <roy@marples.name>
Sat, 7 Sep 2019 09:06:27 +0000 (10:06 +0100)
Otherwise, when a VPN tunnel is down all record received from DNS
server exposed via the tunnel stay in the dnsmasq cache.

dnsmasq.in

index e0a7f530e474cdccc47bf1bea51880fb1051549b..70dbffd19c1865e0f768ffa1ca0f26381233a481 100644 (file)
@@ -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