From: bert hubert Date: Fri, 27 Feb 2015 15:14:48 +0000 (+0100) Subject: update docs with latest features X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~88^2~108 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2d1d4a16d4ba3e38ff4de68f7df1a4fe2af91450;p=pdns update docs with latest features --- diff --git a/pdns/README-dnsdist.md b/pdns/README-dnsdist.md index a111ab20e..065c2e153 100644 --- a/pdns/README-dnsdist.md +++ b/pdns/README-dnsdist.md @@ -129,7 +129,24 @@ More power ---------- More powerful things can be achieved by defining a function called `blockFilter()` in the configuration file, which can decide to drop traffic -on any reason it wants. +on any reason it wants. If you return 'true' from there, the query will get +blocked. + +A demo on how to do this and many other things can be found on +https://github.com/ahupowerdns/pdns/blob/dnsname/pdns/dnsdistconf.lua + +ANY or whatever to TC +--------------------- +The `blockFilter()` also gets passed read/writable copy of the DNS Header. +If you invoke setQR(1) on that, dnsdist knows you turned the packet into +a response, and will send the answer directly to the original client. + +If you also called setTC(1), this will tell the remote client to move to +TCP/IP, and in this way you can implement ANY-to-TCP even for downstream +servers that lack this feature. + +Dynamic load balancing +---------------------- The default load balancing policy is called 'firstAvailable', which means the first server that has not exceeded its QPS limit gets the traffic. If