From 4aa5116059303e504ed2ae658f66e94e3a58c083 Mon Sep 17 00:00:00 2001 From: Marlin Cremers Date: Wed, 29 May 2019 16:32:06 +0200 Subject: [PATCH] dnsdist: Move PoolAvailableRule to rules section --- pdns/dnsdistdist/docs/rules-actions.rst | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/pdns/dnsdistdist/docs/rules-actions.rst b/pdns/dnsdistdist/docs/rules-actions.rst index 746776da7..73398baa6 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 ~~~~~~~~~~~~~~~ -- 2.40.0