From 624b08295921f2ea087a34c607e464fd369cf6c6 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Tue, 10 Aug 2021 09:52:47 +0200 Subject: [PATCH] dnsdist docs: clarify grepq num parameter --- pdns/dnsdistdist/docs/reference/config.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pdns/dnsdistdist/docs/reference/config.rst b/pdns/dnsdistdist/docs/reference/config.rst index 101d68fc15..29913fa6d6 100644 --- a/pdns/dnsdistdist/docs/reference/config.rst +++ b/pdns/dnsdistdist/docs/reference/config.rst @@ -932,7 +932,9 @@ Status, Statistics and More .. function:: grepq(selector[, num]) grepq(selectors[, num]) - Prints the last ``num`` queries matching ``selector`` or ``selectors``. + Prints the last ``num`` queries and responses matching ``selector`` or ``selectors``. + Queries and responses are accounted in separate ring buffers, and answers from the packet cache are not stored in the response ring buffer. + Therefore, the ``num`` queries and ``num`` responses in the output may not always match up. The selector can be: @@ -942,7 +944,7 @@ Status, Statistics and More :param str selector: Select queries based on this property. :param {str} selectors: A lua table of selectors. Only queries matching all selectors are shown - :param int num: Show a maximum of ``num`` recent queries, default is 10. + :param int num: Show a maximum of ``num`` recent queries+responses, default is 10. .. function:: setVerboseHealthChecks(verbose) -- 2.47.2