]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Properly document `-U <n>` option to named
authorOndřej Surý <ondrej@isc.org>
Wed, 24 Apr 2024 12:21:17 +0000 (14:21 +0200)
committerOndřej Surý <ondrej@isc.org>
Wed, 24 Apr 2024 20:50:22 +0000 (22:50 +0200)
In the past, before the netmgr, the `-U <n>` option to `named`
configured number of listening dispatches for UDP per-interface.

Since 9.16, it only affects the number of outgoing UDP dispatches.
Properly document that in the `named` man page.

bin/named/named.rst

index dc6e46d3f6f6b13ba4f9f5a3ed987dd0f1950033..b94b5a10fbcbcd7df8f9c65a3dc1d0f46f9b738f 100644 (file)
@@ -171,16 +171,22 @@ Options
       most systems; the way ``chroot`` is defined allows a process
       with root privileges to escape a chroot jail.
 
-.. option:: -U #listeners
-
-   This option tells :program:`named` the number of ``#listeners`` worker threads to listen on, for incoming UDP packets on
-   each address. If not specified, :program:`named` calculates a default
-   value based on the number of detected CPUs: 1 for 1 CPU, and the
-   number of detected CPUs minus one for machines with more than 1 CPU.
-   This cannot be increased to a value higher than the number of CPUs.
-   If :option:`-n` has been set to a higher value than the number of detected
-   CPUs, then :option:`-U` may be increased as high as that value, but no
-   higher.
+.. option:: -U #dispatches
+
+   This option specifies the number of per-interface UDP ``#dispatches`` that :program:`named` should use to handle the outgoing (recursive) UDP connection,
+   to reduce contention between the resolver threads.
+
+   If not specified, :program:`named` calculates a default value based on the
+   number of detected CPUs: 1 for a single CPU, and the number of detected CPUs minus
+   one for machines with more than 1 CPU.
+
+   This cannot be increased to a value higher than the number of CPUs
+   (see :option:`-n` on how to override the value).
+
+.. warning::
+
+      This option should be unnecessary for the vast majority of users,
+      and will be removed in the next version of BIND 9.
 
 .. option:: -u user