]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Update serve-stale config defaults
authorMatthijs Mekking <matthijs@isc.org>
Tue, 8 Dec 2020 14:58:45 +0000 (15:58 +0100)
committerMatthijs Mekking <matthijs@isc.org>
Fri, 15 Jan 2021 09:38:30 +0000 (10:38 +0100)
Change the serve-stale configuration defaults so that they match the
recommendations from RFC 8767.

(cherry picked from commit e15a433b2317c9d69cec87cff09d9abc2dea7423)

CHANGES
bin/named/config.c
doc/arm/reference.rst
doc/notes/notes-current.rst

diff --git a/CHANGES b/CHANGES
index 0a06b0c765538b92f6ef7957791d25fe45c4be26..ceeaa74273f96ce039c0a43c04b5204e78ebea9d 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,12 @@
                        of the DNSKEY signature validity. This is now fixed.
                        [GL #2383]
 
+5560.  [func]          The default value of "max-stale-ttl" has been changed
+                       from 12 hours to 1 day and the default value of
+                       "stale-answer-ttl" has been changed from 1 second to
+                       30 seconds, following RFC 8767 recommendations.
+                       [GL #2248]
+
 5456.  [func]          Added "primaries" as a synonym for "masters" in
                        named.conf, and "primary-only" as a synonym for
                        "master-only" in the parameters to "notify", to bring
index 85fdcb8ed38fd34fe51a75bf97de7b693898f08b..210ac8bde670738480ba6a9d0d173c3ef47595c6 100644 (file)
@@ -169,7 +169,7 @@ options {\n\
        max-ncache-ttl 10800; /* 3 hours */\n\
        max-recursion-depth 7;\n\
        max-recursion-queries 100;\n\
-       max-stale-ttl 43200; /* 12 hours */\n\
+       max-stale-ttl 86400; /* 1 day */\n\
        message-compression yes;\n\
        min-ncache-ttl 0; /* 0 hours */\n\
        min-cache-ttl 0; /* 0 seconds */\n\
@@ -195,7 +195,7 @@ options {\n\
 #      sortlist <none>\n\
        stale-answer-enable false;\n\
        stale-refresh-time 30; /* 30 seconds */\n\
-       stale-answer-ttl 1; /* 1 second */\n\
+       stale-answer-ttl 30; /* 30 seconds */\n\
        stale-cache-enable true;\n\
        synth-from-dnssec no;\n\
 #      topology <none>\n\
index ece8b6367fa27bfdb581f7934077a302ba51daca..8d93ef91371ddf66cf550f09e198edce5842d383 100644 (file)
@@ -1512,9 +1512,9 @@ default is used.
    treated as ``unlimited``.
 
 ``stale-answer-ttl``
-   This specifies the TTL to be returned on stale answers. The default is 1
-   second. The minimum allowed is also 1 second; a value of 0 is
-   updated silently to 1 second.
+   This specifies the TTL to be returned on stale answers. The default is 30
+   seconds. The minimum allowed is 1 second; a value of 0 is updated silently
+   to 1 second.
 
    For stale answers to be returned, they must be enabled, either in the
    configuration file using ``stale-answer-enable`` or via
@@ -3322,11 +3322,11 @@ Tuning
 
 ``max-stale-ttl``
    If retaining stale RRsets in cache is enabled, and returning of stale cached
-   answers is also enabled, ``max-stale-ttl`` sets the maximum time
-   for which the server retains records past their normal expiry to
-   return them as stale records, when the servers for those records are
-   not reachable. The default is 12 hours. The minimum allowed is 1
-   second; a value of 0 is updated silently to 1 second.
+   answers is also enabled, ``max-stale-ttl`` sets the maximum time for which
+   the server retains records past their normal expiry to return them as stale
+   records, when the servers for those records are not reachable. The default
+   is 1 day. The minimum allowed is 1 second; a value of 0 is updated silently
+   to 1 second.
 
    For stale answers to be returned, the retaining of them in cache must be
    enabled via the configuration option ``stale-cache-enable``, and returning
index 03077be32daae60f1486631b2038fa6c3c39918b..5d6403b067cfa60455e65d927bb2406f82a10b37 100644 (file)
@@ -54,6 +54,10 @@ Feature Changes
   to distribute incoming queries among multiple threads on systems which
   lack support for load-balanced sockets (except Windows). [GL #2137]
 
+- The default value of ``max-stale-ttl`` has been changed from 12 hours to 1
+  day and the default value of ``stale-answer-ttl`` has been changed from 1
+  second to 30 seconds, following RFC 8767 recommendations. [GL #2248]
+
 - When using the ``unixtime`` or ``date`` method to update the SOA
   serial number, ``named`` and ``dnssec-signzone`` silently fell back to
   the ``increment`` method to prevent the new serial number from being