From 1e3041c07f25e9b9bf5ec71b99a77728a1c86dcd Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Mon, 3 Apr 2023 10:57:46 +0200 Subject: [PATCH] Change default packet TTL to 24 hours --- pdns/recursordist/docs/settings.rst | 6 +++++- pdns/recursordist/rec-main.cc | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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"; -- 2.47.2