]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: explicit documentation about sets for ifportup() 12669/head
authorCharles-Henri Bruyand <charles-henri.bruyand@open-xchange.com>
Tue, 21 Mar 2023 17:07:55 +0000 (18:07 +0100)
committerCharles-Henri Bruyand <charles-henri.bruyand@open-xchange.com>
Tue, 21 Mar 2023 17:07:55 +0000 (18:07 +0100)
docs/lua-records/index.rst

index c3e08efbcde223dfcec38475b448e660b609ba8f..66d0b82876cafb03f0ec90d1d25db82e9882cc3c 100644 (file)
@@ -49,6 +49,14 @@ addresses listen on port 443.
 If either IP address stops listening, only the other address will be
 returned. If all IP addresses are down, all candidates are returned.
 
+You can also provide multiple sets of IP addresses to prioritize a set over the
+rest. If an IP address from the first set is available, it will be returned. If
+no addresses work in the first set, the second set is tried.
+
+For example::
+
+     www    IN    LUA    A    "ifportup(443, {{'192.0.2.1', '192.0.2.2'}, {'192.0.3.1'}})"
+
 Because DNS queries require rapid answers, server availability is not checked
 synchronously. In the background, a process periodically determines if IP
 addresses mentioned in availability rules are, in fact, available.