2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-28 13:08:06 +00:00

Update serve-stale config defaults

Change the serve-stale configuration defaults so that they match the
recommendations from RFC 8767.
This commit is contained in:
Matthijs Mekking 2020-12-08 15:58:45 +01:00
parent 06e4004bf0
commit e15a433b23
4 changed files with 26 additions and 10 deletions

View File

@ -1,3 +1,9 @@
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]
5559. [bug] The --with-maxminddb=PATH form of the build-time option 5559. [bug] The --with-maxminddb=PATH form of the build-time option
enabling support for libmaxminddb was not working enabling support for libmaxminddb was not working
correctly. This has been fixed. [GL #2366] correctly. This has been fixed. [GL #2366]

View File

@ -171,7 +171,7 @@ options {\n\
max-ncache-ttl 10800; /* 3 hours */\n\ max-ncache-ttl 10800; /* 3 hours */\n\
max-recursion-depth 7;\n\ max-recursion-depth 7;\n\
max-recursion-queries 100;\n\ max-recursion-queries 100;\n\
max-stale-ttl 43200; /* 12 hours */\n\ max-stale-ttl 86400; /* 1 day */\n\
message-compression yes;\n\ message-compression yes;\n\
min-ncache-ttl 0; /* 0 hours */\n\ min-ncache-ttl 0; /* 0 hours */\n\
min-cache-ttl 0; /* 0 seconds */\n\ min-cache-ttl 0; /* 0 seconds */\n\
@ -197,7 +197,7 @@ options {\n\
# sortlist <none>\n\ # sortlist <none>\n\
stale-answer-enable false;\n\ stale-answer-enable false;\n\
stale-refresh-time 30; /* 30 seconds */\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 false;\n\ stale-cache-enable false;\n\
synth-from-dnssec no;\n\ synth-from-dnssec no;\n\
# topology <none>\n\ # topology <none>\n\

View File

@ -1505,9 +1505,9 @@ default is used.
treated as ``unlimited``. treated as ``unlimited``.
``stale-answer-ttl`` ``stale-answer-ttl``
This specifies the TTL to be returned on stale answers. The default is 1 This specifies the TTL to be returned on stale answers. The default is 30
second. The minimum allowed is also 1 second; a value of 0 is seconds. The minimum allowed is 1 second; a value of 0 is updated silently
updated silently to 1 second. to 1 second.
For stale answers to be returned, they must be enabled, either in the For stale answers to be returned, they must be enabled, either in the
configuration file using ``stale-answer-enable`` or via configuration file using ``stale-answer-enable`` or via
@ -3334,11 +3334,11 @@ Tuning
``max-stale-ttl`` ``max-stale-ttl``
If retaining stale RRsets in cache is enabled, and returning of stale cached If retaining stale RRsets in cache is enabled, and returning of stale cached
answers is also enabled, ``max-stale-ttl`` sets the maximum time answers is also enabled, ``max-stale-ttl`` sets the maximum time for which
for which the server retains records past their normal expiry to the server retains records past their normal expiry to return them as stale
return them as stale records, when the servers for those records are records, when the servers for those records are not reachable. The default
not reachable. The default is 12 hours. The minimum allowed is 1 is 1 day. The minimum allowed is 1 second; a value of 0 is updated silently
second; a value of 0 is updated silently to 1 second. to 1 second.
For stale answers to be returned, the retaining of them in cache must be For stale answers to be returned, the retaining of them in cache must be
enabled via the configuration option ``stale-cache-enable``, and returning enabled via the configuration option ``stale-cache-enable``, and returning

View File

@ -42,6 +42,16 @@ Feature Changes
signal that the entire DS RRset at the parent must be removed, as signal that the entire DS RRset at the parent must be removed, as
described in RFC 8078. [GL #1750] described in RFC 8078. [GL #1750]
- 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]
- Adjust the ``max-recursion-queries`` default from 75 to 100. Since the
queries sent towards root and TLD servers are now included in the
count (as a result of the fix for CVE-2020-8616), ``max-recursion-queries``
has a higher chance of being exceeded by non-attack queries, which is the
main reason for increasing its default value. [GL #2305]
- When using the ``unixtime`` or ``date`` method to update the SOA - When using the ``unixtime`` or ``date`` method to update the SOA
serial number, ``named`` and ``dnssec-signzone`` silently fell back to serial number, ``named`` and ``dnssec-signzone`` silently fell back to
the ``increment`` method to prevent the new serial number from being the ``increment`` method to prevent the new serial number from being