bind9/lib/ns
Kevin Chen 3924f78748 Several serve-stale improvements
Commit a83c8cb0af updated masterdump so
that stale records in "rndc dumpdb" output no longer shows 0 TTLs.  In
this commit we change the name of the `rdataset->stale_ttl` field to
`rdataset->expired` to make its purpose clearer, and set it to zero in
cases where it's unused.

Add 'rbtdb->serve_stale_ttl' to various checks so that stale records
are not purged from the cache when they've been stale for RBTDB_VIRTUAL
(300) seconds.

Increment 'ns_statscounter_usedstale' when a stale answer is used.

Note: There was a question of whether 'overmem_purge' should be
purging ancient records, instead of stale ones.  It is left as purging
stale records, since stale records could take up the majority of the
cache.

This submission is copyrighted Akamai Technologies, Inc. and provided
under an MPL 2.0 license.

This commit was originally authored by Kevin Chen, and was updated by
Matthijs Mekking to match recent serve-stale developments.

(cherry picked from commit 0cdf85d204)
2021-05-30 12:30:36 -07:00
..
include clean up query correctly if already answered by serve-stale 2021-05-27 12:09:43 -07:00
tests backport of netmgr/taskmgr to 9.16 2021-05-14 12:52:48 +02:00
win32 Use -release instead of -version-info for internal library SONAMEs 2021-01-25 15:28:09 +01:00
client.c Add missing initialisations 2021-05-26 17:19:06 +02:00
hooks.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
interfacemgr.c Refactor the interface handling in the netmgr 2021-05-26 10:09:47 +02:00
Kyuafile regen master 2017-12-29 01:44:18 +00:00
lib.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
listenlist.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
log.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
Makefile.in Remove custom ISC SPNEGO implementation 2021-04-01 10:42:32 +02:00
notify.c change from isc_nmhandle_ref/unref to isc_nmhandle attach/detach 2020-10-01 18:09:35 +02:00
query.c Several serve-stale improvements 2021-05-30 12:30:36 -07:00
server.c Change the default ENDS buffer size to 1232 for DNS Flag Day 2020 2020-10-06 09:35:20 +02:00
sortlist.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
stats.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
update.c Reduce nsec3 max iterations to 150 2021-04-29 17:44:46 +10:00
version.c Use -release instead of -version-info for internal library SONAMEs 2021-01-25 15:28:09 +01:00
xfrout.c use a fixedname buffer in dns_message_gettempname() 2021-05-22 07:13:57 +02:00