From: Peter van Dijk Date: Tue, 10 Aug 2021 07:52:47 +0000 (+0200) Subject: dnsdist docs: clarify grepq num parameter X-Git-Tag: dnsdist-1.7.0-alpha1~68^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F10640%2Fhead;p=thirdparty%2Fpdns.git dnsdist docs: clarify grepq num parameter --- 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)