aboutsummaryrefslogtreecommitdiff
path: root/util/config_file.h
diff options
context:
space:
mode:
Diffstat (limited to 'util/config_file.h')
-rw-r--r--util/config_file.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/util/config_file.h b/util/config_file.h
index 18910bee39fc..c7c9a0a48e6b 100644
--- a/util/config_file.h
+++ b/util/config_file.h
@@ -565,6 +565,10 @@ struct config_file {
size_t ip_ratelimit_size;
/** ip_ratelimit factor, 0 blocks all, 10 allows 1/10 of traffic */
int ip_ratelimit_factor;
+ /** ratelimit backoff, when on, if the limit is reached it is
+ * considered an attack and it backs off until 'demand' decreases over
+ * the RATE_WINDOW. */
+ int ip_ratelimit_backoff;
/** ratelimit for domains. 0 is off, otherwise qps (unless overridden) */
int ratelimit;
@@ -578,6 +582,11 @@ struct config_file {
struct config_str2list* ratelimit_below_domain;
/** ratelimit factor, 0 blocks all, 10 allows 1/10 of traffic */
int ratelimit_factor;
+ /** ratelimit backoff, when on, if the limit is reached it is
+ * considered an attack and it backs off until 'demand' decreases over
+ * the RATE_WINDOW. */
+ int ratelimit_backoff;
+
/** number of retries on outgoing queries */
int outbound_msg_retry;
/** minimise outgoing QNAME and hide original QTYPE if possible */
@@ -745,6 +754,8 @@ struct config_auth {
/** Always reply with this CNAME target if the cname override action is
* used */
char* rpz_cname;
+ /** signal nxdomain block with unset RA */
+ int rpz_signal_nxdomain_ra;
/** Check ZONEMD records for this zone */
int zonemd_check;
/** Reject absence of ZONEMD records, zone must have one */