X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fpdns.git;a=blobdiff_plain;f=pdns%2Fdnsdistdist%2Fdocs%2Freference%2Fconfig.rst;h=9aa47383f8fecc464b9e16ffa6098a35cba6e4cd;hp=14a56106e48fdbd8456386273ccc1c82db5312b3;hb=bb16ab3bf6739a646772100cd06ce15ed379b2ea;hpb=adfdcc4b960377224f668c9853f142f19d25f466 diff --git a/pdns/dnsdistdist/docs/reference/config.rst b/pdns/dnsdistdist/docs/reference/config.rst index 14a56106e4..9aa47383f8 100644 --- a/pdns/dnsdistdist/docs/reference/config.rst +++ b/pdns/dnsdistdist/docs/reference/config.rst @@ -227,6 +227,12 @@ Control Socket, Console and Webserver Returns true while the console client is parsing the configuration. +.. function:: inConfigCheck() + + .. versionadded:: 1.5.0 + + Returns true while the configuration is being checked, ie when run with ``--check-config``. + .. function:: makeKey() Generate and print an encryption key. @@ -1027,6 +1033,21 @@ faster than the existing rules. :param int action: The action to take when the dynamic block matches, see :ref:`here `. (default to the one set with :func:`setDynBlocksAction`) :param int warningRate: If set to a non-zero value, the rate above which a warning message will be issued and a no-op block inserted + .. method:: DynBlockRulesGroup:setRCodeRatio(rcode, ratio, seconds, reason, blockingTime, minimumNumberOfResponses [, action [, warningRate]]) + + .. versionadded:: 1.5.0 + + Adds a rate-limiting rule for the ratio of responses of code ``rcode`` over the total number of responses for a given client. + + :param int rcode: The response code + :param int ratio: Ratio of responses per second of the given rcode over the total number of responses for this client to exceed + :param int seconds: Number of seconds the ratio has been exceeded + :param string reason: The message to show next to the blocks + :param int blockingTime: The number of seconds this block to expire + :param int minimumNumberOfResponses: How many total responses is required for this rule to apply + :param int action: The action to take when the dynamic block matches, see :ref:`here `. (default to the one set with :func:`setDynBlocksAction`) + :param int warningRatio: If set to a non-zero value, the ratio above which a warning message will be issued and a no-op block inserted + .. method:: DynBlockRulesGroup:setQTypeRate(qtype, rate, seconds, reason, blockingTime [, action [, warningRate]]) .. versionchanged:: 1.3.3