diff options
author | Christian Hesse <mail@eworm.de> | 2016-11-29 15:03:39 +0100 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2016-11-29 22:56:39 +0100 |
commit | c966fd54bfe3d421299d3aec7d5f3d2329230012 (patch) | |
tree | 348d1c846f81b1eefc168ccbeab30a8d29b1fade | |
parent | 48402cd52693b29a42ec1653e22755d8ec215f38 (diff) | |
download | NetworkManager-c966fd54bfe3d421299d3aec7d5f3d2329230012.tar.gz |
dns: tell dnsmasq to clear cache on servers reload
A new DNS may have different data for us. So tell dnsmasq to
automatically clear the cache when servers change.
Signed-off-by: Christian Hesse <mail@eworm.de>
-rw-r--r-- | src/dns/nm-dns-dnsmasq.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dns/nm-dns-dnsmasq.c b/src/dns/nm-dns-dnsmasq.c index 9ef7972fee..2db1680595 100644 --- a/src/dns/nm-dns-dnsmasq.c +++ b/src/dns/nm-dns-dnsmasq.c @@ -537,6 +537,7 @@ start_dnsmasq (NMDnsDnsmasq *self) argv[idx++] = "--pid-file=" PIDFILE; argv[idx++] = "--listen-address=127.0.0.1"; /* Should work for both 4 and 6 */ argv[idx++] = "--cache-size=400"; + argv[idx++] = "--clear-on-reload"; /* clear cache when dns server changes */ argv[idx++] = "--conf-file=/dev/null"; /* avoid loading /etc/dnsmasq.conf */ argv[idx++] = "--proxy-dnssec"; /* Allow DNSSEC to pass through */ argv[idx++] = "--enable-dbus=" DNSMASQ_DBUS_SERVICE; |