]> 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 10:52:48 +0000 (11:52 +0100)
add an "update-quota" option to configure the update quota.

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

index bd45384a249c4275ce0901c2f68c4dcfd72727ae..5051f3c1ac90580600a49d5ea3bf32b95b693205 100644 (file)
@@ -131,6 +131,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 3be36685ae5c974fa4c39a5b2f5bd82bad5ee2e8..f6b95ccdf0be64a35074bdc790da7686ab53d98a 100644 (file)
@@ -8518,6 +8518,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 8ecf392063bca6498524780e78700abf544d7f86..080914a98e1f78d55f0056b8b024bf9c3842449c 100644 (file)
@@ -69,6 +69,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 a106b5e10df867c4afc4f0470354f9d409f41995..cea98357b0603803d1814233376361c26249d226 100644 (file)
@@ -3896,6 +3896,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 16ea9e48e75ccf2a27e148ab02f86b17bf05d621..6c3f026a132d4097e16414e66c86107bf90079c5 100644 (file)
@@ -360,6 +360,7 @@ options {
        udp\-receive\-buffer <integer>;
        udp\-send\-buffer <integer>;
        update\-check\-ksk <boolean>;
+       update\-quota <integer>;
        use\-v4\-udp\-ports { <portrange>; ... };
        use\-v6\-udp\-ports { <portrange>; ... };
        v6\-bias <integer>;
index ed8cdace5893c8bc2550b02d6653f60e7166fd5e..f6a8c3cc73010181e24330c00d8b0a23cb519d3e 100644 (file)
@@ -303,6 +303,7 @@ options {
        udp-receive-buffer <integer>;
        udp-send-buffer <integer>;
        update-check-ksk <boolean>;
+       update-quota <integer>;
        use-v4-udp-ports { <portrange>; ... };
        use-v6-udp-ports { <portrange>; ... };
        v6-bias <integer>;
index 6178b81f4e7534006b61efa5c25a63ff2c2191df..0ceead9e19ce19bc31b9e93ab9a3679779a0f3b3 100644 (file)
@@ -1349,6 +1349,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 },