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)
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
~~~~~~~~~~~~~~~