]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add stale-cache-enable option and disable serve-stable by default
authorOndřej Surý <ondrej@isc.org>
Tue, 21 Jul 2020 08:38:55 +0000 (10:38 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Tue, 4 Aug 2020 08:50:31 +0000 (10:50 +0200)
commitce53db34d601b107d268889893e3f40693bd8d35
treec74b5486a3075f2dfff2727e65b069e640c4d63f
parentf2040a00398514b12e52eaa9c9ff1f62308d63c6
Add stale-cache-enable option and disable serve-stable by default

The current serve-stale implementation in BIND 9 stores all received
records in the cache for a max-stale-ttl interval (default 12 hours).

This allows DNS operators to turn the serve-stale answers in an event of
large authoritative DNS outage.  The caching of the stale answers needs
to be enabled before the outage happens or the feature would be
otherwise useless.

The negative consequence of the default setting is the inevitable
cache-bloat that happens for every and each DNS operator running named.

In this MR, a new configuration option `stale-cache-enable` is
introduced that allows the operators to selectively enable or disable
the serve-stale feature of BIND 9 based on their decision.

The newly introduced option has been disabled by default,
e.g. serve-stale is disabled in the default configuration and has to be
enabled if required.
16 files changed:
bin/named/config.c
bin/named/named.conf.rst
bin/named/server.c
bin/tests/system/serve-stale/managed-keys.bind.jnl [new file with mode: 0644]
bin/tests/system/serve-stale/ns1/named1.conf.in
bin/tests/system/serve-stale/ns1/named2.conf.in
bin/tests/system/serve-stale/ns3/named.conf.in
bin/tests/system/serve-stale/ns4/named.conf.in
bin/tests/system/serve-stale/setup.sh
bin/tests/system/serve-stale/tests.sh
doc/arm/reference.rst
doc/man/named.conf.5in
doc/misc/options
doc/misc/options.active
doc/misc/options.grammar.rst
lib/isccfg/namedconf.c