From: Remi Gacogne Date: Tue, 17 Jan 2023 15:32:24 +0000 (+0100) Subject: dnsdist: Better documentation for `DNSQuestion:restart()` X-Git-Tag: dnsdist-1.8.0-rc1~86^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e22b2cd666852f655ff511f7fc2ea5c58050cc40;p=thirdparty%2Fpdns.git dnsdist: Better documentation for `DNSQuestion:restart()` --- diff --git a/pdns/dnsdistdist/docs/reference/dq.rst b/pdns/dnsdistdist/docs/reference/dq.rst index 02fc13f126..410318c0ff 100644 --- a/pdns/dnsdistdist/docs/reference/dq.rst +++ b/pdns/dnsdistdist/docs/reference/dq.rst @@ -398,7 +398,8 @@ DNSResponse object .. versionadded:: 1.8.0 - Discard the received response and restart the processing of the query, for example after selecting a different pool of servers: + Discard the received response and restart the processing of the query. For this function to be usable, the query should have been made restartable first, via :func:`DNSQuestion:setRestartable`. + For example, to restart the processing after selecting a different pool of servers: .. code-block:: Lua @@ -421,8 +422,6 @@ DNSResponse object addAction(AllRule(), LuaAction(makeQueryRestartable)) addResponseAction(AllRule(), LuaResponseAction(restartOnServFail)) - For this function to be usable, the query should have been made restartable first, via :func:`DNSQuestion:setRestartable`. - .. _DNSHeader: DNSHeader (``dh``) object