Skip to content

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.

To do so, a new special value of 1 is introduced. If now is set to 1, it will be taken as the current time, as well as an indication that expired RRsets has to be included in the iterator.

Closes #3462 (closed)

Edited by Matthijs Mekking

Merge request reports