summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2011-10-05 17:28:22 -0500
committerDan Williams <dcbw@redhat.com>2011-10-10 16:38:20 -0500
commit216b05ea0da36a57043390f0fa91f8f4c284e022 (patch)
tree20a92e61b78a520bc36f93812dbae5631959e27e
parent7d88e3b856adc91d26931f2d68b33b2142a9ba3b (diff)
downloadNetworkManager-216b05ea0da36a57043390f0fa91f8f4c284e022.tar.gz
dnsmasq: bump DNS cache size to 400
150 seems a bit low these days.
-rw-r--r--src/dns-manager/nm-dns-dnsmasq.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dns-manager/nm-dns-dnsmasq.c b/src/dns-manager/nm-dns-dnsmasq.c
index 27672088c1..a602c54fa6 100644
--- a/src/dns-manager/nm-dns-dnsmasq.c
+++ b/src/dns-manager/nm-dns-dnsmasq.c
@@ -246,7 +246,7 @@ update (NMDnsPlugin *plugin,
NMDnsDnsmasq *self = NM_DNS_DNSMASQ (plugin);
GString *conf;
GSList *iter;
- const char *argv[10];
+ const char *argv[11];
GError *error = NULL;
int ignored;
GPid pid = 0;
@@ -307,7 +307,8 @@ update (NMDnsPlugin *plugin,
argv[5] = "--pid-file=" PIDFILE;
argv[6] = "--listen-address=127.0.0.1"; /* Should work for both 4 and 6 */
argv[7] = "--conf-file=" CONFFILE;
- argv[8] = NULL;
+ argv[8] = "--cache-size=400";
+ argv[9] = NULL;
/* And finally spawn dnsmasq */
pid = nm_dns_plugin_child_spawn (NM_DNS_PLUGIN (self), argv, PIDFILE, "bin/dnsmasq");