|
|
7e24df |
From 7fe2204a2e8952bf892e4a70fea2ef5167e1f509 Mon Sep 17 00:00:00 2001
|
|
|
7e24df |
From: Evan Hunt <each@isc.org>
|
|
|
7e24df |
Date: Thu, 1 Sep 2022 16:22:46 -0700
|
|
|
7e24df |
Subject: [PATCH] add a configuration option for the update quota
|
|
|
7e24df |
|
|
|
7e24df |
add an "update-quota" option to configure the update quota.
|
|
|
7e24df |
|
|
|
7e24df |
(cherry picked from commit f57758a7303ad0034ff2ff08eaaf2ef899630f19)
|
|
|
7e24df |
---
|
|
|
7e24df |
bin/named/config.c | 1 +
|
|
|
7e24df |
bin/named/named.conf.rst | 9 +++++----
|
|
|
7e24df |
bin/named/server.c | 1 +
|
|
|
7e24df |
bin/tests/system/checkconf/good.conf | 1 +
|
|
|
7e24df |
doc/arm/reference.rst | 7 ++++++-
|
|
|
7e24df |
doc/man/named.conf.5in | 9 +++++----
|
|
|
7e24df |
doc/misc/master.zoneopt.rst | 2 +-
|
|
|
7e24df |
doc/misc/options | 1 +
|
|
|
7e24df |
doc/misc/options.active | 1 +
|
|
|
7e24df |
doc/misc/options.grammar.rst | 3 ++-
|
|
|
7e24df |
doc/misc/slave.zoneopt.rst | 2 +-
|
|
|
7e24df |
lib/isccfg/namedconf.c | 1 +
|
|
|
7e24df |
12 files changed, 26 insertions(+), 12 deletions(-)
|
|
|
7e24df |
|
|
|
7e24df |
diff --git a/bin/named/config.c b/bin/named/config.c
|
|
|
7e24df |
index 5fedee84d9..494147015f 100644
|
|
|
7e24df |
--- a/bin/named/config.c
|
|
|
7e24df |
+++ b/bin/named/config.c
|
|
|
7e24df |
@@ -130,6 +130,7 @@ options {\n\
|
|
|
7e24df |
transfers-out 10;\n\
|
|
|
7e24df |
transfers-per-ns 2;\n\
|
|
|
7e24df |
trust-anchor-telemetry yes;\n\
|
|
|
7e24df |
+ update-quota 100;\n\
|
|
|
7e24df |
\n\
|
|
|
7e24df |
/* view */\n\
|
|
|
7e24df |
allow-new-zones no;\n\
|
|
|
7e24df |
diff --git a/bin/named/named.conf.rst b/bin/named/named.conf.rst
|
|
|
7e24df |
index 27eed5ca3e..4c9f9a7370 100644
|
|
|
7e24df |
--- a/bin/named/named.conf.rst
|
|
|
7e24df |
+++ b/bin/named/named.conf.rst
|
|
|
7e24df |
@@ -179,7 +179,7 @@ OPTIONS
|
|
|
7e24df |
answer-cookie boolean;
|
|
|
7e24df |
attach-cache string;
|
|
|
7e24df |
auth-nxdomain boolean; // default changed
|
|
|
7e24df |
- auto-dnssec ( allow | maintain | off );
|
|
|
7e24df |
+ auto-dnssec ( allow | maintain | off );// deprecated
|
|
|
7e24df |
automatic-interface-scan boolean;
|
|
|
7e24df |
avoid-v4-udp-ports { portrange; ... };
|
|
|
7e24df |
avoid-v6-udp-ports { portrange; ... };
|
|
|
7e24df |
@@ -446,6 +446,7 @@ OPTIONS
|
|
|
7e24df |
trust-anchor-telemetry boolean; // experimental
|
|
|
7e24df |
try-tcp-refresh boolean;
|
|
|
7e24df |
update-check-ksk boolean;
|
|
|
7e24df |
+ update-quota integer;
|
|
|
7e24df |
use-alt-transfer-source boolean;
|
|
|
7e24df |
use-v4-udp-ports { portrange; ... };
|
|
|
7e24df |
use-v6-udp-ports { portrange; ... };
|
|
|
7e24df |
@@ -584,7 +585,7 @@ VIEW
|
|
|
7e24df |
* ) ] [ dscp integer ];
|
|
|
7e24df |
attach-cache string;
|
|
|
7e24df |
auth-nxdomain boolean; // default changed
|
|
|
7e24df |
- auto-dnssec ( allow | maintain | off );
|
|
|
7e24df |
+ auto-dnssec ( allow | maintain | off );// deprecated
|
|
|
7e24df |
cache-file quoted_string;// deprecated
|
|
|
7e24df |
catalog-zones { zone string [ default-masters [ port integer ]
|
|
|
7e24df |
[ dscp integer ] { ( remote-servers | ipv4_address [ port
|
|
|
7e24df |
@@ -859,7 +860,7 @@ VIEW
|
|
|
7e24df |
integer | * ) ] [ dscp integer ];
|
|
|
7e24df |
alt-transfer-source-v6 ( ipv6_address | * ) [ port (
|
|
|
7e24df |
integer | * ) ] [ dscp integer ];
|
|
|
7e24df |
- auto-dnssec ( allow | maintain | off );
|
|
|
7e24df |
+ auto-dnssec ( allow | maintain | off );// deprecated
|
|
|
7e24df |
check-dup-records ( fail | warn | ignore );
|
|
|
7e24df |
check-integrity boolean;
|
|
|
7e24df |
check-mx ( fail | warn | ignore );
|
|
|
7e24df |
@@ -977,7 +978,7 @@ ZONE
|
|
|
7e24df |
] [ dscp integer ];
|
|
|
7e24df |
alt-transfer-source-v6 ( ipv6_address | * ) [ port ( integer |
|
|
|
7e24df |
* ) ] [ dscp integer ];
|
|
|
7e24df |
- auto-dnssec ( allow | maintain | off );
|
|
|
7e24df |
+ auto-dnssec ( allow | maintain | off );// deprecated
|
|
|
7e24df |
check-dup-records ( fail | warn | ignore );
|
|
|
7e24df |
check-integrity boolean;
|
|
|
7e24df |
check-mx ( fail | warn | ignore );
|
|
|
7e24df |
diff --git a/bin/named/server.c b/bin/named/server.c
|
|
|
7e24df |
index 20443ff8a9..78a21d62a2 100644
|
|
|
7e24df |
--- a/bin/named/server.c
|
|
|
7e24df |
+++ b/bin/named/server.c
|
|
|
7e24df |
@@ -8542,6 +8542,7 @@ load_configuration(const char *filename, named_server_t *server,
|
|
|
7e24df |
configure_server_quota(maps, "tcp-clients", &server->sctx->tcpquota);
|
|
|
7e24df |
configure_server_quota(maps, "recursive-clients",
|
|
|
7e24df |
&server->sctx->recursionquota);
|
|
|
7e24df |
+ configure_server_quota(maps, "update-quota", &server->sctx->updquota);
|
|
|
7e24df |
|
|
|
7e24df |
max = isc_quota_getmax(&server->sctx->recursionquota);
|
|
|
7e24df |
if (max > 1000) {
|
|
|
7e24df |
diff --git a/bin/tests/system/checkconf/good.conf b/bin/tests/system/checkconf/good.conf
|
|
|
7e24df |
index b1f7059acf..0ecdb68e95 100644
|
|
|
7e24df |
--- a/bin/tests/system/checkconf/good.conf
|
|
|
7e24df |
+++ b/bin/tests/system/checkconf/good.conf
|
|
|
7e24df |
@@ -75,6 +75,7 @@ options {
|
|
|
7e24df |
recursive-clients 3000;
|
|
|
7e24df |
serial-query-rate 100;
|
|
|
7e24df |
server-id none;
|
|
|
7e24df |
+ update-quota 200;
|
|
|
7e24df |
check-names primary warn;
|
|
|
7e24df |
check-names secondary ignore;
|
|
|
7e24df |
max-cache-size 20000000000000;
|
|
|
7e24df |
diff --git a/doc/arm/reference.rst b/doc/arm/reference.rst
|
|
|
7e24df |
index 2603d60251..703663d0ba 100644
|
|
|
7e24df |
--- a/doc/arm/reference.rst
|
|
|
7e24df |
+++ b/doc/arm/reference.rst
|
|
|
7e24df |
@@ -3151,6 +3151,11 @@ system.
|
|
|
7e24df |
value as ``tcp-keepalive-timeout``. This value can be updated at
|
|
|
7e24df |
runtime by using ``rndc tcp-timeouts``.
|
|
|
7e24df |
|
|
|
7e24df |
+``update-quota``
|
|
|
7e24df |
+ This is the maximum number of simultaneous DNS UPDATE messages that
|
|
|
7e24df |
+ the server will accept for updating local authoritiative zones or
|
|
|
7e24df |
+ forwarding to a primary server. The default is ``100``.
|
|
|
7e24df |
+
|
|
|
7e24df |
.. _intervals:
|
|
|
7e24df |
|
|
|
7e24df |
Periodic Task Intervals
|
|
|
7e24df |
@@ -6840,7 +6845,7 @@ Name Server Statistics Counters
|
|
|
7e24df |
``UpdateQuota``
|
|
|
7e24df |
This indicates the number of times a dynamic update or update
|
|
|
7e24df |
forwarding request was rejected because the number of pending
|
|
|
7e24df |
- requests exceeded the update quota.
|
|
|
7e24df |
+ requests exceeded ``update-quota``.
|
|
|
7e24df |
|
|
|
7e24df |
``RateDropped``
|
|
|
7e24df |
This indicates the number of responses dropped due to rate limits.
|
|
|
7e24df |
diff --git a/doc/man/named.conf.5in b/doc/man/named.conf.5in
|
|
|
7e24df |
index 4c46f47592..c87afa2881 100644
|
|
|
7e24df |
--- a/doc/man/named.conf.5in
|
|
|
7e24df |
+++ b/doc/man/named.conf.5in
|
|
|
7e24df |
@@ -231,7 +231,7 @@ options {
|
|
|
7e24df |
answer\-cookie boolean;
|
|
|
7e24df |
attach\-cache string;
|
|
|
7e24df |
auth\-nxdomain boolean; // default changed
|
|
|
7e24df |
- auto\-dnssec ( allow | maintain | off );
|
|
|
7e24df |
+ auto\-dnssec ( allow | maintain | off );// deprecated
|
|
|
7e24df |
automatic\-interface\-scan boolean;
|
|
|
7e24df |
avoid\-v4\-udp\-ports { portrange; ... };
|
|
|
7e24df |
avoid\-v6\-udp\-ports { portrange; ... };
|
|
|
7e24df |
@@ -498,6 +498,7 @@ options {
|
|
|
7e24df |
trust\-anchor\-telemetry boolean; // experimental
|
|
|
7e24df |
try\-tcp\-refresh boolean;
|
|
|
7e24df |
update\-check\-ksk boolean;
|
|
|
7e24df |
+ update\-quota integer;
|
|
|
7e24df |
use\-alt\-transfer\-source boolean;
|
|
|
7e24df |
use\-v4\-udp\-ports { portrange; ... };
|
|
|
7e24df |
use\-v6\-udp\-ports { portrange; ... };
|
|
|
7e24df |
@@ -668,7 +669,7 @@ view string [ class ] {
|
|
|
7e24df |
* ) ] [ dscp integer ];
|
|
|
7e24df |
attach\-cache string;
|
|
|
7e24df |
auth\-nxdomain boolean; // default changed
|
|
|
7e24df |
- auto\-dnssec ( allow | maintain | off );
|
|
|
7e24df |
+ auto\-dnssec ( allow | maintain | off );// deprecated
|
|
|
7e24df |
cache\-file quoted_string;// deprecated
|
|
|
7e24df |
catalog\-zones { zone string [ default\-masters [ port integer ]
|
|
|
7e24df |
[ dscp integer ] { ( remote\-servers | ipv4_address [ port
|
|
|
7e24df |
@@ -943,7 +944,7 @@ view string [ class ] {
|
|
|
7e24df |
integer | * ) ] [ dscp integer ];
|
|
|
7e24df |
alt\-transfer\-source\-v6 ( ipv6_address | * ) [ port (
|
|
|
7e24df |
integer | * ) ] [ dscp integer ];
|
|
|
7e24df |
- auto\-dnssec ( allow | maintain | off );
|
|
|
7e24df |
+ auto\-dnssec ( allow | maintain | off );// deprecated
|
|
|
7e24df |
check\-dup\-records ( fail | warn | ignore );
|
|
|
7e24df |
check\-integrity boolean;
|
|
|
7e24df |
check\-mx ( fail | warn | ignore );
|
|
|
7e24df |
@@ -1065,7 +1066,7 @@ zone string [ class ] {
|
|
|
7e24df |
] [ dscp integer ];
|
|
|
7e24df |
alt\-transfer\-source\-v6 ( ipv6_address | * ) [ port ( integer |
|
|
|
7e24df |
* ) ] [ dscp integer ];
|
|
|
7e24df |
- auto\-dnssec ( allow | maintain | off );
|
|
|
7e24df |
+ auto\-dnssec ( allow | maintain | off );// deprecated
|
|
|
7e24df |
check\-dup\-records ( fail | warn | ignore );
|
|
|
7e24df |
check\-integrity boolean;
|
|
|
7e24df |
check\-mx ( fail | warn | ignore );
|
|
|
7e24df |
diff --git a/doc/misc/master.zoneopt.rst b/doc/misc/master.zoneopt.rst
|
|
|
7e24df |
index 8fc7e1b4f0..346d59813e 100644
|
|
|
7e24df |
--- a/doc/misc/master.zoneopt.rst
|
|
|
7e24df |
+++ b/doc/misc/master.zoneopt.rst
|
|
|
7e24df |
@@ -20,7 +20,7 @@
|
|
|
7e24df |
also-notify [ port <integer> ] [ dscp <integer> ] { ( <remote-servers> | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key <string> ]; ... };
|
|
|
7e24df |
alt-transfer-source ( <ipv4_address> | * ) [ port ( <integer> | * ) ] [ dscp <integer> ];
|
|
|
7e24df |
alt-transfer-source-v6 ( <ipv6_address> | * ) [ port ( <integer> | * ) ] [ dscp <integer> ];
|
|
|
7e24df |
- auto-dnssec ( allow | maintain | off );
|
|
|
7e24df |
+ auto-dnssec ( allow | maintain | off ); // deprecated
|
|
|
7e24df |
check-dup-records ( fail | warn | ignore );
|
|
|
7e24df |
check-integrity <boolean>;
|
|
|
7e24df |
check-mx ( fail | warn | ignore );
|
|
|
7e24df |
diff --git a/doc/misc/options b/doc/misc/options
|
|
|
7e24df |
index f57399499a..0dbcf101e1 100644
|
|
|
7e24df |
--- a/doc/misc/options
|
|
|
7e24df |
+++ b/doc/misc/options
|
|
|
7e24df |
@@ -404,6 +404,7 @@ options {
|
|
|
7e24df |
trust-anchor-telemetry <boolean>; // experimental
|
|
|
7e24df |
try-tcp-refresh <boolean>;
|
|
|
7e24df |
update-check-ksk <boolean>;
|
|
|
7e24df |
+ update-quota <integer>;
|
|
|
7e24df |
use-alt-transfer-source <boolean>;
|
|
|
7e24df |
use-id-pool <boolean>; // ancient
|
|
|
7e24df |
use-ixfr <boolean>; // obsolete
|
|
|
7e24df |
diff --git a/doc/misc/options.active b/doc/misc/options.active
|
|
|
7e24df |
index 5fc1ab29f4..eb75a86eae 100644
|
|
|
7e24df |
--- a/doc/misc/options.active
|
|
|
7e24df |
+++ b/doc/misc/options.active
|
|
|
7e24df |
@@ -363,6 +363,7 @@ options {
|
|
|
7e24df |
trust-anchor-telemetry <boolean>; // experimental
|
|
|
7e24df |
try-tcp-refresh <boolean>;
|
|
|
7e24df |
update-check-ksk <boolean>;
|
|
|
7e24df |
+ update-quota <integer>;
|
|
|
7e24df |
use-alt-transfer-source <boolean>;
|
|
|
7e24df |
use-v4-udp-ports { <portrange>; ... };
|
|
|
7e24df |
use-v6-udp-ports { <portrange>; ... };
|
|
|
7e24df |
diff --git a/doc/misc/options.grammar.rst b/doc/misc/options.grammar.rst
|
|
|
7e24df |
index 438072c95c..beef35341a 100644
|
|
|
7e24df |
--- a/doc/misc/options.grammar.rst
|
|
|
7e24df |
+++ b/doc/misc/options.grammar.rst
|
|
|
7e24df |
@@ -33,7 +33,7 @@
|
|
|
7e24df |
answer-cookie <boolean>;
|
|
|
7e24df |
attach-cache <string>;
|
|
|
7e24df |
auth-nxdomain <boolean>; // default changed
|
|
|
7e24df |
- auto-dnssec ( allow | maintain | off );
|
|
|
7e24df |
+ auto-dnssec ( allow | maintain | off ); // deprecated
|
|
|
7e24df |
automatic-interface-scan <boolean>;
|
|
|
7e24df |
avoid-v4-udp-ports { <portrange>; ... };
|
|
|
7e24df |
avoid-v6-udp-ports { <portrange>; ... };
|
|
|
7e24df |
@@ -300,6 +300,7 @@
|
|
|
7e24df |
trust-anchor-telemetry <boolean>; // experimental
|
|
|
7e24df |
try-tcp-refresh <boolean>;
|
|
|
7e24df |
update-check-ksk <boolean>;
|
|
|
7e24df |
+ update-quota <integer>;
|
|
|
7e24df |
use-alt-transfer-source <boolean>;
|
|
|
7e24df |
use-v4-udp-ports { <portrange>; ... };
|
|
|
7e24df |
use-v6-udp-ports { <portrange>; ... };
|
|
|
7e24df |
diff --git a/doc/misc/slave.zoneopt.rst b/doc/misc/slave.zoneopt.rst
|
|
|
7e24df |
index cc72dcbf67..468a7f4d9a 100644
|
|
|
7e24df |
--- a/doc/misc/slave.zoneopt.rst
|
|
|
7e24df |
+++ b/doc/misc/slave.zoneopt.rst
|
|
|
7e24df |
@@ -21,7 +21,7 @@
|
|
|
7e24df |
also-notify [ port <integer> ] [ dscp <integer> ] { ( <remote-servers> | <ipv4_address> [ port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key <string> ]; ... };
|
|
|
7e24df |
alt-transfer-source ( <ipv4_address> | * ) [ port ( <integer> | * ) ] [ dscp <integer> ];
|
|
|
7e24df |
alt-transfer-source-v6 ( <ipv6_address> | * ) [ port ( <integer> | * ) ] [ dscp <integer> ];
|
|
|
7e24df |
- auto-dnssec ( allow | maintain | off );
|
|
|
7e24df |
+ auto-dnssec ( allow | maintain | off ); // deprecated
|
|
|
7e24df |
check-names ( fail | warn | ignore );
|
|
|
7e24df |
database <string>;
|
|
|
7e24df |
dialup ( notify | notify-passive | passive | refresh | <boolean> );
|
|
|
7e24df |
diff --git a/lib/isccfg/namedconf.c b/lib/isccfg/namedconf.c
|
|
|
7e24df |
index 45de0196bf..6e63d86816 100644
|
|
|
7e24df |
--- a/lib/isccfg/namedconf.c
|
|
|
7e24df |
+++ b/lib/isccfg/namedconf.c
|
|
|
7e24df |
@@ -1267,6 +1267,7 @@ static cfg_clausedef_t options_clauses[] = {
|
|
|
7e24df |
{ "transfers-out", &cfg_type_uint32, 0 },
|
|
|
7e24df |
{ "transfers-per-ns", &cfg_type_uint32, 0 },
|
|
|
7e24df |
{ "treat-cr-as-space", &cfg_type_boolean, CFG_CLAUSEFLAG_ANCIENT },
|
|
|
7e24df |
+ { "update-quota", &cfg_type_uint32, 0 },
|
|
|
7e24df |
{ "use-id-pool", &cfg_type_boolean, CFG_CLAUSEFLAG_ANCIENT },
|
|
|
7e24df |
{ "use-ixfr", &cfg_type_boolean, CFG_CLAUSEFLAG_OBSOLETE },
|
|
|
7e24df |
{ "use-v4-udp-ports", &cfg_type_bracketed_portlist, 0 },
|
|
|
7e24df |
--
|
|
|
7e24df |
2.39.1
|
|
|
7e24df |
|