From b74d79898378cd6421d6da87c60c84b6bd44e4ce Mon Sep 17 00:00:00 2001 From: edrikk Date: Fri, 5 Jun 2015 02:59:43 +0000 Subject: [PATCH] Implementing cache and log async per RMerlin's suggestion in thread: http://linksysinfo.org/index.php?threads/tomato-arm-builds-w-inbound-qos.71285/#post-262132 This will also avoid issue of users that want to over-ride the values resulting in dnsmasq failures. --- release/src-rt-6.x.4708/router/rc/services.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/release/src-rt-6.x.4708/router/rc/services.c b/release/src-rt-6.x.4708/router/rc/services.c index c90aa838c7..ac29994df8 100644 --- a/release/src-rt-6.x.4708/router/rc/services.c +++ b/release/src-rt-6.x.4708/router/rc/services.c @@ -127,12 +127,6 @@ void start_dnsmasq() dmresolv, dmhosts, dmdhcp, n); do_dns = nvram_match("dhcpd_dmdns", "1"); - //Set the size of dnsmasq's cache, increasing it from the default of 150 names to 1024 names. - fprintf(f,"cache-size=1024\n"); - - //Allow for asynchronous logging, removing risk of syslog-dnsmasq deadlocking - fprintf(f,"log-async=5\n"); - // DNS rebinding protection, will discard upstream RFC1918 responses if (nvram_get_int("dns_norebind")) { fprintf(f, @@ -469,6 +463,8 @@ void start_dnsmasq() // Default to some values we like, but allow the user to override them. eval("dnsmasq", "-c", "1500", "--log-async"); + + eval("dnsmasq", "-c", "2048", "--cache-size"); if (!nvram_contains_word("debug_norestart", "dnsmasq")) { pid_dnsmasq = -2; -- 2.11.4.GIT