From: Marlin Cremers Date: Wed, 29 May 2019 14:32:06 +0000 (+0200) Subject: dnsdist: Move PoolAvailableRule to rules section X-Git-Tag: dnsdist-1.4.0-beta1~14^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F7863%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Move PoolAvailableRule to rules section --- diff --git a/pdns/dnsdistdist/docs/rules-actions.rst b/pdns/dnsdistdist/docs/rules-actions.rst index 746776da74..73398baa67 100644 --- a/pdns/dnsdistdist/docs/rules-actions.rst +++ b/pdns/dnsdistdist/docs/rules-actions.rst @@ -521,16 +521,6 @@ Functions for manipulating Self-Answered Response Rules: Move the last self answered response rule to the first position. -Function for pool related rules - -.. function:: PoolAvailableRule(poolname) - - .. versionadded:: 1.3.3 - - Check whether a pool has any servers available to handle queries - - :param string poolname: Pool to check - .. _RulesIntro: Matching Packets (Selectors) @@ -796,6 +786,21 @@ These ``DNSRule``\ s be one of the following items: Matches if the query has trailing data. +.. function:: PoolAvailableRule(poolname) + + .. versionadded:: 1.3.3 + + Check whether a pool has any servers available to handle queries + + .. code-block:: Lua + + --- Send queries to default pool when servers are available + addAction(PoolAvailableRule(""), PoolAction("")) + --- Send queries to fallback pool if not + addAction(AllRule(), PoolAction("fallback")) + + :param string poolname: Pool to check + Combining Rules ~~~~~~~~~~~~~~~