]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix rndc dumpdb -expired for stuck cache contents
authorMatthijs Mekking <matthijs@isc.org>
Wed, 20 Jul 2022 09:22:01 +0000 (11:22 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Tue, 26 Jul 2022 08:02:15 +0000 (10:02 +0200)
commitf8ad7501dcc3a4008764c5bdd78ae65622c8b905
treef15435f0bc3f92221b3d00ae35bf139cf9f7a742
parent24bb1d109ca17dc7ad368e41c5d8935c256fab39
Fix rndc dumpdb -expired for stuck cache contents

The command 'rndc dumpdb -expired' will include expired RRsets in the
output, but only for the RBTDB_VIRTUAL time (of 5 minutes). This means
that if there is a cache cleaning problem and contents are not cleaned
up, the rndc command has little diagnostic value. Fix this by including
all RRsets in the dumpdb output if the '-expired' flag is set.

(cherry picked from commit 930ba2c914a0abc07fd087d663a7bfb57850d4ca)
lib/dns/rbtdb.c