diff --git a/src/dnsmasq.c b/src/dnsmasq.c index 7f7d50f..ff2c7f2 100644 --- a/src/dnsmasq.c +++ b/src/dnsmasq.c @@ -740,7 +740,11 @@ int main (int argc, char **argv) else { if (daemon->cachesize != 0) - my_syslog(LOG_INFO, _("started, version %s cachesize %d"), VERSION, daemon->cachesize); + { + my_syslog(LOG_INFO, _("started, version %s cachesize %d"), VERSION, daemon->cachesize); + if (daemon->cachesize > 10000) + my_syslog(LOG_WARNING, _("cache size greater than 10000 may cause performance issues, and is unlikely to be useful.")); + } else my_syslog(LOG_INFO, _("started, version %s cache disabled"), VERSION); diff --git a/src/option.c b/src/option.c index 0f01c94..5da5244 100644 --- a/src/option.c +++ b/src/option.c @@ -2603,8 +2603,6 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma if (size < 0) size = 0; - else if (size > 10000) - size = 10000; daemon->cachesize = size; }