From b45eb27c91a50a552f15b5f281c86c87b891fe2b Mon Sep 17 00:00:00 2001 From: Bert Hubert Date: Tue, 14 Apr 2009 21:20:43 +0000 Subject: [PATCH] set a sane default for the maximum cache size in the recursor, suggested by Roel van der Made git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1354 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- pdns/pdns_recursor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 949e27503..59c6e80b6 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -2018,7 +2018,7 @@ int main(int argc, char **argv) ::arg().set("client-tcp-timeout","Timeout in seconds when talking to TCP clients")="2"; ::arg().set("max-tcp-clients","Maximum number of simultaneous TCP clients")="128"; ::arg().set("hint-file", "If set, load root hints from this file")=""; - ::arg().set("max-cache-entries", "If set, maximum number of entries in the main cache")="0"; + ::arg().set("max-cache-entries", "If set, maximum number of entries in the main cache")="1000000"; ::arg().set("max-negative-ttl", "maximum number of seconds to keep a negative cached entry in memory")="3600"; ::arg().set("server-id", "Returned when queried for 'server.id' TXT or NSID, defaults to hostname")=""; ::arg().set("remotes-ringbuffer-entries", "maximum number of packets to store statistics for")="0"; -- 2.49.0