From: Otto Moerbeek Date: Mon, 3 Apr 2023 08:57:46 +0000 (+0200) Subject: Change default packet TTL to 24 hours X-Git-Tag: rec-4.9.0-alpha1~10^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F12709%2Fhead;p=thirdparty%2Fpdns.git Change default packet TTL to 24 hours --- diff --git a/pdns/recursordist/docs/settings.rst b/pdns/recursordist/docs/settings.rst index 4572674446..fce382f5f0 100644 --- a/pdns/recursordist/docs/settings.rst +++ b/pdns/recursordist/docs/settings.rst @@ -1582,10 +1582,14 @@ If an answer containing an NSEC3 record with more iterations is received, its DN ``packetcache-ttl`` ------------------- - Integer -- Default: 3600 +- Default: 86400 Maximum number of seconds to cache an item in the packet cache, no matter what the original TTL specified. +.. versionchanged:: 4.9.0 + + The default was changed from 3600 (1 hour) to 86400 (24 hours). + .. _setting-packetcache-negative-ttl: ``packetcache-negative-ttl`` diff --git a/pdns/recursordist/rec-main.cc b/pdns/recursordist/rec-main.cc index 4ea5166d23..6b84332ba2 100644 --- a/pdns/recursordist/rec-main.cc +++ b/pdns/recursordist/rec-main.cc @@ -2694,7 +2694,7 @@ int main(int argc, char** argv) ::arg().set("max-negative-ttl", "maximum number of seconds to keep a negative cached entry in memory") = "3600"; ::arg().set("max-cache-bogus-ttl", "maximum number of seconds to keep a Bogus (positive or negative) cached entry in memory") = "3600"; ::arg().set("max-cache-ttl", "maximum number of seconds to keep a cached entry in memory") = "86400"; - ::arg().set("packetcache-ttl", "maximum number of seconds to keep a cached entry in packetcache") = "3600"; + ::arg().set("packetcache-ttl", "maximum number of seconds to keep a cached entry in packetcache") = "86400"; ::arg().set("max-packetcache-entries", "maximum number of entries to keep in the packetcache") = "500000"; ::arg().set("packetcache-servfail-ttl", "maximum number of seconds to keep a cached servfail entry in packetcache") = "60"; ::arg().set("packetcache-negative-ttl", "maximum number of seconds to keep a cached NxDomain or NoData entry in packetcache") = "60";