]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add CHANGES and release notes for GL #1712 and GL #1829
authorOndřej Surý <ondrej@isc.org>
Thu, 30 Jul 2020 13:10:49 +0000 (15:10 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Wed, 5 Aug 2020 07:09:16 +0000 (09:09 +0200)
(cherry picked from commit dd622751523b4744be06d1050b573a4b3d11e49f)

CHANGES
bin/named/server.c
doc/notes/notes-current.rst

diff --git a/CHANGES b/CHANGES
index a7a85a675635dee722433170585cace224ad56b6..15ed661dac1085488fe5403bf12ca08d2b33a586 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,10 @@
+5484.  [func]          Expire the 0 TTL RRSet quickly rather using them for
+                       stale answers. [GL #1829]
+
+5483.  [func]          Keeping "stale" answers in cache has been disabled by
+                       default and can be re-enabled with a new configuration
+                       option "stale-cache-enable". [GL #1712]
+
 5482.  [bug]           BIND 9 would fail to bind to IPv6 addresses in a
                        tentative state when a new IPv6 address was added to the
                        system, but the Duplicate Address Detection (DAD)
index c0b29fd2060939757f4f2f536d6787ec151b791b..b6e17b3a0a2c8d77cc74cdae3f585b5de4378ff6 100644 (file)
@@ -4363,6 +4363,10 @@ configure_view(dns_view_t *view, dns_viewlist_t *viewlist, cfg_obj_t *config,
                INSIST(result == ISC_R_SUCCESS);
                max_stale_ttl = ISC_MAX(cfg_obj_asduration(obj), 1);
        }
+       /*
+        * If 'stale-cache-enable' is false, max_stale_ttl is set to 0,
+        * meaning keeping stale RRsets in cache is disabled.
+        */
 
        obj = NULL;
        result = named_config_get(maps, "stale-answer-enable", &obj);
index 7ee6470292188d60409fec6536c99f1cc91135ac..25cb1648e8406a02ff833c738e207c5c2626ff10 100644 (file)
@@ -26,6 +26,9 @@ New Features
 
 - None.
 
+- A new configuration option ``stale-cache-enable`` has been introduced to
+  enable or disable the keeping of stale answers in cache. [GL #1712]
+
 Feature Changes
 ~~~~~~~~~~~~~~~
 
@@ -36,6 +39,11 @@ Feature Changes
   prevents interruption to query resolution when the hash tables need to be
   increased in size. [GL #1775]
 
+- Keeping stale answers in cache has been disabled by default.
+
+- The resource records received with 0 TTL are no longer kept in the cache
+  to be used for stale answers. [GL #1829]
+
 Bug Fixes
 ~~~~~~~~~