]> granicus.if.org Git - pdns/commitdiff
docs: document setVerboseHealthChecks()
authorCharles-Henri Bruyand <charles-henri.bruyand@open-xchange.com>
Tue, 8 May 2018 10:43:53 +0000 (12:43 +0200)
committerCharles-Henri Bruyand <charles-henri.bruyand@open-xchange.com>
Tue, 8 May 2018 10:43:53 +0000 (12:43 +0200)
pdns/dnsdistdist/docs/guides/downstreams.rst
pdns/dnsdistdist/docs/guides/webserver.rst
pdns/dnsdistdist/docs/reference/config.rst

index 2c2b50af49b64642a056e782a66c3f170f53a7ee..e72e09a20e295ef7ecfdc5b85ff0ac8b11c45ba0 100644 (file)
@@ -39,6 +39,8 @@ e.g.::
 
   newServer({address="192.0.2.1", checkType="AAAA", checkType=DNSClass.CHAOS, checkName="a.root-servers.net.", mustResolve=true})
 
+You can turn on logging of health check errors using the :func:`setVerboseHealthChecks` function.
+
 Since the 1.3.0 release, the ``checkFunction`` option is also supported, taking a ``Lua`` function as parameter. This function receives a DNSName, two integers and a ``DNSHeader`` object (:ref:`DNSHeader`)
 representing the QName, QType and QClass of the health check query as well as the DNS header, as they are defined before the function was called. The function must return a DNSName and two integers
 representing the new QName, QType and QClass, and can directly modify the ``DNSHeader`` object.
index 9bfc57216b4d71d6f07c8fe8cf3b83339494bb07..367347a6ee069721374c56bb975a21bef8bb88a0 100644 (file)
@@ -149,7 +149,7 @@ JSON Objects
   - ``tcp-send-timeout``
   - ``truncate-tc``
   - ``verbose``
-  - ``verbose-health-checks``
+  - ``verbose-health-checks`` The currently configured :func:`setVerboseHealthChecks`
 
   :property string name: The name of the setting
   :property string type: "ConfigSetting"
index 878fca3716b3fce612a3da66e7a0f48515ad07c8..55a816911bc609f140c7b8ec08ecdc516f57cc83 100644 (file)
@@ -626,6 +626,12 @@ Status, Statistics and More
   :param {str} selectors: A lua table of selectors. Only queries matching all selectors are shown
   :param int num: Show a maximum of ``num`` recent queries, default is 10.
 
+.. function:: setVerboseHealthChecks(verbose)
+
+  Set whether health check errors should be logged. This is turned off by default.
+
+  :param bool verbose: Set to true if you want to enable health check errors logging
+
 .. function:: showBinds()
 
   Print a list of all the current addresses and ports dnsdist is listening on, also called ``frontends``