]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
add a configuration option for the update quota
authorEvan Hunt <each@isc.org>
Thu, 1 Sep 2022 23:22:46 +0000 (16:22 -0700)
committerMichał Kępień <michal@isc.org>
Thu, 12 Jan 2023 11:02:35 +0000 (12:02 +0100)
add an "update-quota" option to configure the update quota.

(cherry picked from commit f57758a7303ad0034ff2ff08eaaf2ef899630f19)

bin/named/config.c
bin/named/server.c
bin/tests/system/checkconf/good.conf
doc/arm/reference.rst
doc/man/named.conf.5in
doc/misc/options
lib/isccfg/namedconf.c

index 86bade216ef683d739dcd52238639bf31c5468ff..b2b802806b20324790f8d691008083ebc49170a3 100644 (file)
@@ -137,6 +137,7 @@ options {\n\
        trust-anchor-telemetry yes;\n\
        udp-receive-buffer 0;\n\
        udp-send-buffer 0;\n\
+       update-quota 100;\n\
 \n\
        /* view */\n\
        allow-new-zones no;\n\
index d7b5273d9ced07795a26b9d0275dcef82c8daf9a..3d63ee239bb4e38114055f847642fecdbca02e5e 100644 (file)
@@ -8685,6 +8685,7 @@ load_configuration(const char *filename, named_server_t *server,
        configure_server_quota(maps, "tcp-clients", &server->sctx->tcpquota);
        configure_server_quota(maps, "recursive-clients",
                               &server->sctx->recursionquota);
+       configure_server_quota(maps, "update-quota", &server->sctx->updquota);
 
        max = isc_quota_getmax(&server->sctx->recursionquota);
        if (max > 1000) {
index 93939ff3c837dda5bc57567b2f6a444d7e40a26e..f8d04089f0bfd6d26b29077b183703a470e174f1 100644 (file)
@@ -72,6 +72,7 @@ options {
        recursive-clients 3000;
        serial-query-rate 100;
        server-id none;
+       update-quota 200;
        check-names primary warn;
        check-names secondary ignore;
        max-cache-size 20000000000000;
index aec0fb6368b97f0116b24f3577a40e879d28b9a6..ad05f0cef2defcab02eef30728b211df5a03dbfc 100644 (file)
@@ -3979,6 +3979,14 @@ system.
    value as :any:`tcp-keepalive-timeout`. This value can be updated at
    runtime by using :option:`rndc tcp-timeouts`.
 
+.. namedconf:statement:: update-quota
+   :tags: server
+   :short: Specifies the maximum number of concurrent DNS UPDATE messages that can be processed by the server.
+
+   This is the maximum number of simultaneous DNS UPDATE messages that
+   the server will accept for updating local authoritiative zones or
+   forwarding to a primary server. The default is ``100``.
+
 .. _intervals:
 
 Periodic Task Intervals
index 97f970acdfa0a5f5dd5ebdb8d91ac8752f79d919..e04143d8ba7ae2e04c6d3f246faa2409f7ee77a6 100644 (file)
@@ -367,6 +367,7 @@ options {
        udp\-receive\-buffer <integer>;
        udp\-send\-buffer <integer>;
        update\-check\-ksk <boolean>;
+       update\-quota <integer>;
        use\-alt\-transfer\-source <boolean>; // deprecated
        use\-v4\-udp\-ports { <portrange>; ... };
        use\-v6\-udp\-ports { <portrange>; ... };
index a15ba67a691ea5bb9d559f149634da41b3a6f29c..7ca815617f8228421bae20b207d8cd6583067977 100644 (file)
@@ -310,6 +310,7 @@ options {
        udp-receive-buffer <integer>;
        udp-send-buffer <integer>;
        update-check-ksk <boolean>;
+       update-quota <integer>;
        use-alt-transfer-source <boolean>; // deprecated
        use-v4-udp-ports { <portrange>; ... };
        use-v6-udp-ports { <portrange>; ... };
index 5409a4ac49a87a942b48658afb89d5ac9d273649..9b37671230e5f6fb8523e0cb26710a8e6b9ab309 100644 (file)
@@ -1342,6 +1342,7 @@ static cfg_clausedef_t options_clauses[] = {
        { "treat-cr-as-space", NULL, CFG_CLAUSEFLAG_ANCIENT },
        { "udp-receive-buffer", &cfg_type_uint32, 0 },
        { "udp-send-buffer", &cfg_type_uint32, 0 },
+       { "update-quota", &cfg_type_uint32, 0 },
        { "use-id-pool", NULL, CFG_CLAUSEFLAG_ANCIENT },
        { "use-ixfr", NULL, CFG_CLAUSEFLAG_ANCIENT },
        { "use-v4-udp-ports", &cfg_type_bracketed_portlist, 0 },