From: Remi Gacogne Date: Mon, 6 Oct 2025 14:17:49 +0000 (+0200) Subject: dnsdist: Remove a very outdated example of how to do split-setup X-Git-Tag: rec-5.4.0-alpha1~224^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c105aabc06997755db00eac346b74767457672f;p=thirdparty%2Fpdns.git dnsdist: Remove a very outdated example of how to do split-setup Signed-off-by: Remi Gacogne --- diff --git a/pdns/dnsdistdist/docs/guides/serverselection.rst b/pdns/dnsdistdist/docs/guides/serverselection.rst index 3b7d717d25..9a55debfa6 100644 --- a/pdns/dnsdistdist/docs/guides/serverselection.rst +++ b/pdns/dnsdistdist/docs/guides/serverselection.rst @@ -123,24 +123,6 @@ Since 2.1.0 this should instead be:: Incidentally, this is similar to setting: ``setServerPolicy(roundrobin)`` which uses the C++ based roundrobin policy. -Or:: - - newServer("192.168.1.2") - newServer({address="8.8.4.4", pool="numbered"}) - - function splitSetup(servers, dq) - if(string.match(dq.qname:toString(), "%d")) - then - print("numbered pool") - return leastOutstanding.policy(getPoolServers("numbered"), dq) - else - print("standard pool") - return leastOutstanding.policy(servers, dq) - end - end - - setServerPolicyLua("splitsetup", splitSetup) - A faster, FFI version is also available since 1.5.0: .. code-block:: lua