summaryrefslogtreecommitdiff
path: root/src/dns-manager
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2011-10-05 17:28:22 -0500
committerDan Williams <dcbw@redhat.com>2011-10-05 17:28:22 -0500
commit3f08004aa13d301133c06e43e8d0fdb3483302d1 (patch)
tree33fe7471a6b895766cc897050a82ce5e17cfde41 /src/dns-manager
parentbcef119ffd04ba51cabdf608ed78c467e0779d5f (diff)
downloadNetworkManager-3f08004aa13d301133c06e43e8d0fdb3483302d1.tar.gz
dnsmasq: bump DNS cache size to 400
150 seems a bit low these days.
Diffstat (limited to 'src/dns-manager')
-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");