]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Document setAllowEmptyResponse()
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 21 Feb 2019 13:43:09 +0000 (14:43 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 21 Feb 2019 13:43:09 +0000 (14:43 +0100)
pdns/dnsdistdist/docs/reference/config.rst

index 694b4b7ef4f53f29d1c1ddee80029350d4fc5ced..09ae786486b215c6d831194d21940c317e067b34 100644 (file)
@@ -996,6 +996,12 @@ Other functions
   If this function exists, it is called every second to so regular tasks.
   This can be used for e.g. :doc:`Dynamic Blocks <../guides/dynblocks>`.
 
+.. function: setAllowEmptyResponse()
+
+  .. versionadded:: 1.4.0
+
+  Set to true (defaults to false) to allow empty responses (qdcount=0) with a NoError or NXDomain rcode (default) from backends. dnsdist drops these responses by default because it can't match them against the initial query since they don't contain the qname, qtype and qclass, and therefore the risk of collision is much higher than with regular responses.
+
 TLSContext
 ~~~~~~~~~~