]> granicus.if.org Git - pdns/commitdiff
update docs with latest features
authorbert hubert <bert.hubert@netherlabs.nl>
Fri, 27 Feb 2015 15:14:48 +0000 (16:14 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Fri, 27 Feb 2015 15:14:48 +0000 (16:14 +0100)
pdns/README-dnsdist.md

index a111ab20e454c5277d658cc47fe95efea438f68a..065c2e1539c993fa64c497f27ead968f6d180587 100644 (file)
@@ -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