]> git.ipfire.org Git - thirdparty/pdns.git/blob - pdns/recursordist/settings/table.py
rec: CVE-2023-50387 and CVE-2023-50868
[thirdparty/pdns.git] / pdns / recursordist / settings / table.py
1 # This file contains the table used to generate old and new-style settings code
2 #
3 # Example:
4 # {
5 # 'name' : 'allow_from',
6 # 'section' : 'incoming',
7 # 'oldname' : 'allow-from'
8 # 'type' : LType.ListSubnets,
9 # 'default' : '127.0.0.0/8, 10.0.0.0/8, 100.64.0.0/10, 169.254.0.0/16, 192.168.0.0/16, 172.16.0.0/12, ::1/128, fc00::/7, fe80::/10',
10 # 'help' : 'If set, only allow these comma separated netmasks to recurse',
11 # 'doc' : '''
12 # '''
13 # }
14 #
15 # See generate.py for a description of the fields.
16 #
17 # Sections
18 # - incoming
19 # - outgoing
20 # - packetcache
21 # - recursor
22 # - recordcache
23 # - dnssec
24 # - webservice
25 # - carbon
26 # - ecs
27 # - logging
28 # - nod
29 # - snmp
30
31 [
32 {
33 'name' : 'aggressive_nsec_cache_size',
34 'section' : 'dnssec',
35 'type' : LType.Uint64,
36 'default' : '100000',
37 'help' : 'The number of records to cache in the aggressive cache. If set to a value greater than 0, and DNSSEC processing or validation is enabled, the recursor will cache NSEC and NSEC3 records to generate negative answers, as defined in rfc8198',
38 'doc' : '''
39 The number of records to cache in the aggressive cache. If set to a value greater than 0, the recursor will cache NSEC and NSEC3 records to generate negative answers, as defined in :rfc:`8198`.
40 To use this, DNSSEC processing or validation must be enabled by setting :ref:`setting-dnssec` to ``process``, ``log-fail`` or ``validate``.
41 ''',
42 'versionadded': '4.5.0',
43 },
44 {
45 'name' : 'aggressive_cache_min_nsec3_hit_ratio',
46 'section' : 'dnssec',
47 'type' : LType.Uint64,
48 'default' : '2000',
49 'help' : 'The minimum expected hit ratio to store NSEC3 records into the aggressive cache',
50 'doc' : '''
51 The limit for which to put NSEC3 records into the aggressive cache.
52 A value of ``n`` means that an NSEC3 record is only put into the aggressive cache if the estimated probability of a random name hitting the NSEC3 record is higher than ``1/n``.
53 A higher ``n`` will cause more records to be put into the aggressive cache, e.g. a value of 4000 will cause records to be put in the aggressive cache even if the estimated probability of hitting them is twice as low as would be the case for ``n=2000``.
54 A value of 0 means no NSEC3 records will be put into the aggressive cache.
55
56 For large zones the effectiveness of the NSEC3 cache is reduced since each NSEC3 record only covers a randomly distributed subset of all possible names.
57 This setting avoids doing unnecessary work for such large zones.
58 ''',
59 'versionadded' : '4.9.0',
60 },
61 {
62 'name' : 'allow_from',
63 'section' : 'incoming',
64 'type' : LType.ListSubnets,
65 'default' : '127.0.0.0/8, 10.0.0.0/8, 100.64.0.0/10, 169.254.0.0/16, 192.168.0.0/16, 172.16.0.0/12, ::1/128, fc00::/7, fe80::/10',
66 'help' : 'If set, only allow these comma separated netmasks to recurse',
67 'doc' : '''
68 Netmasks (both IPv4 and IPv6) that are allowed to use the server.
69 The default allows access only from :rfc:`1918` private IP addresses.
70 An empty value means no checking is done, all clients are allowed.
71 Due to the aggressive nature of the internet these days, it is highly recommended to not open up the recursor for the entire internet.
72 Questions from IP addresses not listed here are ignored and do not get an answer.
73
74 When the Proxy Protocol is enabled (see :ref:`setting-proxy-protocol-from`), the recursor will check the address of the client IP advertised in the Proxy Protocol header instead of the one of the proxy.
75
76 Note that specifying an IP address without a netmask uses an implicit netmask of /32 or /128.
77 ''',
78 },
79 {
80 'name' : 'allow_from_file',
81 'section' : 'incoming',
82 'type' : LType.String,
83 'default' : '',
84 'help' : 'If set, load allowed netmasks from this file',
85 'doc' : '''
86 Like :ref:`setting-allow-from`, except reading from file.
87 Overrides the :ref:`setting-allow-from` setting. To use this feature, supply one netmask per line, with optional comments preceded by a '#'.
88 ''',
89 'doc-new' : '''
90 Like :ref:`setting-allow-from`, except reading a sequence of `Subnet`_ from file.
91 Overrides the :ref:`setting-allow-from` setting. Example content of th specified file:
92
93 .. code-block:: yaml
94
95 - 127.0.01
96 - ::1
97
98 ''',
99 },
100 {
101 'name' : 'allow_notify_for',
102 'section' : 'incoming',
103 'type' : LType.ListStrings,
104 'default' : '',
105 'help' : 'If set, NOTIFY requests for these zones will be allowed',
106 'doc' : '''
107 Domain names specified in this list are used to permit incoming
108 NOTIFY operations to wipe any cache entries that match the domain
109 name. If this list is empty, all NOTIFY operations will be ignored.
110 ''',
111 'versionadded': '4.6.0'
112 },
113 {
114 'name' : 'allow_notify_for_file',
115 'section' : 'incoming',
116 'type' : LType.String,
117 'default' : '',
118 'help' : 'If set, load NOTIFY-allowed zones from this file',
119 'doc' : '''
120 Like :ref:`setting-allow-notify-for`, except reading from file. To use this
121 feature, supply one domain name per line, with optional comments
122 preceded by a '#'.
123
124 NOTIFY-allowed zones can also be specified using :ref:`setting-forward-zones-file`.
125 ''',
126 'doc-new' : '''
127 Like :ref:`setting-allow-notify-for`, except reading a sequence of names from file. Example contents of specified file:
128
129 .. code-block:: yaml
130
131 - example.com
132 - example.org
133
134 ''',
135 'versionadded': '4.6.0'
136 },
137 {
138 'name' : 'allow_notify_from',
139 'section' : 'incoming',
140 'type' : LType.ListSubnets,
141 'default' : '',
142 'help' : 'If set, NOTIFY requests from these comma separated netmasks will be allowed',
143 'doc' : '''
144 Netmasks (both IPv4 and IPv6) that are allowed to issue NOTIFY operations
145 to the server. NOTIFY operations from IP addresses not listed here are
146 ignored and do not get an answer.
147
148 When the Proxy Protocol is enabled (see :ref:`setting-proxy-protocol-from`), the
149 recursor will check the address of the client IP advertised in the
150 Proxy Protocol header instead of the one of the proxy.
151
152 Note that specifying an IP address without a netmask uses an implicit
153 netmask of /32 or /128.
154
155 NOTIFY operations received from a client listed in one of these netmasks
156 will be accepted and used to wipe any cache entries whose zones match
157 the zone specified in the NOTIFY operation, but only if that zone (or
158 one of its parents) is included in :ref:`setting-allow-notify-for`,
159 :ref:`setting-allow-notify-for-file`, or :ref:`setting-forward-zones-file` with a '^' prefix.
160 ''',
161 'doc-new' : '''
162 Subnets (both IPv4 and IPv6) that are allowed to issue NOTIFY operations
163 to the server. NOTIFY operations from IP addresses not listed here are
164 ignored and do not get an answer.
165
166 When the Proxy Protocol is enabled (see :ref:`setting-proxy-protocol-from`), the
167 recursor will check the address of the client IP advertised in the
168 Proxy Protocol header instead of the one of the proxy.
169
170 Note that specifying an IP address without a netmask uses an implicit
171 netmask of /32 or /128.
172
173 NOTIFY operations received from a client listed in one of these netmasks
174 will be accepted and used to initiate a freshness check for an RPZ zone or wipe any cache entries whose zones match
175 the zone specified in the NOTIFY operation, but only if that zone (or
176 one of its parents) is included in :ref:`setting-allow-notify-for`,
177 :ref:`setting-allow-notify-for-file`, or :ref:`setting-forward-zones-file` with a ``allow_notify`` set to ``true``.
178 ''',
179 'versionadded': '4.6.0'
180 },
181 {
182 'name' : 'allow_notify_from_file',
183 'section' : 'incoming',
184 'type' : LType.String,
185 'default' : '',
186 'help' : 'If set, load NOTIFY-allowed netmasks from this file',
187 'doc' : '''
188 Like :ref:`setting-allow-notify-from`, except reading from file. To use this
189 feature, supply one netmask per line, with optional comments preceded
190 by a '#'.
191 ''',
192 'doc-new' : '''
193 Like :ref:`setting-allow-notify-from`, except reading a sequence of `Subnet`_ from file.
194 ''',
195 'versionadded': '4.6.0'
196 },
197 {
198 'name' : 'allow_no_rd',
199 'section' : 'incoming',
200 'type' : LType.Bool,
201 'default' : 'false',
202 'help' : 'Allow \'no recursion desired (RD=0)\' queries.',
203 'doc' : '''
204 Allow ``no recursion desired (RD=0) queries`` to query cache contents.
205 If not set (the default), these queries are answered with rcode ``Refused``.
206 ''',
207 'versionadded': '5.0.0'
208 },
209 {
210 'name' : 'any_to_tcp',
211 'section' : 'recursor',
212 'type' : LType.Bool,
213 'default' : 'false',
214 'help' : 'Answer ANY queries with tc=1, shunting to TCP',
215 'doc' : '''
216 Answer questions for the ANY type on UDP with a truncated packet that refers the remote server to TCP.
217 Useful for mitigating ANY reflection attacks.
218 ''',
219 },
220 {
221 'name' : 'allow_trust_anchor_query',
222 'section' : 'recursor',
223 'type' : LType.Bool,
224 'default' : 'false',
225 'help' : 'Allow queries for trustanchor.server CH TXT and negativetrustanchor.server CH TXT',
226 'doc' : '''
227 Allow ``trustanchor.server CH TXT`` and ``negativetrustanchor.server CH TXT`` queries to view the configured :doc:`DNSSEC <dnssec>` (negative) trust anchors.
228 ''',
229 'versionadded': '4.3.0'
230 },
231 {
232 'name' : 'api_dir',
233 'section' : 'webservice',
234 'oldname' : 'api-config-dir',
235 'type' : LType.String,
236 'default' : '',
237 'help' : 'Directory where REST API stores config and zones',
238 'doc' : '''
239 Directory where the REST API stores its configuration and zones.
240 For configuration updates to work, :ref:`setting-include-dir` should have the same value when using old-style settings.
241 When using YAML settings :ref:`setting-yaml-recursor.include_dir` and :ref:`setting-yaml-webservice.api_dir` must have a different value.
242 ''',
243 'versionadded': '4.0.0'
244 },
245 {
246 'name' : 'api_key',
247 'section' : 'webservice',
248 'type' : LType.String,
249 'default' : '',
250 'help' : 'Static pre-shared authentication key for access to the REST API',
251 'doc' : '''
252 Static pre-shared authentication key for access to the REST API. Since 4.6.0 the key can be hashed and salted using ``rec_control hash-password`` instead of being stored in the configuration in plaintext, but the plaintext version is still supported.
253 ''',
254 'versionadded': '4.0.0',
255 'versionchanged': ('4.6.0', 'This setting now accepts a hashed and salted version.')
256 },
257 {
258 'name' : 'auth_zones',
259 'section' : 'recursor',
260 'type' : LType.ListAuthZones,
261 'default' : '',
262 'help' : 'Zones for which we have authoritative data, comma separated domain=file pairs',
263 'doc' : '''
264 Zones read from these files (in BIND format) are served authoritatively (but without the AA bit set in responses).
265 DNSSEC is not supported. Example:
266
267 .. code-block:: none
268
269 auth-zones=example.org=/var/zones/example.org, powerdns.com=/var/zones/powerdns.com
270 ''',
271 'doc-new' : '''
272 Zones read from these files (in BIND format) are served authoritatively (but without the AA bit set in responses).
273 DNSSEC is not supported. Example:
274
275 .. code-block:: yaml
276
277 recursor:
278 auth-zones:
279 - zone: example.org
280 file: /var/zones/example.org
281 - zone: powerdns.com
282 file: /var/zones/powerdns.com
283 ''',
284 },
285 {
286 'name' : 'interval',
287 'section' : 'carbon',
288 'oldname' : 'carbon-interval',
289 'type' : LType.Uint64,
290 'default' : '30',
291 'help' : 'Number of seconds between carbon (graphite) updates',
292 'doc' : '''
293 If sending carbon updates, this is the interval between them in seconds.
294 See :doc:`metrics`.
295 ''',
296 },
297 {
298 'name' : 'ns',
299 'section' : 'carbon',
300 'oldname' : 'carbon-namespace',
301 'type' : LType.String,
302 'default' : 'pdns',
303 'help' : 'If set overwrites the first part of the carbon string',
304 'doc' : '''
305 Change the namespace or first string of the metric key. The default is pdns.
306 ''',
307 'versionadded': '4.2.0'
308 },
309 {
310 'name' : 'ourname',
311 'section' : 'carbon',
312 'oldname' : 'carbon-ourname',
313 'type' : LType.String,
314 'default' : '',
315 'help' : 'If set, overrides our reported hostname for carbon stats',
316 'doc' : '''
317 If sending carbon updates, if set, this will override our hostname.
318 Be careful not to include any dots in this setting, unless you know what you are doing.
319 See :ref:`metricscarbon`.
320 ''',
321 },
322 {
323 'name' : 'instance',
324 'section' : 'carbon',
325 'oldname' : 'carbon-instance',
326 'type' : LType.String,
327 'default' : 'recursor',
328 'help' : 'If set overwrites the instance name default',
329 'doc' : '''
330 Change the instance or third string of the metric key. The default is recursor.
331 ''',
332 'versionadded': '4.2.0'
333 },
334 {
335 'name' : 'server',
336 'section' : 'carbon',
337 'oldname' : 'carbon-server',
338 'type' : LType.ListSocketAddresses,
339 'default' : '',
340 'help' : 'If set, send metrics in carbon (graphite) format to this server IP address',
341 'doc' : '''
342 If set to an IP or IPv6 address, will send all available metrics to this server via the carbon protocol, which is used by graphite and metronome. Moreover you can specify more than one server using a comma delimited list, ex: carbon-server=10.10.10.10,10.10.10.20.
343 You may specify an alternate port by appending :port, for example: ``127.0.0.1:2004``.
344 See :doc:`metrics`.
345 ''',
346 'doc-new' : '''
347 Will send all available metrics to these servers via the carbon protocol, which is used by graphite and metronome.
348 See :doc:`metrics`.
349 ''',
350 },
351 {
352 'name' : 'chroot',
353 'section' : 'recursor',
354 'type' : LType.String,
355 'default' : '',
356 'help' : 'switch to chroot jail',
357 'doc' : '''
358 If set, chroot to this directory for more security.
359 This is not recommended; instead, we recommend containing PowerDNS using operating system features.
360 We ship systemd unit files with our packages to make this easy.
361
362 Make sure that ``/dev/log`` is available from within the chroot.
363 Logging will silently fail over time otherwise (on logrotate).
364
365 When using ``chroot``, all other paths (except for :ref:`setting-config-dir`) set in the configuration are relative to the new root.
366
367 When running on a system where systemd manages services, ``chroot`` does not work out of the box, as PowerDNS cannot use the ``NOTIFY_SOCKET``.
368 Either do not ``chroot`` on these systems or set the 'Type' of this service to 'simple' instead of 'notify' (refer to the systemd documentation on how to modify unit-files).
369 ''',
370 },
371 {
372 'name' : 'tcp_timeout',
373 'section' : 'incoming',
374 'oldname' : 'client-tcp-timeout',
375 'type' : LType.Uint64,
376 'default' : '2',
377 'help' : 'Timeout in seconds when talking to TCP clients',
378 'doc' : '''
379 Time to wait for data from TCP clients.
380 ''',
381 },
382 {
383 'name' : 'config',
384 'section' : 'commands',
385 'type' : LType.Command,
386 'default' : 'no',
387 'help' : 'Output blank configuration. You can use --config=check to test the config file and command line arguments.',
388 'doc' : '''
389 EMPTY? '''
390 },
391 {
392 'name' : 'config_dir',
393 'section' : 'recursor',
394 'type' : LType.String,
395 'default' : 'SYSCONFDIR',
396 'docdefault': 'Determined by distribution',
397 'help' : 'Location of configuration directory (recursor.conf or recursor.yml)',
398 'doc' : '''
399 Location of configuration directory (where ``recursor.conf`` or ``recursor.yml`` is stored).
400 Usually ``/etc/powerdns``, but this depends on ``SYSCONFDIR`` during compile-time.
401 Use default or set on command line.
402 ''',
403 },
404 {
405 'name' : 'config_name',
406 'section' : 'recursor',
407 'type' : LType.String,
408 'default' : '',
409 'help' : 'Name of this virtual configuration - will rename the binary image',
410 'doc' : '''
411 When running multiple recursors on the same server, read settings from :file:`recursor-{name}.conf`, this will also rename the binary image.
412 ''',
413 },
414 {
415 'name' : 'cpu_map',
416 'section' : 'recursor',
417 'type' : LType.String,
418 'default' : '',
419 'help' : 'Thread to CPU mapping, space separated thread-id=cpu1,cpu2..cpuN pairs',
420 'doc' : '''
421 Set CPU affinity for threads, asking the scheduler to run those threads on a single CPU, or a set of CPUs.
422 This parameter accepts a space separated list of thread-id=cpu-id, or thread-id=cpu-id-1,cpu-id-2,...,cpu-id-N.
423 For example, to make the worker thread 0 run on CPU id 0 and the worker thread 1 on CPUs 1 and 2::
424
425 cpu-map=0=0 1=1,2
426
427 The thread handling the control channel, the webserver and other internal stuff has been assigned id 0, the distributor
428 threads if any are assigned id 1 and counting, and the worker threads follow behind.
429 The number of distributor threads is determined by :ref:`setting-distributor-threads`, the number of worker threads is determined by the :ref:`setting-threads` setting.
430
431 This parameter is only available if the OS provides the ``pthread_setaffinity_np()`` function.
432
433 Note that depending on the configuration the Recursor can start more threads.
434 Typically these threads will sleep most of the time.
435 These threads cannot be specified in this setting as their thread-ids are left unspecified.
436 ''',
437 'doc' : '''
438 Set CPU affinity for threads, asking the scheduler to run those threads on a single CPU, or a set of CPUs.
439 This parameter accepts a space separated list of thread-id=cpu-id, or thread-id=cpu-id-1,cpu-id-2,...,cpu-id-N.
440 For example, to make the worker thread 0 run on CPU id 0 and the worker thread 1 on CPUs 1 and 2:
441
442 .. code-block:: yaml
443
444 recursor:
445 cpu_map: 0=0 1=1,2
446
447 The thread handling the control channel, the webserver and other internal stuff has been assigned id 0, the distributor
448 threads if any are assigned id 1 and counting, and the worker threads follow behind.
449 The number of distributor threads is determined by :ref:`setting-distributor-threads`, the number of worker threads is determined by the :ref:`setting-threads` setting.
450
451 This parameter is only available if the OS provides the ``pthread_setaffinity_np()`` function.
452
453 Note that depending on the configuration the Recursor can start more threads.
454 Typically these threads will sleep most of the time.
455 These threads cannot be specified in this setting as their thread-ids are left unspecified.
456 ''',
457 },
458 {
459 'name' : 'daemon',
460 'section' : 'recursor',
461 'type' : LType.Bool,
462 'default' : 'false',
463 'help' : 'Operate as a daemon',
464 'doc' : '''
465 Operate in the background.
466 ''',
467 'versionchanged': ('4.0.0', 'Default is now ``no``, was ``yes`` before.')
468 },
469 {
470 'name' : 'dont_throttle_names',
471 'section' : 'outgoing',
472 'type' : LType.ListStrings,
473 'default' : '',
474 'help' : 'Do not throttle nameservers with this name or suffix',
475 'doc' : '''
476 When an authoritative server does not answer a query or sends a reply the recursor does not like, it is throttled.
477 Any servers' name suffix-matching the supplied names will never be throttled.
478
479 .. warning::
480 Most servers on the internet do not respond for a good reason (overloaded or unreachable), ``dont-throttle-names`` could make this load on the upstream server even higher, resulting in further service degradation.
481 ''',
482 'versionadded': '4.2.0'
483 },
484 {
485 'name' : 'dont_throttle_netmasks',
486 'section' : 'outgoing',
487 'type' : LType.ListSubnets,
488 'default' : '',
489 'help' : 'Do not throttle nameservers with this IP netmask',
490 'doc' : '''
491 When an authoritative server does not answer a query or sends a reply the recursor does not like, it is throttled.
492 Any servers matching the supplied netmasks will never be throttled.
493
494 This can come in handy on lossy networks when forwarding, where the same server is configured multiple times (e.g. with ``forward-zones-recurse=example.com=192.0.2.1;192.0.2.1``).
495 By default, the PowerDNS Recursor would throttle the 'first' server on a timeout and hence not retry the 'second' one.
496 In this case, ``dont-throttle-netmasks`` could be set to ``192.0.2.1``.
497
498 .. warning::
499 Most servers on the internet do not respond for a good reason (overloaded or unreachable), ``dont-throttle-netmasks`` could make this load on the upstream server even higher, resulting in further service degradation.
500 ''',
501 'doc-new' : '''
502 When an authoritative server does not answer a query or sends a reply the recursor does not like, it is throttled.
503 Any servers matching the supplied netmasks will never be throttled.
504
505 This can come in handy on lossy networks when forwarding, where the same server is configured multiple times (e.g. with ``forward_zones_recurse: [ {zone: example.com, forwarders: [ 192.0.2.1, 192.0.2.1 ] } ]``.
506 By default, the PowerDNS Recursor would throttle the 'first' server on a timeout and hence not retry the 'second' one.
507 In this case, :ref:`setting-dont-throttle-netmasks` could be set to include ``192.0.2.1``.
508
509 .. warning::
510 Most servers on the internet do not respond for a good reason (overloaded or unreachable), ``dont-throttle-netmasks`` could make this load on the upstream server even higher, resulting in further service degradation.
511 ''',
512 'versionadded': '4.2.0'
513 },
514 {
515 'name' : 'devonly_regression_test_mode',
516 'section' : 'recursor',
517 'type' : LType.Bool,
518 'default' : 'false',
519 'help' : 'internal use only',
520 'doc' : 'SKIP',
521 },
522 {
523 'name' : 'disable',
524 'section' : 'packetcache',
525 'oldname' : 'disable-packetcache',
526 'type' : LType.Bool,
527 'default' : 'false',
528 'help' : 'Disable packetcache',
529 'doc' : '''
530 Turn off the packet cache. Useful when running with Lua scripts that cannot be cached, though individual query caching can be controlled from Lua as well.
531 ''',
532 },
533 {
534 'name' : 'disable_syslog',
535 'section' : 'logging',
536 'type' : LType.Bool,
537 'default' : 'false',
538 'help' : 'Disable logging to syslog, useful when running inside a supervisor that logs stdout',
539 'doc' : '''
540 Do not log to syslog, only to stdout.
541 Use this setting when running inside a supervisor that handles logging (like systemd).
542 **Note**: do not use this setting in combination with :ref:`setting-daemon` as all logging will disappear.
543 ''',
544 },
545 {
546 'name' : 'distribution_load_factor',
547 'section' : 'incoming',
548 'type' : LType.Double,
549 'default' : '0.0',
550 'help' : 'The load factor used when PowerDNS is distributing queries to worker threads',
551 'doc' : '''
552 If :ref:`setting-pdns-distributes-queries` is set and this setting is set to another value
553 than 0, the distributor thread will use a bounded load-balancing algorithm while
554 distributing queries to worker threads, making sure that no thread is assigned
555 more queries than distribution-load-factor times the average number of queries
556 currently processed by all the workers.
557 For example, with a value of 1.25, no server should get more than 125 % of the
558 average load. This helps making sure that all the workers have roughly the same
559 share of queries, even if the incoming traffic is very skewed, with a larger
560 number of requests asking for the same qname.
561 ''',
562 'versionadded': '4.1.12'
563 },
564 {
565 'name' : 'distribution_pipe_buffer_size',
566 'section' : 'incoming',
567 'type' : LType.Uint64,
568 'default' : '0',
569 'help' : 'Size in bytes of the internal buffer of the pipe used by the distributor to pass incoming queries to a worker thread',
570 'doc' : '''
571 Size in bytes of the internal buffer of the pipe used by the distributor to pass incoming queries to a worker thread.
572 Requires support for `F_SETPIPE_SZ` which is present in Linux since 2.6.35. The actual size might be rounded up to
573 a multiple of a page size. 0 means that the OS default size is used.
574 A large buffer might allow the recursor to deal with very short-lived load spikes during which a worker thread gets
575 overloaded, but it will be at the cost of an increased latency.
576 ''',
577 'versionadded': '4.2.0'
578 },
579 {
580 'name' : 'distributor_threads',
581 'section' : 'incoming',
582 'type' : LType.Uint64,
583 'default' : '0',
584 'docdefault' : '1 if :ref:`setting-pdns-distributes-queries` is set, 0 otherwise',
585 'help' : 'Launch this number of distributor threads, distributing queries to other threads',
586 'doc' : '''
587 If :ref:`setting-pdns-distributes-queries` is set, spawn this number of distributor threads on startup. Distributor threads
588 handle incoming queries and distribute them to other threads based on a hash of the query.
589 ''',
590 'versionadded': '4.2.0'
591 },
592 {
593 'name' : 'dot_to_auth_names',
594 'section' : 'outgoing',
595 'type' : LType.ListStrings,
596 'default' : '',
597 'help' : 'Use DoT to authoritative servers with these names or suffixes',
598 'doc' : '''
599 Force DoT to the listed authoritative nameservers. For this to work, DoT support has to be compiled in.
600 Currently, the certificate is not checked for validity in any way.
601 ''',
602 'versionadded': '4.6.0'
603 },
604 {
605 'name' : 'dot_to_port_853',
606 'section' : 'outgoing',
607 'type' : LType.Bool,
608 'default' : 'true',
609 'help' : 'Force DoT connection to target port 853 if DoT compiled in',
610 'doc' : '''
611 Enable DoT to forwarders that specify port 853.
612 ''',
613 'versionadded': '4.6.0'
614 },
615 {
616 'name' : 'dns64_prefix',
617 'section' : 'recursor',
618 'type' : LType.String,
619 'default' : '',
620 'help' : 'DNS64 prefix',
621 'doc' : '''
622 Enable DNS64 (:rfc:`6147`) support using the supplied /96 IPv6 prefix. This will generate 'fake' ``AAAA`` records for names
623 with only ``A`` records, as well as 'fake' ``PTR`` records to make sure that reverse lookup of DNS64-generated IPv6 addresses
624 generate the right name.
625 See :doc:`dns64` for more flexible but slower alternatives using Lua.
626 ''',
627 'versionadded': '4.4.0'
628 },
629 {
630 'name' : 'validation',
631 'section' : 'dnssec',
632 'oldname' : 'dnssec',
633 'type' : LType.String,
634 'default' : 'process',
635 'help' : 'DNSSEC mode: off/process-no-validate/process (default)/log-fail/validate',
636 'doc' : '''
637 One of ``off``, ``process-no-validate``, ``process``, ``log-fail``, ``validate``
638
639 Set the mode for DNSSEC processing, as detailed in :doc:`dnssec`.
640
641 ``off``
642 No DNSSEC processing whatsoever.
643 Ignore DO-bits in queries, don't request any DNSSEC information from authoritative servers.
644 This behaviour is similar to PowerDNS Recursor pre-4.0.
645 ``process-no-validate``
646 Respond with DNSSEC records to clients that ask for it, set the DO bit on all outgoing queries.
647 Don't do any validation.
648 ``process``
649 Respond with DNSSEC records to clients that ask for it, set the DO bit on all outgoing queries.
650 Do validation for clients that request it (by means of the AD- bit or DO-bit in the query).
651 ``log-fail``
652 Similar behaviour to ``process``, but validate RRSIGs on responses and log bogus responses.
653 ``validate``
654 Full blown DNSSEC validation. Send SERVFAIL to clients on bogus responses.
655 ''',
656 'versionadded': '4.0.0',
657 'versionchanged': ('4.5.0',
658 'The default changed from ``process-no-validate`` to ``process``')
659 },
660 {
661 'name' : 'disabled_algorithms',
662 'section' : 'dnssec',
663 'oldname' : 'dnssec-disabled-algorithms',
664 'type' : LType.ListStrings,
665 'default' : '',
666 'help' : 'List of DNSSEC algorithm numbers that are considered unsupported',
667 'doc' : '''
668 A list of DNSSEC algorithm numbers that should be considered disabled.
669 These algorithms will not be used to validate DNSSEC signatures.
670 Zones (only) signed with these algorithms will be considered ``Insecure``.
671
672 If this setting is empty (the default), :program:`Recursor` will determine which algorithms to disable automatically.
673 This is done for specific algorithms only, currently algorithms 5 (``RSASHA1``) and 7 (``RSASHA1NSEC3SHA1``).
674
675 This is important on systems that have a default strict crypto policy, like RHEL9 derived systems.
676 On such systems not disabling some algorithms (or changing the security policy) will make affected zones to be considered ``Bogus`` as using these algorithms fails.
677 ''',
678 'versionadded': '4.9.0'
679 },
680 {
681 'name' : 'log_bogus',
682 'section' : 'dnssec',
683 'oldname' : 'dnssec-log-bogus',
684 'type' : LType.Bool,
685 'default' : 'false',
686 'help' : 'Log DNSSEC bogus validations',
687 'doc' : '''
688 Log every DNSSEC validation failure.
689 **Note**: This is not logged per-query but every time records are validated as Bogus.
690 ''',
691 },
692 {
693 'name' : 'dont_query',
694 'section' : 'outgoing',
695 'type' : LType.ListSubnets,
696 'default' : '127.0.0.0/8, 10.0.0.0/8, 100.64.0.0/10, 169.254.0.0/16, 192.168.0.0/16, 172.16.0.0/12, ::1/128, fc00::/7, fe80::/10, 0.0.0.0/8, 192.0.0.0/24, 192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24, 240.0.0.0/4, ::/96, ::ffff:0:0/96, 100::/64, 2001:db8::/32',
697 'help' : 'If set, do not query these netmasks for DNS data',
698 'doc' : '''
699 The DNS is a public database, but sometimes contains delegations to private IP addresses, like for example 127.0.0.1.
700 This can have odd effects, depending on your network, and may even be a security risk.
701 Therefore, the PowerDNS Recursor by default does not query private space IP addresses.
702 This setting can be used to expand or reduce the limitations.
703
704 Queries for names in forward zones and to addresses as configured in any of the settings :ref:`setting-forward-zones`, :ref:`setting-forward-zones-file` or :ref:`setting-forward-zones-recurse` are performed regardless of these limitations.
705 ''',
706 },
707 {
708 'name' : 'add_for',
709 'section' : 'ecs',
710 'oldname' : 'ecs-add-for',
711 'type' : LType.ListSubnets,
712 'default' : '0.0.0.0/0, ::/0, !127.0.0.0/8, !10.0.0.0/8, !100.64.0.0/10, !169.254.0.0/16, !192.168.0.0/16, !172.16.0.0/12, !::1/128, !fc00::/7, !fe80::/10',
713 'help' : 'List of client netmasks for which EDNS Client Subnet will be added',
714 'doc' : '''
715 List of requestor netmasks for which the requestor IP Address should be used as the :rfc:`EDNS Client Subnet <7871>` for outgoing queries. Outgoing queries for requestors that do not match this list will use the :ref:`setting-ecs-scope-zero-address` instead.
716 Valid incoming ECS values from :ref:`setting-use-incoming-edns-subnet` are not replaced.
717
718 Regardless of the value of this setting, ECS values are only sent for outgoing queries matching the conditions in the :ref:`setting-edns-subnet-allow-list` setting. This setting only controls the actual value being sent.
719
720 This defaults to not using the requestor address inside RFC1918 and similar 'private' IP address spaces.
721 ''',
722 'versionadded': '4.2.0'
723 },
724 {
725 'name' : 'ipv4_bits',
726 'section' : 'ecs',
727 'oldname' : 'ecs-ipv4-bits',
728 'type' : LType.Uint64,
729 'default' : '24',
730 'help' : 'Number of bits of IPv4 address to pass for EDNS Client Subnet',
731 'doc' : '''
732 Number of bits of client IPv4 address to pass when sending EDNS Client Subnet address information.
733 ''',
734 'versionadded': '4.1.0'
735 },
736 {
737 'name' : 'ipv4_cache_bits',
738 'section' : 'ecs',
739 'oldname' : 'ecs-ipv4-cache-bits',
740 'type' : LType.Uint64,
741 'default' : '24',
742 'help' : 'Maximum number of bits of IPv4 mask to cache ECS response',
743 'doc' : '''
744 Maximum number of bits of client IPv4 address used by the authoritative server (as indicated by the EDNS Client Subnet scope in the answer) for an answer to be inserted into the query cache. This condition applies in conjunction with ``ecs-cache-limit-ttl``.
745 That is, only if both the limits apply, the record will not be cached. This decision can be overridden by ``ecs-ipv4-never-cache`` and ``ecs-ipv6-never-cache``.
746 ''',
747 'versionadded': '4.1.12'
748 },
749 {
750 'name' : 'ipv6_bits',
751 'section' : 'ecs',
752 'oldname' : 'ecs-ipv6-bits',
753 'type' : LType.Uint64,
754 'default' : '56',
755 'help' : 'Number of bits of IPv6 address to pass for EDNS Client Subnet',
756 'doc' : '''
757 Number of bits of client IPv6 address to pass when sending EDNS Client Subnet address information.
758 ''',
759 'versionadded': '4.1.0'
760 },
761 {
762 'name' : 'ipv6_cache_bits',
763 'section' : 'ecs',
764 'oldname' : 'ecs-ipv6-cache-bits',
765 'type' : LType.Uint64,
766 'default' : '56',
767 'help' : 'Maximum number of bits of IPv6 mask to cache ECS response',
768 'doc' : '''
769 Maximum number of bits of client IPv6 address used by the authoritative server (as indicated by the EDNS Client Subnet scope in the answer) for an answer to be inserted into the query cache. This condition applies in conjunction with ``ecs-cache-limit-ttl``.
770 That is, only if both the limits apply, the record will not be cached. This decision can be overridden by ``ecs-ipv4-never-cache`` and ``ecs-ipv6-never-cache``.
771 ''',
772 'versionadded': '4.1.12'
773 },
774 {
775 'name' : 'ipv4_never_cache',
776 'section' : 'ecs',
777 'oldname' : 'ecs-ipv4-never-cache',
778 'type' : LType.Bool,
779 'default' : 'false',
780 'help' : 'If we should never cache IPv4 ECS responses',
781 'doc' : '''
782 When set, never cache replies carrying EDNS IPv4 Client Subnet scope in the record cache.
783 In this case the decision made by ```ecs-ipv4-cache-bits`` and ``ecs-cache-limit-ttl`` is no longer relevant.
784 ''',
785 'versionadded': '4.5.0'
786 },
787 {
788 'name' : 'ipv6_never_cache',
789 'section' : 'ecs',
790 'oldname' : 'ecs-ipv6-never-cache',
791 'type' : LType.Bool,
792 'default' : 'false',
793 'help' : 'If we should never cache IPv6 ECS responses',
794 'doc' : '''
795 When set, never cache replies carrying EDNS IPv6 Client Subnet scope in the record cache.
796 In this case the decision made by ```ecs-ipv6-cache-bits`` and ``ecs-cache-limit-ttl`` is no longer relevant.
797 ''',
798 'versionadded': '4.5.0'
799 },
800 {
801 'name' : 'minimum_ttl_override',
802 'section' : 'ecs',
803 'oldname' : 'ecs-minimum-ttl-override',
804 'type' : LType.Uint64,
805 'default' : '1',
806 'help' : 'The minimum TTL for records in ECS-specific answers',
807 'doc' : '''
808 This setting artificially raises the TTLs of records in the ANSWER section of ECS-specific answers to be at least this long.
809 Setting this to a value greater than 1 technically is an RFC violation, but might improve performance a lot.
810 Using a value of 0 impacts performance of TTL 0 records greatly, since it forces the recursor to contact
811 authoritative servers every time a client requests them.
812 Can be set at runtime using ``rec_control set-ecs-minimum-ttl 3600``.
813 ''',
814 'versionchanged': ('4.5.0', 'Old versions used default 0.')
815 },
816 {
817 'name' : 'cache_limit_ttl',
818 'section' : 'ecs',
819 'oldname' : 'ecs-cache-limit-ttl',
820 'type' : LType.Uint64,
821 'default' : '0',
822 'help' : 'Minimum TTL to cache ECS response',
823 'doc' : '''
824 The minimum TTL for an ECS-specific answer to be inserted into the query cache. This condition applies in conjunction with ``ecs-ipv4-cache-bits`` or ``ecs-ipv6-cache-bits``.
825 That is, only if both the limits apply, the record will not be cached. This decision can be overridden by ``ecs-ipv4-never-cache`` and ``ecs-ipv6-never-cache``.
826 ''',
827 'versionadded': '4.1.12'
828 },
829 {
830 'name' : 'scope_zero_address',
831 'section' : 'ecs',
832 'oldname' : 'ecs-scope-zero-address',
833 'type' : LType.String,
834 'default' : '',
835 'help' : 'Address to send to allow-listed authoritative servers for incoming queries with ECS prefix-length source of 0',
836 'doc' : '''
837 The IP address sent via EDNS Client Subnet to authoritative servers listed in
838 :ref:`setting-edns-subnet-allow-list` when :ref:`setting-use-incoming-edns-subnet` is set and the query has
839 an ECS source prefix-length set to 0.
840 The default is to look for the first usable (not an ``any`` one) address in
841 :ref:`setting-query-local-address` (starting with IPv4). If no suitable address is
842 found, the recursor fallbacks to sending 127.0.0.1.
843 ''',
844 'versionadded': '4.1.0'
845 },
846 {
847 'name' : 'edns_bufsize',
848 'section' : 'outgoing',
849 'oldname' : 'edns-outgoing-bufsize',
850 'type' : LType.Uint64,
851 'default' : '1232',
852 'help' : 'Outgoing EDNS buffer size',
853 'doc' : '''
854 .. note:: Why 1232?
855
856 1232 is the largest number of payload bytes that can fit in the smallest IPv6 packet.
857 IPv6 has a minimum MTU of 1280 bytes (:rfc:`RFC 8200, section 5 <8200#section-5>`), minus 40 bytes for the IPv6 header, minus 8 bytes for the UDP header gives 1232, the maximum payload size for the DNS response.
858
859 This is the value set for the EDNS0 buffer size in outgoing packets.
860 Lower this if you experience timeouts.
861 ''',
862 'versionchanged': ('4.2.0', 'Before 4.2.0, the default was 1680')
863 },
864 {
865 'name' : 'edns_padding_from',
866 'section' : 'incoming',
867 'type' : LType.String,
868 'default' : '',
869 'help' : 'List of netmasks (proxy IP in case of proxy-protocol presence, client IP otherwise) for which EDNS padding will be enabled in responses, provided that \'edns-padding-mode\' applies',
870 'doc' : '''
871 List of netmasks (proxy IP in case of proxy-protocol presence, client IP otherwise) for which EDNS padding will be enabled in responses, provided that :ref:`setting-edns-padding-mode` applies.
872 ''',
873 'versionadded': '4.5.0'
874 },
875 {
876 'name' : 'edns_padding_mode',
877 'section' : 'incoming',
878 'type' : LType.String,
879 'default' : 'padded-queries-only',
880 'help' : 'Whether to add EDNS padding to all responses (\'always\') or only to responses for queries containing the EDNS padding option (\'padded-queries-only\', the default). In both modes, padding will only be added to responses for queries coming from \'setting-edns-padding-from\' sources',
881 'doc' : '''
882 One of ``always``, ``padded-queries-only``.
883 Whether to add EDNS padding to all responses (``always``) or only to responses for queries containing the EDNS padding option (``padded-queries-only``, the default).
884 In both modes, padding will only be added to responses for queries coming from :ref:`setting-edns-padding-from` sources.
885 ''',
886 'versionadded': '4.5.0'
887 },
888 {
889 'name' : 'edns_padding',
890 'section' : 'outgoing',
891 'oldname' : 'edns-padding-out',
892 'type' : LType.Bool,
893 'default' : 'true',
894 'help' : 'Whether to add EDNS padding to outgoing DoT messages',
895 'doc' : '''
896 Whether to add EDNS padding to outgoing DoT queries.
897 ''',
898 'versionadded': '4.8.0'
899 },
900 {
901 'name' : 'edns_padding_tag',
902 'section' : 'incoming',
903 'type' : LType.Uint64,
904 'default' : '7830',
905 'help' : 'Packetcache tag associated to responses sent with EDNS padding, to prevent sending these to clients for which padding is not enabled.',
906 'doc' : '''
907 The packetcache tag to use for padded responses, to prevent a client not allowed by the :ref::`setting-edns-padding-from` list to be served a cached answer generated for an allowed one. This
908 effectively divides the packet cache in two when :ref:`setting-edns-padding-from` is used. Note that this will not override a tag set from one of the ``Lua`` hooks.
909 ''',
910 'versionadded': '4.5.0'
911 },
912 {
913 'name' : 'edns_subnet_whitelist',
914 'section' : 'outgoing',
915 'type' : LType.String,
916 'default' : '',
917 'help' : 'List of netmasks and domains that we should enable EDNS subnet for (deprecated)',
918 'doc' : '',
919 'deprecated': ('4.5.0', 'Use :ref:`setting-edns-subnet-allow-list`.'),
920 'skip-yaml': True,
921 },
922 {
923 'name' : 'edns_subnet_allow_list',
924 'section' : 'outgoing',
925 'type' : LType.ListStrings,
926 'default' : '',
927 'help' : 'List of netmasks and domains that we should enable EDNS subnet for',
928 'doc' : '''
929 List of netmasks and domains that :rfc:`EDNS Client Subnet <7871>` should be enabled for in outgoing queries.
930
931 For example, an EDNS Client Subnet option containing the address of the initial requestor (but see :ref:`setting-ecs-add-for`) will be added to an outgoing query sent to server 192.0.2.1 for domain X if 192.0.2.1 matches one of the supplied netmasks, or if X matches one of the supplied domains.
932 The initial requestor address will be truncated to 24 bits for IPv4 (see :ref:`setting-ecs-ipv4-bits`) and to 56 bits for IPv6 (see :ref:`setting-ecs-ipv6-bits`), as recommended in the privacy section of RFC 7871.
933
934
935 Note that this setting describes the destination of outgoing queries, not the sources of incoming queries, nor the subnets described in the EDNS Client Subnet option.
936
937 By default, this option is empty, meaning no EDNS Client Subnet information is sent.
938 ''',
939 'versionadded': '4.5.0'
940 },
941 {
942 'name' : 'entropy_source',
943 'section' : 'recursor',
944 'type' : LType.String,
945 'default' : '/dev/urandom',
946 'help' : 'If set, read entropy from this file',
947 'doc' : '''
948 PowerDNS can read entropy from a (hardware) source.
949 This is used for generating random numbers which are very hard to predict.
950 Generally on UNIX platforms, this source will be ``/dev/urandom``, which will always supply random numbers, even if entropy is lacking.
951 Change to ``/dev/random`` if PowerDNS should block waiting for enough entropy to arrive.
952 ''',
953 'skip-yaml': True,
954 'versionchanged': ('4.9.0', 'This setting is no longer used.'),
955 },
956 {
957 'name' : 'etc_hosts_file',
958 'section' : 'recursor',
959 'type' : LType.String,
960 'default' : '/etc/hosts',
961 'help' : 'Path to \'hosts\' file',
962 'doc' : '''
963 The path to the /etc/hosts file, or equivalent.
964 This file can be used to serve data authoritatively using :ref:`setting-export-etc-hosts`.
965 ''',
966 },
967 {
968 'name' : 'event_trace_enabled',
969 'section' : 'recursor',
970 'type' : LType.Uint64,
971 'default' : '0',
972 'help' : 'If set, event traces are collected and send out via protobuf logging (1), logfile (2) or both(3)',
973 'doc' : '''
974 Enable the recording and logging of ref:`event traces`. This is an experimental feature and subject to change.
975 Possible values are 0: (disabled), 1 (add information to protobuf logging messages) and 2 (write to log) and 3 (both).
976 ''',
977 'versionadded': '4.6.0'
978 },
979 {
980 'name' : 'export_etc_hosts',
981 'section' : 'recursor',
982 'type' : LType.Bool,
983 'default' : 'false',
984 'help' : 'If we should serve up contents from /etc/hosts',
985 'doc' : '''
986 If set, this flag will export the host names and IP addresses mentioned in ``/etc/hosts``.
987 ''',
988 },
989 {
990 'name' : 'export_etc_hosts_search_suffix',
991 'section' : 'recursor',
992 'type' : LType.String,
993 'default' : '',
994 'help' : 'Also serve up the contents of /etc/hosts with this suffix',
995 'doc' : '''
996 If set, all hostnames in the :ref:`setting-export-etc-hosts` file are loaded in canonical form, based on this suffix, unless the name contains a '.', in which case the name is unchanged.
997 So an entry called 'pc' with ``export-etc-hosts-search-suffix='home.com'`` will lead to the generation of 'pc.home.com' within the recursor.
998 An entry called 'server1.home' will be stored as 'server1.home', regardless of this setting.
999 ''',
1000 },
1001 {
1002 'name' : 'extended_resolution_errors',
1003 'section' : 'recursor',
1004 'type' : LType.Bool,
1005 'default' : 'true',
1006 'help' : 'If set, send an EDNS Extended Error extension on resolution failures, like DNSSEC validation errors',
1007 'doc' : '''
1008 If set, the recursor will add an EDNS Extended Error (:rfc:`8914`) to responses when resolution failed, like DNSSEC validation errors, explaining the reason it failed. This setting is not needed to allow setting custom error codes from Lua or from a RPZ hit.
1009 ''',
1010 'versionadded': '4.5.0',
1011 'versionchanged': ('5.0.0', 'Default changed to enabled, previously it was disabled.'),
1012 },
1013 {
1014 'name' : 'forward_zones',
1015 'section' : 'recursor',
1016 'type' : LType.ListForwardZones,
1017 'default' : '',
1018 'help' : 'Zones for which we forward queries, comma separated domain=ip pairs',
1019 'doc' : '''
1020 Queries for zones listed here will be forwarded to the IP address listed. i.e.
1021
1022 .. code-block:: none
1023
1024 forward-zones=example.org=203.0.113.210, powerdns.com=2001:DB8::BEEF:5
1025
1026 Multiple IP addresses can be specified and port numbers other than 53 can be configured:
1027
1028 .. code-block:: none
1029
1030 forward-zones=example.org=203.0.113.210:5300;127.0.0.1, powerdns.com=127.0.0.1;198.51.100.10:530;[2001:DB8::1:3]:5300
1031
1032 Forwarded queries have the ``recursion desired (RD)`` bit set to ``0``, meaning that this setting is intended to forward queries to authoritative servers.
1033 If an ``NS`` record set for a subzone of the forwarded zone is learned, that record set will be used to determine addresses for name servers of the subzone.
1034 This allows e.g. a forward to a local authoritative server holding a copy of the root zone, delegations received from that server will work.
1035
1036 **IMPORTANT**: When using DNSSEC validation (which is default), forwards to non-delegated (e.g. internal) zones that have a DNSSEC signed parent zone will validate as Bogus.
1037 To prevent this, add a Negative Trust Anchor (NTA) for this zone in the :ref:`setting-lua-config-file` with ``addNTA('your.zone', 'A comment')``.
1038 If this forwarded zone is signed, instead of adding NTA, add the DS record to the :ref:`setting-lua-config-file`.
1039 See the :doc:`dnssec` information.
1040 ''',
1041 'doc-new' : '''
1042 Queries for zones listed here will be forwarded to the IP address listed. i.e.
1043
1044 .. code-block:: yaml
1045
1046 recursor:
1047 forward-zones:
1048 - zone: example.org
1049 forwarders:
1050 - 203.0.113.210
1051 - zone: powerdns.com
1052 forwarders:
1053 - 2001:DB8::BEEF:5
1054
1055 Multiple IP addresses can be specified and port numbers other than 53 can be configured:
1056
1057 .. code-block:: yaml
1058
1059 recursor:
1060 forward-zones:
1061 - zone: example.org
1062 forwarders:
1063 - 203.0.113.210:5300
1064 - 127.0.0.1
1065 - zone: powerdns.com
1066 forwarders:
1067 - 127.0.0.1
1068 - 198.51.100.10:530
1069 - '[2001:DB8::1:3]:5300'
1070
1071 Forwarded queries have the ``recursion desired (RD)`` bit set to ``0``, meaning that this setting is intended to forward queries to authoritative servers.
1072 If an ``NS`` record set for a subzone of the forwarded zone is learned, that record set will be used to determine addresses for name servers of the subzone.
1073 This allows e.g. a forward to a local authoritative server holding a copy of the root zone, delegations received from that server will work.
1074
1075 **IMPORTANT**: When using DNSSEC validation (which is default), forwards to non-delegated (e.g. internal) zones that have a DNSSEC signed parent zone will validate as Bogus.
1076 To prevent this, add a Negative Trust Anchor (NTA) for this zone in the :ref:`setting-lua-config-file` with ``addNTA('your.zone', 'A comment')``.
1077 If this forwarded zone is signed, instead of adding NTA, add the DS record to the :ref:`setting-lua-config-file`.
1078 See the :doc:`dnssec` information.
1079 ''',
1080 },
1081 {
1082 'name' : 'forward_zones_file',
1083 'section' : 'recursor',
1084 'type' : LType.String,
1085 'default' : '',
1086 'help' : 'File with (+)domain=ip pairs for forwarding',
1087 'doc' : '''
1088 Same as :ref:`setting-forward-zones`, parsed from a file. Only 1 zone is allowed per line, specified as follows:
1089
1090 .. code-block:: none
1091
1092 example.org=203.0.113.210, 192.0.2.4:5300
1093
1094 Zones prefixed with a ``+`` are treated as with
1095 :ref:`setting-forward-zones-recurse`. Default behaviour without ``+`` is as with
1096 :ref:`setting-forward-zones`.
1097
1098 The DNSSEC notes from :ref:`setting-forward-zones` apply here as well.
1099 ''',
1100 'doc-new' : '''
1101 Same as :ref:`setting-forward-zones`, parsed from a file as a sequence of `ZoneForward`.
1102
1103 .. code-block:: yaml
1104
1105 - zone: example1.com
1106 forwarders:
1107 - 127.0.0.1
1108 - 127.0.0.1:5353
1109 - '[::1]53'
1110 - zone: example2.com
1111 forwarders:
1112 - ::1
1113 recurse: true
1114 notify_allowed: true
1115
1116 The DNSSEC notes from :ref:`setting-forward-zones` apply here as well.
1117 ''',
1118 'versionchanged': [('4.0.0', '(Old style settings only) Comments are allowed, everything behind ``#`` is ignored.'),
1119 ('4.6.0', '(Old style settings only) Zones prefixed with a ``^`` are added to the :ref:`setting-allow-notify-for` list. Both prefix characters can be used if desired, in any order.')],
1120 },
1121 {
1122 'name' : 'forward_zones_recurse',
1123 'section' : 'recursor',
1124 'type' : LType.ListForwardZones,
1125 'default' : '',
1126 'help' : 'Zones for which we forward queries with recursion bit, comma separated domain=ip pairs',
1127 'doc' : '''
1128 Like regular :ref:`setting-forward-zones`, but forwarded queries have the ``recursion desired (RD)`` bit set to ``1``, meaning that this setting is intended to forward queries to other recursive servers.
1129 In contrast to regular forwarding, the rule that delegations of the forwarded subzones are respected is not active.
1130 This is because we rely on the forwarder to resolve the query fully.
1131
1132 See :ref:`setting-forward-zones` for additional options (such as supplying multiple recursive servers) and an important note about DNSSEC.
1133 ''',
1134 },
1135 {
1136 'name' : 'gettag_needs_edns_options',
1137 'section' : 'incoming',
1138 'type' : LType.Bool,
1139 'default' : 'false',
1140 'help' : 'If EDNS Options should be extracted before calling the gettag() hook',
1141 'doc' : '''
1142 If set, EDNS options in incoming queries are extracted and passed to the :func:`gettag` hook in the ``ednsoptions`` table.
1143 ''',
1144 'versionadded': '4.1.0'
1145 },
1146 {
1147 'name' : 'help',
1148 'section' : 'commands',
1149 'type' : LType.Command,
1150 'default' : 'no',
1151 'help' : 'Provide a helpful message',
1152 'doc' : '''
1153 EMPTY? '''
1154 },
1155 {
1156 'name' : 'hint_file',
1157 'section' : 'recursor',
1158 'type' : LType.String,
1159 'default' : '',
1160 'help' : 'If set, load root hints from this file',
1161 'doc' : '''
1162 If set, the root-hints are read from this file. If empty, the default built-in root hints are used.
1163
1164 In some special cases, processing the root hints is not needed, for example when forwarding all queries to another recursor.
1165 For these special cases, it is possible to disable the processing of root hints by setting the value to ``no`` or ``no-refresh``.
1166 See :ref:`handling-of-root-hints` for more information on root hints handling.
1167 ''',
1168 'versionchanged': [('4.6.2', 'Introduced the value ``no`` to disable root-hints processing.'),
1169 ('4.9.0', 'Introduced the value ``no-refresh`` to disable both root-hints processing and periodic refresh of the cached root `NS` records.')]
1170 },
1171 {
1172 'name' : 'ignore_unknown_settings',
1173 'section' : 'recursor',
1174 'type' : LType.ListStrings,
1175 'default' : '',
1176 'help' : 'Configuration settings to ignore if they are unknown',
1177 'doc' : '''
1178 Names of settings to be ignored while parsing configuration files, if the setting
1179 name is unknown to PowerDNS.
1180
1181 Useful during upgrade testing.
1182 ''',
1183 },
1184 {
1185 'name' : 'include_dir',
1186 'section' : 'recursor',
1187 'type' : LType.String,
1188 'default' : '',
1189 'help' : 'Include *.conf files from this directory',
1190 'doc' : '''
1191 Directory to scan for additional config files. All files that end with .conf are loaded in order using ``POSIX`` as locale.
1192 ''',
1193 },
1194 {
1195 'name' : 'latency_statistic_size',
1196 'section' : 'recursor',
1197 'type' : LType.Uint64,
1198 'default' : '10000',
1199 'help' : 'Number of latency values to calculate the qa-latency average',
1200 'doc' : '''
1201 Indication of how many queries will be averaged to get the average latency reported by the 'qa-latency' metric.
1202 ''',
1203 },
1204 {
1205 'name' : 'listen',
1206 'section' : 'incoming',
1207 'oldname' : 'local-address',
1208 'type' : LType.ListSocketAddresses,
1209 'default' : '127.0.0.1',
1210 'help' : 'IP addresses to listen on, separated by spaces or commas. Also accepts ports.',
1211 'doc' : '''
1212 Local IP addresses to which we bind. Each address specified can
1213 include a port number; if no port is included then the
1214 :ref:`setting-local-port` port will be used for that address. If a
1215 port number is specified, it must be separated from the address with a
1216 ':'; for an IPv6 address the address must be enclosed in square
1217 brackets.
1218
1219 Examples::
1220
1221 local-address=127.0.0.1 ::1
1222 local-address=0.0.0.0:5353
1223 local-address=[::]:8053
1224 local-address=127.0.0.1:53, [::1]:5353
1225 ''',
1226 'doc-new' : '''
1227 Local IP addresses to which we bind. Each address specified can
1228 include a port number; if no port is included then the
1229 :ref:`setting-local-port` port will be used for that address. If a
1230 port number is specified, it must be separated from the address with a
1231 ':'; for an IPv6 address the address must be enclosed in square
1232 brackets.
1233
1234 Example:
1235
1236 .. code-block:: yaml
1237
1238 incoming:
1239 listen:
1240 - 127.0.0.1
1241 - listen: '[::1]:5353'
1242 - listen: '::'
1243 ''',
1244 },
1245 {
1246 'name' : 'port',
1247 'section' : 'incoming',
1248 'oldname' : 'local-port',
1249 'type' : LType.Uint64,
1250 'default' : '53',
1251 'help' : 'port to listen on',
1252 'doc' : '''
1253 Local port to bind to.
1254 If an address in :ref:`setting-local-address` does not have an explicit port, this port is used.
1255 ''',
1256 },
1257 {
1258 'name' : 'timestamp',
1259 'section' : 'logging',
1260 'oldname' : 'log-timestamp',
1261 'type' : LType.Bool,
1262 'default' : 'true',
1263 'help' : 'Print timestamps in log lines, useful to disable when running with a tool that timestamps stdout already',
1264 'doc' : '''
1265
1266 ''',
1267 },
1268 {
1269 'name' : 'non_local_bind',
1270 'section' : 'incoming',
1271 'type' : LType.Bool,
1272 'default' : 'false',
1273 'help' : 'Enable binding to non-local addresses by using FREEBIND / BINDANY socket options',
1274 'doc' : '''
1275 Bind to addresses even if one or more of the :ref:`setting-local-address`'s do not exist on this server.
1276 Setting this option will enable the needed socket options to allow binding to non-local addresses.
1277 This feature is intended to facilitate ip-failover setups, but it may also mask configuration issues and for this reason it is disabled by default.
1278 ''',
1279 },
1280 {
1281 'name' : 'loglevel',
1282 'section' : 'logging',
1283 'type' : LType.Uint64,
1284 'default' : '6',
1285 'help' : 'Amount of logging. Higher is more. Do not set below 3',
1286 'doc' : '''
1287 Amount of logging. The higher the number, the more lines logged.
1288 Corresponds to ``syslog`` level values (e.g. 0 = ``emergency``, 1 = ``alert``, 2 = ``critical``, 3 = ``error``, 4 = ``warning``, 5 = ``notice``, 6 = ``info``, 7 = ``debug``).
1289 Each level includes itself plus the lower levels before it.
1290 Not recommended to set this below 3.
1291 If :ref:`setting-quiet` is ``no/false``, :ref:`setting-loglevel` will be minimally set to ``6 (info)``.
1292 ''',
1293 'versionchanged': ('5.0.0', 'Previous version would not allow setting a level below ``3 (error)``.')
1294 },
1295 {
1296 'name' : 'common_errors',
1297 'section' : 'logging',
1298 'oldname' : 'log-common-errors',
1299 'type' : LType.Bool,
1300 'default' : 'false',
1301 'help' : 'If we should log rather common errors',
1302 'doc' : '''
1303 Some DNS errors occur rather frequently and are no cause for alarm.
1304 ''',
1305 },
1306 {
1307 'name' : 'rpz_changes',
1308 'section' : 'logging',
1309 'oldname' : 'log-rpz-changes',
1310 'type' : LType.Bool,
1311 'default' : 'false',
1312 'help' : 'Log additions and removals to RPZ zones at Info level',
1313 'doc' : '''
1314 Log additions and removals to RPZ zones at Info (6) level instead of Debug (7).
1315 ''',
1316 'versionadded': '4.1.0'
1317 },
1318 {
1319 'name' : 'facility',
1320 'section' : 'logging',
1321 'oldname' : 'logging-facility',
1322 'type' : LType.String,
1323 'default' : '',
1324 'help' : 'Facility to log messages as. 0 corresponds to local0',
1325 'doc' : '''
1326 If set to a digit, logging is performed under this LOCAL facility.
1327 See :ref:`logging`.
1328 Do not pass names like 'local0'!
1329 ''',
1330 },
1331 {
1332 'name' : 'lowercase',
1333 'section' : 'outgoing',
1334 'oldname' : 'lowercase-outgoing',
1335 'type' : LType.Bool,
1336 'default' : 'false',
1337 'help' : 'Force outgoing questions to lowercase',
1338 'doc' : '''
1339 Set to true to lowercase the outgoing queries.
1340 When set to 'no' (the default) a query from a client using mixed case in the DNS labels (such as a user entering mixed-case names or `draft-vixie-dnsext-dns0x20-00 <http://tools.ietf.org/html/draft-vixie-dnsext-dns0x20-00>`_), PowerDNS preserves the case of the query.
1341 Broken authoritative servers might give a wrong or broken answer on this encoding.
1342 Setting ``lowercase-outgoing`` to 'yes' makes the PowerDNS Recursor lowercase all the labels in the query to the authoritative servers, but still return the proper case to the client requesting.
1343 ''',
1344 },
1345 {
1346 'name' : 'lua_config_file',
1347 'section' : 'recursor',
1348 'type' : LType.String,
1349 'default' : '',
1350 'help' : 'More powerful configuration options',
1351 'doc' : '''
1352 If set, and Lua support is compiled in, this will load an additional configuration file for newer features and more complicated setups.
1353 See :doc:`lua-config/index` for the options that can be set in this file.
1354 ''',
1355 },
1356 {
1357 'name' : 'lua_dns_script',
1358 'section' : 'recursor',
1359 'type' : LType.String,
1360 'default' : '',
1361 'help' : 'Filename containing an optional Lua script that will be used to modify dns answers',
1362 'doc' : '''
1363 Path to a lua file to manipulate the Recursor's answers. See :doc:`lua-scripting/index` for more information.
1364 ''',
1365 },
1366 {
1367 'name' : 'lua_maintenance_interval',
1368 'section' : 'recursor',
1369 'type' : LType.Uint64,
1370 'default' : '1',
1371 'help' : 'Number of seconds between calls to the lua user defined maintenance() function',
1372 'doc' : '''
1373 The interval between calls to the Lua user defined `maintenance()` function in seconds.
1374 See :ref:`hooks-maintenance-callback`
1375 ''',
1376 'versionadded': '4.2.0'
1377 },
1378 {
1379 'name' : 'max_busy_dot_probes',
1380 'section' : 'outgoing',
1381 'type' : LType.Uint64,
1382 'default' : '0',
1383 'help' : 'Maximum number of concurrent DoT probes',
1384 'doc' : '''
1385 Limit the maximum number of simultaneous DoT probes the Recursor will schedule.
1386 The default value 0 means no DoT probes are scheduled.
1387
1388 DoT probes are used to check if an authoritative server's IP address supports DoT.
1389 If the probe determines an IP address supports DoT, the Recursor will use DoT to contact it for subsequent queries until a failure occurs.
1390 After a failure, the Recursor will stop using DoT for that specific IP address for a while.
1391 The results of probes are remembered and can be viewed by the ``rec_control dump-dot-probe-map`` command.
1392 If the maximum number of pending probes is reached, no probes will be scheduled, even if no DoT status is known for an address.
1393 If the result of a probe is not yet available, the Recursor will contact the authoritative server in the regular way, unless an authoritative server is configured to be contacted over DoT always using :ref:`setting-dot-to-auth-names`.
1394 In that case no probe will be scheduled.
1395
1396 .. note::
1397 DoT probing is an experimental feature.
1398 Please test thoroughly to determine if it is suitable in your specific production environment before enabling.
1399 ''',
1400 'versionadded': '4.7.0'
1401 },
1402 {
1403 'name' : 'max_cache_bogus_ttl',
1404 'section' : 'recordcache',
1405 'type' : LType.Uint64,
1406 'default' : '3600',
1407 'help' : 'maximum number of seconds to keep a Bogus (positive or negative) cached entry in memory',
1408 'doc' : '''
1409 Maximum number of seconds to cache an item in the DNS cache (negative or positive) if its DNSSEC validation failed, no matter what the original TTL specified, to reduce the impact of a broken domain.
1410 ''',
1411 'versionadded': '4.2.0'
1412 },
1413 {
1414 'name' : 'max_entries',
1415 'section' : 'recordcache',
1416 'oldname' : 'max-cache-entries',
1417 'type' : LType.Uint64,
1418 'default' : '1000000',
1419 'help' : 'If set, maximum number of entries in the main cache',
1420 'doc' : '''
1421 Maximum number of DNS record cache entries, shared by all threads since 4.4.0.
1422 Each entry associates a name and type with a record set.
1423 The size of the negative cache is 10% of this number.
1424 ''',
1425 },
1426 {
1427 'name' : 'max_ttl',
1428 'section' : 'recordcache',
1429 'oldname' : 'max-cache-ttl',
1430 'type' : LType.Uint64,
1431 'default' : '86400',
1432 'help' : 'maximum number of seconds to keep a cached entry in memory',
1433 'doc' : '''
1434 Maximum number of seconds to cache an item in the DNS cache, no matter what the original TTL specified.
1435 This value also controls the refresh period of cached root data.
1436 See :ref:`handling-of-root-hints` for more information on this.
1437 ''',
1438 'versionchanged': ('4.1.0', 'The minimum value of this setting is 15. i.e. setting this to lower than 15 will make this value 15.')
1439 },
1440 {
1441 'name' : 'max_concurrent_requests_per_tcp_connection',
1442 'section' : 'incoming',
1443 'type' : LType.Uint64,
1444 'default' : '10',
1445 'help' : 'Maximum number of requests handled concurrently per TCP connection',
1446 'doc' : '''
1447 Maximum number of incoming requests handled concurrently per tcp
1448 connection. This number must be larger than 0 and smaller than 65536
1449 and also smaller than `max-mthreads`.
1450 ''',
1451 'versionadded': '4.3.0'
1452 },
1453 {
1454 'name' : 'max_include_depth',
1455 'section' : 'recursor',
1456 'type' : LType.Uint64,
1457 'default' : '20',
1458 'help' : 'Maximum nested $INCLUDE depth when loading a zone from a file',
1459 'doc' : '''
1460 Maximum number of nested ``$INCLUDE`` directives while processing a zone file.
1461 Zero mean no ``$INCLUDE`` directives will be accepted.
1462 ''',
1463 'versionadded': '4.6.0'
1464 },
1465 {
1466 'name' : 'max_generate_steps',
1467 'section' : 'recursor',
1468 'type' : LType.Uint64,
1469 'default' : '0',
1470 'help' : 'Maximum number of $GENERATE steps when loading a zone from a file',
1471 'doc' : '''
1472 Maximum number of steps for a '$GENERATE' directive when parsing a
1473 zone file. This is a protection measure to prevent consuming a lot of
1474 CPU and memory when untrusted zones are loaded. Default to 0 which
1475 means unlimited.
1476 ''',
1477 'versionadded': '4.3.0'
1478 },
1479 {
1480 'name' : 'max_mthreads',
1481 'section' : 'recursor',
1482 'type' : LType.Uint64,
1483 'default' : '2048',
1484 'help' : 'Maximum number of simultaneous Mtasker threads',
1485 'doc' : '''
1486 Maximum number of simultaneous MTasker threads.
1487 ''',
1488 },
1489 {
1490 'name' : 'max_entries',
1491 'section' : 'packetcache',
1492 'oldname' : 'max-packetcache-entries',
1493 'type' : LType.Uint64,
1494 'default' : '500000',
1495 'help' : 'maximum number of entries to keep in the packetcache',
1496 'doc' : '''
1497 Maximum number of Packet Cache entries. Sharded and shared by all threads since 4.9.0.
1498 ''',
1499 },
1500 {
1501 'name' : 'max_qperq',
1502 'section' : 'outgoing',
1503 'type' : LType.Uint64,
1504 'default' : '50',
1505 'help' : 'Maximum outgoing queries per query',
1506 'doc' : '''
1507 The maximum number of outgoing queries that will be sent out during the resolution of a single client query.
1508 This is used to avoid cycles resolving names.
1509 ''',
1510 'versionchanged': ('5.1.0', 'The default used to be 60, with an extra allowance if qname minimization was enabled. Having better algorithms allows for a lower default limit.'),
1511 },
1512 {
1513 'name' : 'max_ns_address_qperq',
1514 'section' : 'outgoing',
1515 'type' : LType.Uint64,
1516 'default' : '10',
1517 'help' : 'Maximum outgoing NS address queries per query',
1518 'doc' : '''
1519 The maximum number of outgoing queries with empty replies for
1520 resolving nameserver names to addresses we allow during the resolution
1521 of a single client query. If IPv6 is enabled, an A and a AAAA query
1522 for a name counts as 1. If a zone publishes more than this number of
1523 NS records, the limit is further reduced for that zone by lowering
1524 it by the number of NS records found above the
1525 :ref:`setting-max-ns-address-qperq` value. The limit wil not be reduced to a
1526 number lower than 5.
1527 ''',
1528 'versionadded' : ['4.1.16', '4.2.2', '4.3.1']
1529 },
1530 {
1531 'name' : 'max_ns_per_resolve',
1532 'section' : 'outgoing',
1533 'type' : LType.Uint64,
1534 'default' : '13',
1535 'help' : 'Maximum number of NS records to consider to resolve a name, 0 is no limit',
1536 'doc' : '''
1537 The maximum number of NS records that will be considered to select a nameserver to contact to resolve a name.
1538 If a zone has more than :ref:`setting-max-ns-per-resolve` NS records, a random sample of this size will be used.
1539 If :ref:`setting-max-ns-per-resolve` is zero, no limit applies.
1540 ''',
1541 'versionadded': ['4.8.0', '4.7.3', '4.6.4', '4.5.11']
1542 },
1543 {
1544 'name' : 'max_negative_ttl',
1545 'section' : 'recordcache',
1546 'type' : LType.Uint64,
1547 'default' : '3600',
1548 'help' : 'maximum number of seconds to keep a negative cached entry in memory',
1549 'doc' : '''
1550 A query for which there is authoritatively no answer is cached to quickly deny a record's existence later on, without putting a heavy load on the remote server.
1551 In practice, caches can become saturated with hundreds of thousands of hosts which are tried only once.
1552 This setting, which defaults to 3600 seconds, puts a maximum on the amount of time negative entries are cached.
1553 ''',
1554 },
1555 {
1556 'name' : 'max_recursion_depth',
1557 'section' : 'recursor',
1558 'type' : LType.Uint64,
1559 'default' : '16',
1560 'help' : 'Maximum number of internal recursion calls per query, 0 for unlimited',
1561 'doc' : '''
1562 Total maximum number of internal recursion calls the server may use to answer a single query.
1563 0 means unlimited.
1564 The value of :ref:`setting-stack-size` should be increased together with this one to prevent the stack from overflowing.
1565 If :ref:`setting-qname-minimization` is enabled, the fallback code in case of a failing resolve is allowed an additional `max-recursion-depth/2`.
1566 ''',
1567 'versionchanged': [('4.1.0', 'Before 4.1.0, this settings was unlimited.'),
1568 ('4.9.0', "Before 4.9.0 this setting's default was 40 and the limit on ``CNAME`` chains (fixed at 16) acted as a bound on he recursion depth.")]
1569 },
1570 {
1571 'name' : 'max_tcp_clients',
1572 'section' : 'incoming',
1573 'type' : LType.Uint64,
1574 'default' : '128',
1575 'help' : 'Maximum number of simultaneous TCP clients',
1576 'doc' : '''
1577 Maximum number of simultaneous incoming TCP connections allowed.
1578 ''',
1579 },
1580 {
1581 'name' : 'max_tcp_per_client',
1582 'section' : 'incoming',
1583 'type' : LType.Uint64,
1584 'default' : '0',
1585 'help' : 'If set, maximum number of TCP sessions per client (IP address)',
1586 'doc' : '''
1587 Maximum number of simultaneous incoming TCP connections allowed per client (remote IP address).
1588 0 means unlimited.
1589 ''',
1590 },
1591 {
1592 'name' : 'max_tcp_queries_per_connection',
1593 'section' : 'incoming',
1594 'type' : LType.Uint64,
1595 'default' : '0',
1596 'help' : 'If set, maximum number of TCP queries in a TCP connection',
1597 'doc' : '''
1598 Maximum number of DNS queries in a TCP connection.
1599 0 means unlimited.
1600 ''',
1601 'versionadded': '4.1.0'
1602 },
1603 {
1604 'name' : 'max_total_msec',
1605 'section' : 'recursor',
1606 'type' : LType.Uint64,
1607 'default' : '7000',
1608 'help' : 'Maximum total wall-clock time per query in milliseconds, 0 for unlimited',
1609 'doc' : '''
1610 Total maximum number of milliseconds of wallclock time the server may use to answer a single query.
1611 0 means unlimited.
1612 ''',
1613 },
1614 {
1615 'name' : 'max_udp_queries_per_round',
1616 'section' : 'incoming',
1617 'type' : LType.Uint64,
1618 'default' : '10000',
1619 'help' : 'Maximum number of UDP queries processed per recvmsg() round, before returning back to normal processing',
1620 'doc' : '''
1621 Under heavy load the recursor might be busy processing incoming UDP queries for a long while before there is no more of these, and might therefore
1622 neglect scheduling new ``mthreads``, handling responses from authoritative servers or responding to :doc:`rec_control <manpages/rec_control.1>`
1623 requests.
1624 This setting caps the maximum number of incoming UDP DNS queries processed in a single round of looping on ``recvmsg()`` after being woken up by the multiplexer, before
1625 returning back to normal processing and handling other events.
1626 ''',
1627 'versionadded': '4.1.4'
1628 },
1629 {
1630 'name' : 'minimum_ttl_override',
1631 'section' : 'recursor',
1632 'type' : LType.Uint64,
1633 'default' : '1',
1634 'help' : 'The minimum TTL',
1635 'doc' : '''
1636 This setting artificially raises all TTLs to be at least this long.
1637 Setting this to a value greater than 1 technically is an RFC violation, but might improve performance a lot.
1638 Using a value of 0 impacts performance of TTL 0 records greatly, since it forces the recursor to contact
1639 authoritative servers each time a client requests them.
1640 Can be set at runtime using ``rec_control set-minimum-ttl 3600``.
1641 ''',
1642 'versionchanged': ('4.5.0', 'Old versions used default 0.')
1643 },
1644 {
1645 'name' : 'tracking',
1646 'section' : 'nod',
1647 'oldname' : 'new-domain-tracking',
1648 'type' : LType.Bool,
1649 'default' : 'false',
1650 'help' : 'Track newly observed domains (i.e. never seen before).',
1651 'doc' : '''
1652 Whether to track newly observed domains, i.e. never seen before. This
1653 is a probabilistic algorithm, using a stable bloom filter to store
1654 records of previously seen domains. When enabled for the first time,
1655 all domains will appear to be newly observed, so the feature is best
1656 left enabled for e.g. a week or longer before using the results. Note
1657 that this feature is optional and must be enabled at compile-time,
1658 thus it may not be available in all pre-built packages.
1659 If protobuf is enabled and configured, then the newly observed domain
1660 status will appear as a flag in Response messages.
1661 ''',
1662 'versionadded': '4.2.0'
1663 },
1664 {
1665 'name' : 'log',
1666 'section' : 'nod',
1667 'oldname' : 'new-domain-log',
1668 'type' : LType.Bool,
1669 'default' : 'true',
1670 'help' : 'Log newly observed domains.',
1671 'doc' : '''
1672 If a newly observed domain is detected, log that domain in the
1673 recursor log file. The log line looks something like::
1674
1675 Jul 18 11:31:25 Newly observed domain nod=sdfoijdfio.com
1676 ''',
1677 'versionadded': '4.2.0'
1678 },
1679 {
1680 'name' : 'lookup',
1681 'section' : 'nod',
1682 'oldname' : 'new-domain-lookup',
1683 'type' : LType.String,
1684 'default' : '',
1685 'help' : 'Perform a DNS lookup newly observed domains as a subdomain of the configured domain',
1686 'doc' : '''
1687 If a domain is specified, then each time a newly observed domain is
1688 detected, the recursor will perform an A record lookup of '<newly
1689 observed domain>.<lookup domain>'. For example if 'new-domain-lookup'
1690 is configured as 'nod.powerdns.com', and a new domain 'xyz123.tv' is
1691 detected, then an A record lookup will be made for
1692 'xyz123.tv.nod.powerdns.com'. This feature gives a way to share the
1693 newly observed domain with partners, vendors or security teams. The
1694 result of the DNS lookup will be ignored by the recursor.
1695 ''',
1696 'versionadded': '4.2.0'
1697 },
1698 {
1699 'name' : 'db_size',
1700 'section' : 'nod',
1701 'oldname' : 'new-domain-db-size',
1702 'type' : LType.Uint64,
1703 'default' : '67108864',
1704 'help' : 'Size of the DB used to track new domains in terms of number of cells. Defaults to 67108864',
1705 'doc' : '''
1706 The default size of the stable bloom filter used to store previously
1707 observed domains is 67108864. To change the number of cells, use this
1708 setting. For each cell, the SBF uses 1 bit of memory, and one byte of
1709 disk for the persistent file.
1710 If there are already persistent files saved to disk, this setting will
1711 have no effect unless you remove the existing files.
1712 ''',
1713 'versionadded': '4.2.0'
1714 },
1715 {
1716 'name' : 'history_dir',
1717 'section' : 'nod',
1718 'oldname' : 'new-domain-history-dir',
1719 'type' : LType.String,
1720 'default' : 'NODCACHEDIRNOD',
1721 'docdefault': 'Determined by distribution',
1722 'help' : 'Persist new domain tracking data here to persist between restarts',
1723 'doc' : '''
1724 This setting controls which directory is used to store the on-disk
1725 cache of previously observed domains.
1726
1727 The default depends on ``LOCALSTATEDIR`` when building the software.
1728 Usually this comes down to ``/var/lib/pdns-recursor/nod`` or ``/usr/local/var/lib/pdns-recursor/nod``).
1729
1730 The newly observed domain feature uses a stable bloom filter to store
1731 a history of previously observed domains. The data structure is
1732 synchronized to disk every 10 minutes, and is also initialized from
1733 disk on startup. This ensures that previously observed domains are
1734 preserved across recursor restarts.
1735 If you change the new-domain-db-size setting, you must remove any files
1736 from this directory.
1737 ''',
1738 'versionadded': '4.2.0'
1739 },
1740 {
1741 'name' : 'whitelist',
1742 'section' : 'nod',
1743 'oldname' : 'new-domain-whitelist',
1744 'type' : LType.String,
1745 'default' : '',
1746 'help' : 'List of domains (and implicitly all subdomains) which will never be considered a new domain (deprecated)',
1747 'doc' : '',
1748 'versionadded': '4.2.0',
1749 'deprecated': ('4.5.0', 'Use :ref:`setting-new-domain-ignore-list`.'),
1750 'skip-yaml': True,
1751 },
1752 {
1753 'name' : 'ignore_list',
1754 'section' : 'nod',
1755 'oldname' : 'new-domain-ignore-list',
1756 'type' : LType.ListStrings,
1757 'default' : '',
1758 'help' : 'List of domains (and implicitly all subdomains) which will never be considered a new domain',
1759 'doc' : '''
1760 This setting is a list of all domains (and implicitly all subdomains)
1761 that will never be considered a new domain. For example, if the domain
1762 'xyz123.tv' is in the list, then 'foo.bar.xyz123.tv' will never be
1763 considered a new domain. One use-case for the ignore list is to never
1764 reveal details of internal subdomains via the new-domain-lookup
1765 feature.
1766 ''',
1767 'versionadded': '4.5.0'
1768 },
1769 {
1770 'name' : 'pb_tag',
1771 'section' : 'nod',
1772 'oldname' : 'new-domain-pb-tag',
1773 'type' : LType.String,
1774 'default' : 'pdns-nod',
1775 'help' : 'If protobuf is configured, the tag to use for messages containing newly observed domains. Defaults to \'pdns-nod\'',
1776 'doc' : '''
1777 If protobuf is configured, then this tag will be added to all protobuf response messages when
1778 a new domain is observed.
1779 ''',
1780 'versionadded': '4.2.0'
1781 },
1782 {
1783 'name' : 'network_timeout',
1784 'section' : 'outgoing',
1785 'type' : LType.Uint64,
1786 'default' : '1500',
1787 'help' : 'Wait this number of milliseconds for network i/o',
1788 'doc' : '''
1789 Number of milliseconds to wait for a remote authoritative server to respond.
1790 ''',
1791 },
1792 {
1793 'name' : 'no_shuffle',
1794 'section' : 'recursor',
1795 'type' : LType.Bool,
1796 'default' : 'false',
1797 'help' : 'Don\'t change',
1798 'doc' : 'SKIP',
1799 'skip-yaml': True,
1800 },
1801 {
1802 'name' : 'non_resolving_ns_max_fails',
1803 'section' : 'outgoing',
1804 'type' : LType.Uint64,
1805 'default' : '5',
1806 'help' : 'Number of failed address resolves of a nameserver to start throttling it, 0 is disabled',
1807 'doc' : '''
1808 Number of failed address resolves of a nameserver name to start throttling it, 0 is disabled.
1809 Nameservers matching :ref:`setting-dont-throttle-names` will not be throttled.
1810 ''',
1811 'versionadded': '4.5.0'
1812 },
1813 {
1814 'name' : 'non_resolving_ns_throttle_time',
1815 'section' : 'outgoing',
1816 'type' : LType.Uint64,
1817 'default' : '60',
1818 'help' : 'Number of seconds to throttle a nameserver with a name failing to resolve',
1819 'doc' : '''
1820 Number of seconds to throttle a nameserver with a name failing to resolve.
1821 ''',
1822 'versionadded': '4.5.0'
1823 },
1824 {
1825 'name' : 'nothing_below_nxdomain',
1826 'section' : 'recursor',
1827 'type' : LType.String,
1828 'default' : 'dnssec',
1829 'help' : 'When an NXDOMAIN exists in cache for a name with fewer labels than the qname, send NXDOMAIN without doing a lookup (see RFC 8020)',
1830 'doc' : '''
1831 - One of ``no``, ``dnssec``, ``yes``.
1832
1833 The type of :rfc:`8020` handling using cached NXDOMAIN responses.
1834 This RFC specifies that NXDOMAIN means that the DNS tree under the denied name MUST be empty.
1835 When an NXDOMAIN exists in the cache for a shorter name than the qname, no lookup is done and an NXDOMAIN is sent to the client.
1836
1837 For instance, when ``foo.example.net`` is negatively cached, any query
1838 matching ``*.foo.example.net`` will be answered with NXDOMAIN directly
1839 without consulting authoritative servers.
1840
1841 ``no``
1842 No :rfc:`8020` processing is done.
1843
1844 ``dnssec``
1845 :rfc:`8020` processing is only done using cached NXDOMAIN records that are
1846 DNSSEC validated.
1847
1848 ``yes``
1849 :rfc:`8020` processing is done using any non-Bogus NXDOMAIN record
1850 available in the cache.
1851 ''',
1852 'versionadded': '4.3.0'
1853 },
1854 {
1855 'name' : 'nsec3_max_iterations',
1856 'section' : 'dnssec',
1857 'type' : LType.Uint64,
1858 'default' : '50',
1859 'help' : 'Maximum number of iterations allowed for an NSEC3 record',
1860 'doc' : '''
1861 Maximum number of iterations allowed for an NSEC3 record.
1862 If an answer containing an NSEC3 record with more iterations is received, its DNSSEC validation status is treated as ``Insecure``.
1863 ''',
1864 'versionadded': '4.1.0',
1865 'versionchanged': [('4.5.2', 'Default is now 150, was 2500 before.'),
1866 ('5.0.0', 'Default is now 50, was 150 before.')]
1867 },
1868 {
1869 'name' : 'max_rrsigs_per_record',
1870 'section' : 'dnssec',
1871 'type' : LType.Uint64,
1872 'default' : '2',
1873 'help' : 'Maximum number of RRSIGs to consider when validating a given record',
1874 'doc' : '''
1875 Maximum number of RRSIGs we are willing to cryptographically check when validating a given record. Expired or not yet incepted RRSIGs do not count toward to this limit.
1876 ''',
1877 'versionadded': ['5.0.2', '4.9.3', '4.8.6'],
1878 },
1879 {
1880 'name' : 'max_nsec3s_per_record',
1881 'section' : 'dnssec',
1882 'type' : LType.Uint64,
1883 'default' : '10',
1884 'help' : 'Maximum number of NSEC3s to consider when validating a given denial of existence',
1885 'doc' : '''
1886 Maximum number of NSEC3s to consider when validating a given denial of existence.
1887 ''',
1888 'versionadded': ['5.0.2', '4.9.3', '4.8.6'],
1889 },
1890 {
1891 'name' : 'max_signature_validations_per_query',
1892 'section' : 'dnssec',
1893 'type' : LType.Uint64,
1894 'default' : '30',
1895 'help' : 'Maximum number of RRSIG signatures we are willing to validate per incoming query',
1896 'doc' : '''
1897 Maximum number of RRSIG signatures we are willing to validate per incoming query.
1898 ''',
1899 'versionadded': ['5.0.2', '4.9.3', '4.8.6'],
1900 },
1901 {
1902 'name' : 'max_nsec3_hash_computations_per_query',
1903 'section' : 'dnssec',
1904 'type' : LType.Uint64,
1905 'default' : '600',
1906 'help' : 'Maximum number of NSEC3 hashes that we are willing to compute during DNSSEC validation, per incoming query',
1907 'doc' : '''
1908 Maximum number of NSEC3 hashes that we are willing to compute during DNSSEC validation, per incoming query.
1909 ''',
1910 'versionadded': ['5.0.2', '4.9.3', '4.8.6'],
1911 },
1912 {
1913 'name' : 'aggressive_cache_max_nsec3_hash_cost',
1914 'section' : 'dnssec',
1915 'type' : LType.Uint64,
1916 'default' : '150',
1917 'help' : 'Maximum estimated NSEC3 cost for a given query to consider aggressive use of the NSEC3 cache',
1918 'doc' : '''
1919 Maximum estimated NSEC3 cost for a given query to consider aggressive use of the NSEC3 cache. The cost is estimated based on a heuristic taking the zone's NSEC3 salt and iterations parameters into account, as well at the number of labels of the requested name. For example a query for a name like a.b.c.d.e.f.example.com. in an example.com zone. secured with NSEC3 and 10 iterations (NSEC3 iterations count of 9) and an empty salt will have an estimated worst-case cost of 10 (iterations) * 6 (number of labels) = 60. The aggressive NSEC cache is an optimization to reduce the number of queries to authoritative servers, which is especially useful when a zone is under pseudo-random subdomain attack, and we want to skip it the zone parameters make it expensive.
1920 ''',
1921 'versionadded': ['5.0.2', '4.9.3', '4.8.6'],
1922 },
1923 {
1924 'name' : 'max_ds_per_zone',
1925 'section' : 'dnssec',
1926 'type' : LType.Uint64,
1927 'default' : '8',
1928 'help' : 'Maximum number of DS records to consider per zone',
1929 'doc' : '''
1930 Maximum number of DS records to consider when validating records inside a zone..
1931 ''',
1932 'versionadded': ['5.0.2', '4.9.3', '4.8.6'],
1933 },
1934 {
1935 'name' : 'max_dnskeys',
1936 'section' : 'dnssec',
1937 'type' : LType.Uint64,
1938 'default' : '2',
1939 'help' : 'Maximum number of DNSKEYs with the same algorithm and tag to consider when validating a given record',
1940 'doc' : '''
1941 Maximum number of DNSKEYs with the same algorithm and tag to consider when validating a given record. Setting this value to 1 effectively denies DNSKEY tag collisions in a zone.
1942 ''',
1943 'versionadded': ['5.0.2', '4.9.3', '4.8.6'],
1944 },
1945 {
1946 'name' : 'ttl',
1947 'section' : 'packetcache',
1948 'oldname' : 'packetcache-ttl',
1949 'type' : LType.Uint64,
1950 'default' : '86400',
1951 'help' : 'maximum number of seconds to keep a cached entry in packetcache',
1952 'doc' : '''
1953 Maximum number of seconds to cache an item in the packet cache, no matter what the original TTL specified.
1954 ''',
1955 'versionchanged': ('4.9.0', 'The default was changed from 3600 (1 hour) to 86400 (24 hours).')
1956 },
1957 {
1958 'name' : 'negative_ttl',
1959 'section' : 'packetcache',
1960 'oldname' : 'packetcache-negative-ttl',
1961 'type' : LType.Uint64,
1962 'default' : '60',
1963 'help' : 'maximum number of seconds to keep a cached NxDomain or NoData entry in packetcache',
1964 'doc' : '''
1965 Maximum number of seconds to cache an ``NxDomain`` or ``NoData`` answer in the packetcache.
1966 This setting's maximum is capped to :ref:`setting-packetcache-ttl`.
1967 i.e. setting ``packetcache-ttl=15`` and keeping ``packetcache-negative-ttl`` at the default will lower ``packetcache-negative-ttl`` to ``15``.
1968 ''',
1969 'versionadded': '4.9.0'
1970 },
1971 {
1972 'name' : 'servfail_ttl',
1973 'section' : 'packetcache',
1974 'oldname' : 'packetcache-servfail-ttl',
1975 'type' : LType.Uint64,
1976 'default' : '60',
1977 'help' : 'maximum number of seconds to keep a cached servfail entry in packetcache',
1978 'doc' : '''
1979 Maximum number of seconds to cache an answer indicating a failure to resolve in the packet cache.
1980 Before version 4.6.0 only ``ServFail`` answers were considered as such. Starting with 4.6.0, all responses with a code other than ``NoError`` and ``NXDomain``, or without records in the answer and authority sections, are considered as a failure to resolve.
1981 Since 4.9.0, negative answers are handled separately from resolving failures.
1982 ''',
1983 'doc-rst' : '''
1984 'versionchanged': ('4.0.0', "This setting's maximum is capped to :ref:`setting-packetcache-ttl`.
1985 i.e. setting ``packetcache-ttl=15`` and keeping ``packetcache-servfail-ttl`` at the default will lower ``packetcache-servfail-ttl`` to ``15``.")
1986 '''
1987 },
1988 {
1989 'name' : 'shards',
1990 'section' : 'packetcache',
1991 'oldname' : 'packetcache-shards',
1992 'type' : LType.Uint64,
1993 'default' : '1024',
1994 'help' : 'Number of shards in the packet cache',
1995 'doc' : '''
1996 Sets the number of shards in the packet cache. If you have high contention as reported by ``packetcache-contented/packetcache-acquired``,
1997 you can try to enlarge this value or run with fewer threads.
1998 ''',
1999 'versionadded': '4.9.0'
2000 },
2001 {
2002 'name' : 'pdns_distributes_queries',
2003 'section' : 'incoming',
2004 'type' : LType.Bool,
2005 'default' : 'false',
2006 'help' : 'If PowerDNS itself should distribute queries over threads',
2007 'doc' : '''
2008 If set, PowerDNS will use distinct threads to listen to client sockets and distribute that work to worker-threads using a hash of the query.
2009 This feature should maximize the cache hit ratio on versions before 4.9.0.
2010 To use more than one thread set :ref:`setting-distributor-threads` in version 4.2.0 or newer.
2011 Enabling should improve performance on systems where :ref:`setting-reuseport` does not have the effect of
2012 balancing the queries evenly over multiple worker threads.
2013 ''',
2014 'versionchanged': ('4.9.0', 'Default changed to ``no``, previously it was ``yes``.')
2015 },
2016 {
2017 'name' : 'processes',
2018 'section' : 'recursor',
2019 'type' : LType.Uint64,
2020 'default' : '1',
2021 'help' : 'Launch this number of processes (EXPERIMENTAL, DO NOT CHANGE)',
2022 'doc' : '''SKIP''',
2023 'skip-yaml': True,
2024 },
2025 {
2026 'name' : 'protobuf_use_kernel_timestamp',
2027 'section' : 'logging',
2028 'type' : LType.Bool,
2029 'default' : 'false',
2030 'help' : 'Compute the latency of queries in protobuf messages by using the timestamp set by the kernel when the query was received (when available)',
2031 'doc' : '''
2032 Whether to compute the latency of responses in protobuf messages using the timestamp set by the kernel when the query packet was received (when available), instead of computing it based on the moment we start processing the query.
2033 ''',
2034 'versionadded': '4.2.0'
2035 },
2036 {
2037 'name' : 'proxy_protocol_from',
2038 'section' : 'incoming',
2039 'type' : LType.String,
2040 'default' : '',
2041 'help' : 'A Proxy Protocol header is only allowed from these subnets',
2042 'doc' : '''
2043 Ranges that are required to send a Proxy Protocol version 2 header in front of UDP and TCP queries, to pass the original source and destination addresses and ports to the recursor, as well as custom values.
2044 Queries that are not prefixed with such a header will not be accepted from clients in these ranges. Queries prefixed by headers from clients that are not listed in these ranges will be dropped.
2045
2046 Note that once a Proxy Protocol header has been received, the source address from the proxy header instead of the address of the proxy will be checked against the :ref:`setting-allow-from` ACL.
2047
2048 The dnsdist docs have `more information about the PROXY protocol <https://dnsdist.org/advanced/passing-source-address.html#proxy-protocol>`_.
2049 ''',
2050 'versionadded': '4.4.0'
2051 },
2052 {
2053 'name' : 'proxy_protocol_maximum_size',
2054 'section' : 'incoming',
2055 'type' : LType.Uint64,
2056 'default' : '512',
2057 'help' : 'The maximum size of a proxy protocol payload, including the TLV values',
2058 'doc' : '''
2059 The maximum size, in bytes, of a Proxy Protocol payload (header, addresses and ports, and TLV values). Queries with a larger payload will be dropped.
2060 ''',
2061 'versionadded': '4.4.0'
2062 },
2063 {
2064 'name' : 'public_suffix_list_file',
2065 'section' : 'recursor',
2066 'type' : LType.String,
2067 'default' : '',
2068 'help' : 'Path to the Public Suffix List file, if any',
2069 'doc' : '''
2070 Path to the Public Suffix List file, if any. If set, PowerDNS will try to load the Public Suffix List from this file instead of using the built-in list. The PSL is used to group the queries by relevant domain names when displaying the top queries.
2071 ''',
2072 'versionadded': '4.2.0'
2073 },
2074 {
2075 'name' : 'qname_minimization',
2076 'section' : 'recursor',
2077 'type' : LType.Bool,
2078 'default' : 'true',
2079 'help' : 'Use Query Name Minimization',
2080 'doc' : '''
2081 Enable Query Name Minimization. This implements a relaxed form of Query Name Mimimization as
2082 described in :rfc:`9156`.
2083 ''',
2084 'versionadded': '4.3.0'
2085 },
2086 {
2087 'name' : 'qname_max_minimize_count',
2088 'section' : 'recursor',
2089 'type' : LType.Uint64,
2090 'default' : '10',
2091 'help' : 'RFC9156 max minimize count',
2092 'doc' : '''
2093 ``Max minimize count`` parameter, described in :rfc:`9156`. This is the maximum number of iterations
2094 of the Query Name Minimization Algorithm.
2095 ''',
2096 'versionadded': '5.0.0'
2097 },
2098 {
2099 'name' : 'qname_minimize_one_label',
2100 'section' : 'recursor',
2101 'type' : LType.Uint64,
2102 'default' : '4',
2103 'help' : 'RFC9156 minimize one label parameter',
2104 'doc' : '''
2105 ``Minimize one label`` parameter, described in :rfc:`9156`.
2106 The value for the number of iterations of the Query Name Minimization Algorithm that should only have one label appended.
2107 This value has precedence over :ref:`setting-qname-max-minimize-count`.
2108 ''',
2109 'versionadded': '5.0.0'
2110 },
2111 {
2112 'name' : 'source_address',
2113 'section' : 'outgoing',
2114 'oldname' : 'query-local-address',
2115 'type' : LType.ListSubnets,
2116 'default' : '0.0.0.0',
2117 'help' : 'Source IP address for sending queries',
2118 'doc' : '''
2119 Send out local queries from this address, or addresses. By adding multiple
2120 addresses, increased spoofing resilience is achieved. When no address of a certain
2121 address family is configured, there are *no* queries sent with that address family.
2122 In the default configuration this means that IPv6 is not used for outgoing queries.
2123 ''',
2124 'versionchanged': ('4.4.0', 'IPv6 addresses can be set with this option as well.')
2125 },
2126 {
2127 'name' : 'quiet',
2128 'section' : 'logging',
2129 'type' : LType.Bool,
2130 'default' : 'true',
2131 'help' : 'Suppress logging of questions and answers',
2132 'doc' : '''
2133 Don't log queries.
2134 ''',
2135 },
2136 {
2137 'name' : 'locked_ttl_perc',
2138 'section' : 'recordcache',
2139 'oldname' : 'record-cache-locked-ttl-perc',
2140 'type' : LType.Uint64,
2141 'default' : '0',
2142 'help' : 'Replace records in record cache only after this % of original TTL has passed',
2143 'doc' : '''
2144 Replace record sets in the record cache only after this percentage of the original TTL has passed.
2145 The PowerDNS Recursor already has several mechanisms to protect against spoofing attempts.
2146 This adds an extra layer of protection---as it limits the window of time cache updates are accepted---at the cost of a less efficient record cache.
2147
2148 The default value of 0 means no extra locking occurs.
2149 When non-zero, record sets received (e.g. in the Additional Section) will not replace existing record sets in the record cache until the given percentage of the original TTL has expired.
2150 A value of 100 means only expired record sets will be replaced.
2151
2152 There are a few cases where records will be replaced anyway:
2153
2154 - Record sets that are expired will always be replaced.
2155 - Authoritative record sets will replace unauthoritative record sets unless DNSSEC validation of the new record set failed.
2156 - If the new record set belongs to a DNSSEC-secure zone and successfully passed validation it will replace an existing entry.
2157 - Record sets produced by :ref:`setting-refresh-on-ttl-perc` tasks will also replace existing record sets.
2158 ''',
2159 'versionadded': '4.8.0'
2160 },
2161 {
2162 'name' : 'shards',
2163 'section' : 'recordcache',
2164 'oldname' : 'record-cache-shards',
2165 'type' : LType.Uint64,
2166 'default' : '1024',
2167 'help' : 'Number of shards in the record cache',
2168 'doc' : '''
2169 Sets the number of shards in the record cache. If you have high
2170 contention as reported by
2171 ``record-cache-contented/record-cache-acquired``, you can try to
2172 enlarge this value or run with fewer threads.
2173 ''',
2174 'versionadded': '4.4.0'
2175 },
2176 {
2177 'name' : 'refresh_on_ttl_perc',
2178 'section' : 'recordcache',
2179 'type' : LType.Uint64,
2180 'default' : '0',
2181 'help' : 'If a record is requested from the cache and only this % of original TTL remains, refetch',
2182 'doc' : '''
2183 Sets the 'refresh almost expired' percentage of the record cache. Whenever a record is fetched from the packet or record cache
2184 and only ``refresh-on-ttl-perc`` percent or less of its original TTL is left, a task is queued to refetch the name/type combination to
2185 update the record cache. In most cases this causes future queries to always see a non-expired record cache entry.
2186 A typical value is 10. If the value is zero, this functionality is disabled.
2187 ''',
2188 'versionadded': '4.5.0'
2189 },
2190 {
2191 'name' : 'reuseport',
2192 'section' : 'incoming',
2193 'type' : LType.Bool,
2194 'default' : 'true',
2195 'help' : 'Enable SO_REUSEPORT allowing multiple recursors processes to listen to 1 address',
2196 'doc' : '''
2197 If ``SO_REUSEPORT`` support is available, allows multiple threads and processes to open listening sockets for the same port.
2198
2199 Since 4.1.0, when :ref:`setting-pdns-distributes-queries` is disabled and :ref:`setting-reuseport` is enabled, every worker-thread will open a separate listening socket to let the kernel distribute the incoming queries instead of running a distributor thread (which could otherwise be a bottleneck) and avoiding thundering herd issues, thus leading to much higher performance on multi-core boxes.
2200 ''',
2201 'versionchanged': ('4.9.0', 'The default is changed to ``yes``, previously it was ``no``. If ``SO_REUSEPORT`` support is not available, the setting defaults to ``no``.')
2202 },
2203 {
2204 'name' : 'rng',
2205 'section' : 'recursor',
2206 'type' : LType.String,
2207 'default' : 'auto',
2208 'help' : 'Specify random number generator to use. Valid values are auto,sodium,openssl,getrandom,arc4random,urandom.',
2209 'doc' : '''
2210 - String
2211 - Default: auto
2212
2213 Specify which random number generator to use. Permissible choices are
2214 - auto - choose automatically
2215 - sodium - Use libsodium ``randombytes_uniform``
2216 - openssl - Use libcrypto ``RAND_bytes``
2217 - getrandom - Use libc getrandom, falls back to urandom if it does not really work
2218 - arc4random - Use BSD ``arc4random_uniform``
2219 - urandom - Use ``/dev/urandom``
2220 - kiss - Use simple settable deterministic RNG. **FOR TESTING PURPOSES ONLY!**
2221 ''',
2222 'skip-yaml': True,
2223 'versionchanged': ('4.9.0', 'This setting is no longer used.')
2224 },
2225 {
2226 'name' : 'root_nx_trust',
2227 'section' : 'recursor',
2228 'type' : LType.Bool,
2229 'default' : 'true',
2230 'help' : 'If set, believe that an NXDOMAIN from the root means the TLD does not exist',
2231 'doc' : '''
2232 If set, an NXDOMAIN from the root-servers will serve as a blanket NXDOMAIN for the entire TLD the query belonged to.
2233 The effect of this is far fewer queries to the root-servers.
2234 ''',
2235 'versionchanged': ('4.0.0', "Default is ``yes`` now, was ``no`` before 4.0.0")
2236 },
2237 {
2238 'name' : 'save_parent_ns_set',
2239 'section' : 'recursor',
2240 'type' : LType.Bool,
2241 'default' : 'true',
2242 'help' : 'Save parent NS set to be used if child NS set fails',
2243 'doc' : '''
2244 If set, a parent (non-authoritative) ``NS`` set is saved if it contains more entries than a newly encountered child (authoritative) ``NS`` set for the same domain.
2245 The saved parent ``NS`` set is tried if resolution using the child ``NS`` set fails.
2246 ''',
2247 'versionadded': '4.7.0'
2248 },
2249 {
2250 'name' : 'security_poll_suffix',
2251 'section' : 'recursor',
2252 'type' : LType.String,
2253 'default' : 'secpoll.powerdns.com.',
2254 'help' : 'Domain name from which to query security update notifications',
2255 'doc' : '''
2256 Domain name from which to query security update notifications.
2257 Setting this to an empty string disables secpoll.
2258 ''',
2259 },
2260 {
2261 'name' : 'serve_rfc1918',
2262 'section' : 'recursor',
2263 'type' : LType.Bool,
2264 'default' : 'true',
2265 'help' : 'If we should be authoritative for RFC 1918 private IP space',
2266 'doc' : '''
2267 This makes the server authoritatively aware of: ``10.in-addr.arpa``, ``168.192.in-addr.arpa``, ``16-31.172.in-addr.arpa``, which saves load on the AS112 servers.
2268 Individual parts of these zones can still be loaded or forwarded.
2269 ''',
2270 },
2271 {
2272 'name' : 'serve_stale_extensions',
2273 'section' : 'recordcache',
2274 'type' : LType.Uint64,
2275 'default' : '0',
2276 'help' : 'Number of times a record\'s ttl is extended by 30s to be served stale',
2277 'doc' : '''
2278 Maximum number of times an expired record's TTL is extended by 30s when serving stale.
2279 Extension only occurs if a record cannot be refreshed.
2280 A value of 0 means the ``Serve Stale`` mechanism is not used.
2281 To allow records becoming stale to be served for an hour, use a value of 120.
2282 See :ref:`serve-stale` for a description of the Serve Stale mechanism.
2283 ''',
2284 'versionadded': '4.8.0'
2285 },
2286 {
2287 'name' : 'server_down_max_fails',
2288 'section' : 'outgoing',
2289 'type' : LType.Uint64,
2290 'default' : '64',
2291 'help' : 'Maximum number of consecutive timeouts (and unreachables) to mark a server as down ( 0 => disabled )',
2292 'doc' : '''
2293 If a server has not responded in any way this many times in a row, no longer send it any queries for :ref:`setting-server-down-throttle-time` seconds.
2294 Afterwards, we will try a new packet, and if that also gets no response at all, we again throttle for :ref:`setting-server-down-throttle-time` seconds.
2295 Even a single response packet will drop the block.
2296 ''',
2297 },
2298 {
2299 'name' : 'server_down_throttle_time',
2300 'section' : 'outgoing',
2301 'type' : LType.Uint64,
2302 'default' : '60',
2303 'help' : 'Number of seconds to throttle all queries to a server after being marked as down',
2304 'doc' : '''
2305 Throttle a server that has failed to respond :ref:`setting-server-down-max-fails` times for this many seconds.
2306 ''',
2307 },
2308 {
2309 'name' : 'bypass_server_throttling_probability',
2310 'section' : 'outgoing',
2311 'type' : LType.Uint64,
2312 'default' : '25',
2313 'help' : 'Determines the probability of a server marked down to be used anyway',
2314 'doc' : '''
2315 This setting determines the probability of a server marked down to be used anyway.
2316 A value of ``n`` means that the chance of a server marked down still being used after it wins speed selection is is ``1/n``.
2317 If this setting is zero throttled servers will never be selected to be used anyway.
2318 ''',
2319 'versionadded': '5.0.0'
2320 },
2321 {
2322 'name' : 'server_id',
2323 'section' : 'recursor',
2324 'type' : LType.String,
2325 'default' : RUNTIME,
2326 'help' : 'Returned when queried for \'id.server\' TXT or NSID, defaults to hostname, set custom or \'disabled\'',
2327 'doc' : '''
2328 The reply given by The PowerDNS recursor to a query for 'id.server' with its hostname, useful for in clusters.
2329 When a query contains the :rfc:`NSID EDNS0 Option <5001>`, this value is returned in the response as the NSID value.
2330
2331 This setting can be used to override the answer given to these queries.
2332 Set to 'disabled' to disable NSID and 'id.server' answers.
2333
2334 Query example (where 192.0.2.14 is your server):
2335
2336 .. code-block:: sh
2337
2338 dig @192.0.2.14 CHAOS TXT id.server.
2339 dig @192.0.2.14 example.com IN A +nsid
2340 ''',
2341 },
2342 {
2343 'name' : 'setgid',
2344 'section' : 'recursor',
2345 'type' : LType.String,
2346 'default' : '',
2347 'help' : 'If set, change group id to this gid for more security',
2348 'doc' : '''
2349 PowerDNS can change its user and group id after binding to its socket.
2350 Can be used for better :doc:`security <security>`.
2351 '''
2352 },
2353 {
2354 'name' : 'setuid',
2355 'section' : 'recursor',
2356 'type' : LType.String,
2357 'default' : '',
2358 'help' : 'If set, change user id to this uid for more security',
2359 'doc' : '''
2360 PowerDNS can change its user and group id after binding to its socket.
2361 Can be used for better :doc:`security <security>`.
2362 '''
2363 },
2364 {
2365 'name' : 'signature_inception_skew',
2366 'section' : 'dnssec',
2367 'type' : LType.Uint64,
2368 'default' : '60',
2369 'help' : 'Allow the signature inception to be off by this number of seconds',
2370 'doc' : '''
2371 Allow the signature inception to be off by this number of seconds. Negative values are not allowed.
2372 ''',
2373 'versionadded': '4.1.5',
2374 'versionchanged': ('4.2.0', 'Default is now 60, was 0 before.')
2375 },
2376 {
2377 'name' : 'single_socket',
2378 'section' : 'outgoing',
2379 'type' : LType.Bool,
2380 'default' : 'false',
2381 'help' : 'If set, only use a single socket for outgoing queries',
2382 'doc' : '''
2383 Use only a single socket for outgoing queries.
2384 ''',
2385 },
2386 {
2387 'name' : 'agent',
2388 'section' : 'snmp',
2389 'oldname' : 'snmp-agent',
2390 'type' : LType.Bool,
2391 'default' : 'false',
2392 'help' : 'If set, register as an SNMP agent',
2393 'doc' : '''
2394 If set to true and PowerDNS has been compiled with SNMP support, it will register as an SNMP agent to provide statistics and be able to send traps.
2395 ''',
2396 'versionadded': '4.1.0'
2397 },
2398 {
2399 'name' : 'master_socket',
2400 'section' : 'snmp',
2401 'oldname' : 'snmp-master-socket',
2402 'type' : LType.String,
2403 'default' : '',
2404 'help' : 'If set and snmp-agent is set, the socket to use to register to the SNMP daemon (deprecated)',
2405 'doc' : '''
2406 ''',
2407 'versionadded': '4.1.0',
2408 'deprecated': ('4.5.0', 'Use :ref:`setting-snmp-daemon-socket`.'),
2409 'skip-yaml': True,
2410 },
2411 {
2412 'name' : 'daemon_socket',
2413 'section' : 'snmp',
2414 'oldname' : 'snmp-daemon-socket',
2415 'type' : LType.String,
2416 'default' : '',
2417 'help' : 'If set and snmp-agent is set, the socket to use to register to the SNMP daemon',
2418 'doc' : '''
2419 If not empty and ``snmp-agent`` is set to true, indicates how PowerDNS should contact the SNMP daemon to register as an SNMP agent.
2420 ''',
2421 'versionadded': '4.5.0'
2422 },
2423 {
2424 'name' : 'soa_minimum_ttl',
2425 'section' : 'recursor',
2426 'type' : LType.Uint64,
2427 'default' : '0',
2428 'help' : 'Don\'t change',
2429 'doc' : '''SKIP''',
2430 'skip-yaml': True,
2431 },
2432 {
2433 'name' : 'socket_dir',
2434 'section' : 'recursor',
2435 'type' : LType.String,
2436 'default' : '',
2437 'help' : 'Where the controlsocket will live, /var/run/pdns-recursor when unset and not chrooted',
2438 'doc' : '''
2439 Where to store the control socket and pidfile.
2440 The default depends on ``LOCALSTATEDIR`` or the ``--with-socketdir`` setting when building (usually ``/var/run`` or ``/run``).
2441
2442 When using :ref:`setting-chroot` the default becomes ``/``.
2443 The default value is overruled by the ``RUNTIME_DIRECTORY`` environment variable when that variable has a value (e.g. under systemd).
2444 ''',
2445 },
2446 {
2447 'name' : 'socket_group',
2448 'section' : 'recursor',
2449 'type' : LType.String,
2450 'default' : '',
2451 'help' : 'Group of socket',
2452 'doc' : '''
2453 Group and mode of the controlsocket.
2454 Owner and group can be specified by name, mode is in octal.
2455 '''
2456 },
2457 {
2458 'name' : 'socket_mode',
2459 'section' : 'recursor',
2460 'type' : LType.String,
2461 'default' : '',
2462 'help' : 'Permissions for socket',
2463 'doc' : '''
2464 Mode of the controlsocket.
2465 Owner and group can be specified by name, mode is in octal.
2466 '''
2467 },
2468 {
2469 'name' : 'socket_owner',
2470 'section' : 'recursor',
2471 'type' : LType.String,
2472 'default' : '',
2473 'help' : 'Owner of socket',
2474 'doc' : '''
2475 Owner of the controlsocket.
2476 Owner and group can be specified by name, mode is in octal.
2477 '''
2478 },
2479 {
2480 'name' : 'spoof_nearmiss_max',
2481 'section' : 'recursor',
2482 'type' : LType.Uint64,
2483 'default' : '1',
2484 'help' : 'If non-zero, assume spoofing after this many near misses',
2485 'doc' : '''
2486 If set to non-zero, PowerDNS will assume it is being spoofed after seeing this many answers with the wrong id.
2487 ''',
2488 'versionchanged': ('4.5.0', 'Older versions used 20 as the default value.')
2489 },
2490 {
2491 'name' : 'stack_cache_size',
2492 'section' : 'recursor',
2493 'type' : LType.Uint64,
2494 'default' : '100',
2495 'help' : 'Size of the stack cache, per mthread',
2496 'doc' : '''
2497 Maximum number of mthread stacks that can be cached for later reuse, per thread. Caching these stacks reduces the CPU load at the cost of a slightly higher memory usage, each cached stack consuming `stack-size` bytes of memory.
2498 It makes no sense to cache more stacks than the value of `max-mthreads`, since there will never be more stacks than that in use at a given time.
2499 ''',
2500 'versionadded': '4.9.0'
2501 },
2502 {
2503 'name' : 'stack_size',
2504 'section' : 'recursor',
2505 'type' : LType.Uint64,
2506 'default' : '200000',
2507 'help' : 'stack size per mthread',
2508 'doc' : '''
2509 Size in bytes of the stack of each mthread.
2510 ''',
2511 },
2512 {
2513 'name' : 'statistics_interval',
2514 'section' : 'logging',
2515 'type' : LType.Uint64,
2516 'default' : '1800',
2517 'help' : 'Number of seconds between printing of recursor statistics, 0 to disable',
2518 'doc' : '''
2519 Interval between logging statistical summary on recursor performance.
2520 Use 0 to disable.
2521 ''',
2522 'versionadded': '4.1.0'
2523 },
2524 {
2525 'name' : 'stats_api_blacklist',
2526 'section' : 'recursor',
2527 'type' : LType.ListStrings,
2528 'default' : 'cache-bytes, packetcache-bytes, special-memory-usage, ecs-v4-response-bits-1, ecs-v4-response-bits-2, ecs-v4-response-bits-3, ecs-v4-response-bits-4, ecs-v4-response-bits-5, ecs-v4-response-bits-6, ecs-v4-response-bits-7, ecs-v4-response-bits-8, ecs-v4-response-bits-9, ecs-v4-response-bits-10, ecs-v4-response-bits-11, ecs-v4-response-bits-12, ecs-v4-response-bits-13, ecs-v4-response-bits-14, ecs-v4-response-bits-15, ecs-v4-response-bits-16, ecs-v4-response-bits-17, ecs-v4-response-bits-18, ecs-v4-response-bits-19, ecs-v4-response-bits-20, ecs-v4-response-bits-21, ecs-v4-response-bits-22, ecs-v4-response-bits-23, ecs-v4-response-bits-24, ecs-v4-response-bits-25, ecs-v4-response-bits-26, ecs-v4-response-bits-27, ecs-v4-response-bits-28, ecs-v4-response-bits-29, ecs-v4-response-bits-30, ecs-v4-response-bits-31, ecs-v4-response-bits-32, ecs-v6-response-bits-1, ecs-v6-response-bits-2, ecs-v6-response-bits-3, ecs-v6-response-bits-4, ecs-v6-response-bits-5, ecs-v6-response-bits-6, ecs-v6-response-bits-7, ecs-v6-response-bits-8, ecs-v6-response-bits-9, ecs-v6-response-bits-10, ecs-v6-response-bits-11, ecs-v6-response-bits-12, ecs-v6-response-bits-13, ecs-v6-response-bits-14, ecs-v6-response-bits-15, ecs-v6-response-bits-16, ecs-v6-response-bits-17, ecs-v6-response-bits-18, ecs-v6-response-bits-19, ecs-v6-response-bits-20, ecs-v6-response-bits-21, ecs-v6-response-bits-22, ecs-v6-response-bits-23, ecs-v6-response-bits-24, ecs-v6-response-bits-25, ecs-v6-response-bits-26, ecs-v6-response-bits-27, ecs-v6-response-bits-28, ecs-v6-response-bits-29, ecs-v6-response-bits-30, ecs-v6-response-bits-31, ecs-v6-response-bits-32, ecs-v6-response-bits-33, ecs-v6-response-bits-34, ecs-v6-response-bits-35, ecs-v6-response-bits-36, ecs-v6-response-bits-37, ecs-v6-response-bits-38, ecs-v6-response-bits-39, ecs-v6-response-bits-40, ecs-v6-response-bits-41, ecs-v6-response-bits-42, ecs-v6-response-bits-43, ecs-v6-response-bits-44, ecs-v6-response-bits-45, ecs-v6-response-bits-46, ecs-v6-response-bits-47, ecs-v6-response-bits-48, ecs-v6-response-bits-49, ecs-v6-response-bits-50, ecs-v6-response-bits-51, ecs-v6-response-bits-52, ecs-v6-response-bits-53, ecs-v6-response-bits-54, ecs-v6-response-bits-55, ecs-v6-response-bits-56, ecs-v6-response-bits-57, ecs-v6-response-bits-58, ecs-v6-response-bits-59, ecs-v6-response-bits-60, ecs-v6-response-bits-61, ecs-v6-response-bits-62, ecs-v6-response-bits-63, ecs-v6-response-bits-64, ecs-v6-response-bits-65, ecs-v6-response-bits-66, ecs-v6-response-bits-67, ecs-v6-response-bits-68, ecs-v6-response-bits-69, ecs-v6-response-bits-70, ecs-v6-response-bits-71, ecs-v6-response-bits-72, ecs-v6-response-bits-73, ecs-v6-response-bits-74, ecs-v6-response-bits-75, ecs-v6-response-bits-76, ecs-v6-response-bits-77, ecs-v6-response-bits-78, ecs-v6-response-bits-79, ecs-v6-response-bits-80, ecs-v6-response-bits-81, ecs-v6-response-bits-82, ecs-v6-response-bits-83, ecs-v6-response-bits-84, ecs-v6-response-bits-85, ecs-v6-response-bits-86, ecs-v6-response-bits-87, ecs-v6-response-bits-88, ecs-v6-response-bits-89, ecs-v6-response-bits-90, ecs-v6-response-bits-91, ecs-v6-response-bits-92, ecs-v6-response-bits-93, ecs-v6-response-bits-94, ecs-v6-response-bits-95, ecs-v6-response-bits-96, ecs-v6-response-bits-97, ecs-v6-response-bits-98, ecs-v6-response-bits-99, ecs-v6-response-bits-100, ecs-v6-response-bits-101, ecs-v6-response-bits-102, ecs-v6-response-bits-103, ecs-v6-response-bits-104, ecs-v6-response-bits-105, ecs-v6-response-bits-106, ecs-v6-response-bits-107, ecs-v6-response-bits-108, ecs-v6-response-bits-109, ecs-v6-response-bits-110, ecs-v6-response-bits-111, ecs-v6-response-bits-112, ecs-v6-response-bits-113, ecs-v6-response-bits-114, ecs-v6-response-bits-115, ecs-v6-response-bits-116, ecs-v6-response-bits-117, ecs-v6-response-bits-118, ecs-v6-response-bits-119, ecs-v6-response-bits-120, ecs-v6-response-bits-121, ecs-v6-response-bits-122, ecs-v6-response-bits-123, ecs-v6-response-bits-124, ecs-v6-response-bits-125, ecs-v6-response-bits-126, ecs-v6-response-bits-127, ecs-v6-response-bits-128',
2529 'help' : 'List of statistics that are disabled when retrieving the complete list of statistics via the API (deprecated)',
2530 'docdefault': '',
2531 'doc' : '',
2532 'versionadded': '4.2.0',
2533 'deprecated': ('4.5.0', 'Use :ref:`setting-stats-api-disabled-list`.'),
2534 'skip-yaml': True,
2535 },
2536 {
2537 'name' : 'stats_api_disabled_list',
2538 'section' : 'recursor',
2539 'type' : LType.ListStrings,
2540 'default' : 'cache-bytes, packetcache-bytes, special-memory-usage, ecs-v4-response-bits-1, ecs-v4-response-bits-2, ecs-v4-response-bits-3, ecs-v4-response-bits-4, ecs-v4-response-bits-5, ecs-v4-response-bits-6, ecs-v4-response-bits-7, ecs-v4-response-bits-8, ecs-v4-response-bits-9, ecs-v4-response-bits-10, ecs-v4-response-bits-11, ecs-v4-response-bits-12, ecs-v4-response-bits-13, ecs-v4-response-bits-14, ecs-v4-response-bits-15, ecs-v4-response-bits-16, ecs-v4-response-bits-17, ecs-v4-response-bits-18, ecs-v4-response-bits-19, ecs-v4-response-bits-20, ecs-v4-response-bits-21, ecs-v4-response-bits-22, ecs-v4-response-bits-23, ecs-v4-response-bits-24, ecs-v4-response-bits-25, ecs-v4-response-bits-26, ecs-v4-response-bits-27, ecs-v4-response-bits-28, ecs-v4-response-bits-29, ecs-v4-response-bits-30, ecs-v4-response-bits-31, ecs-v4-response-bits-32, ecs-v6-response-bits-1, ecs-v6-response-bits-2, ecs-v6-response-bits-3, ecs-v6-response-bits-4, ecs-v6-response-bits-5, ecs-v6-response-bits-6, ecs-v6-response-bits-7, ecs-v6-response-bits-8, ecs-v6-response-bits-9, ecs-v6-response-bits-10, ecs-v6-response-bits-11, ecs-v6-response-bits-12, ecs-v6-response-bits-13, ecs-v6-response-bits-14, ecs-v6-response-bits-15, ecs-v6-response-bits-16, ecs-v6-response-bits-17, ecs-v6-response-bits-18, ecs-v6-response-bits-19, ecs-v6-response-bits-20, ecs-v6-response-bits-21, ecs-v6-response-bits-22, ecs-v6-response-bits-23, ecs-v6-response-bits-24, ecs-v6-response-bits-25, ecs-v6-response-bits-26, ecs-v6-response-bits-27, ecs-v6-response-bits-28, ecs-v6-response-bits-29, ecs-v6-response-bits-30, ecs-v6-response-bits-31, ecs-v6-response-bits-32, ecs-v6-response-bits-33, ecs-v6-response-bits-34, ecs-v6-response-bits-35, ecs-v6-response-bits-36, ecs-v6-response-bits-37, ecs-v6-response-bits-38, ecs-v6-response-bits-39, ecs-v6-response-bits-40, ecs-v6-response-bits-41, ecs-v6-response-bits-42, ecs-v6-response-bits-43, ecs-v6-response-bits-44, ecs-v6-response-bits-45, ecs-v6-response-bits-46, ecs-v6-response-bits-47, ecs-v6-response-bits-48, ecs-v6-response-bits-49, ecs-v6-response-bits-50, ecs-v6-response-bits-51, ecs-v6-response-bits-52, ecs-v6-response-bits-53, ecs-v6-response-bits-54, ecs-v6-response-bits-55, ecs-v6-response-bits-56, ecs-v6-response-bits-57, ecs-v6-response-bits-58, ecs-v6-response-bits-59, ecs-v6-response-bits-60, ecs-v6-response-bits-61, ecs-v6-response-bits-62, ecs-v6-response-bits-63, ecs-v6-response-bits-64, ecs-v6-response-bits-65, ecs-v6-response-bits-66, ecs-v6-response-bits-67, ecs-v6-response-bits-68, ecs-v6-response-bits-69, ecs-v6-response-bits-70, ecs-v6-response-bits-71, ecs-v6-response-bits-72, ecs-v6-response-bits-73, ecs-v6-response-bits-74, ecs-v6-response-bits-75, ecs-v6-response-bits-76, ecs-v6-response-bits-77, ecs-v6-response-bits-78, ecs-v6-response-bits-79, ecs-v6-response-bits-80, ecs-v6-response-bits-81, ecs-v6-response-bits-82, ecs-v6-response-bits-83, ecs-v6-response-bits-84, ecs-v6-response-bits-85, ecs-v6-response-bits-86, ecs-v6-response-bits-87, ecs-v6-response-bits-88, ecs-v6-response-bits-89, ecs-v6-response-bits-90, ecs-v6-response-bits-91, ecs-v6-response-bits-92, ecs-v6-response-bits-93, ecs-v6-response-bits-94, ecs-v6-response-bits-95, ecs-v6-response-bits-96, ecs-v6-response-bits-97, ecs-v6-response-bits-98, ecs-v6-response-bits-99, ecs-v6-response-bits-100, ecs-v6-response-bits-101, ecs-v6-response-bits-102, ecs-v6-response-bits-103, ecs-v6-response-bits-104, ecs-v6-response-bits-105, ecs-v6-response-bits-106, ecs-v6-response-bits-107, ecs-v6-response-bits-108, ecs-v6-response-bits-109, ecs-v6-response-bits-110, ecs-v6-response-bits-111, ecs-v6-response-bits-112, ecs-v6-response-bits-113, ecs-v6-response-bits-114, ecs-v6-response-bits-115, ecs-v6-response-bits-116, ecs-v6-response-bits-117, ecs-v6-response-bits-118, ecs-v6-response-bits-119, ecs-v6-response-bits-120, ecs-v6-response-bits-121, ecs-v6-response-bits-122, ecs-v6-response-bits-123, ecs-v6-response-bits-124, ecs-v6-response-bits-125, ecs-v6-response-bits-126, ecs-v6-response-bits-127, ecs-v6-response-bits-128',
2541 'docdefault': 'cache-bytes, packetcache-bytes, special-memory-usage, ecs-v4-response-bits-\*, ecs-v6-response-bits-\*',
2542 'help' : 'List of statistics that are disabled when retrieving the complete list of statistics via the API',
2543 'doc' : '''
2544 A list of comma-separated statistic names, that are disabled when retrieving the complete list of statistics via the API for performance reasons.
2545 These statistics can still be retrieved individually by specifically asking for it.
2546 ''',
2547 'doc-new' : '''
2548 A sequence of statistic names, that are disabled when retrieving the complete list of statistics via the API for performance reasons.
2549 These statistics can still be retrieved individually by specifically asking for it.
2550 ''',
2551 'versionadded': '4.5.0'
2552 },
2553 {
2554 'name' : 'stats_carbon_blacklist',
2555 'section' : 'recursor',
2556 'type' : LType.ListStrings,
2557 'default' : 'cache-bytes, packetcache-bytes, special-memory-usage, ecs-v4-response-bits-1, ecs-v4-response-bits-2, ecs-v4-response-bits-3, ecs-v4-response-bits-4, ecs-v4-response-bits-5, ecs-v4-response-bits-6, ecs-v4-response-bits-7, ecs-v4-response-bits-8, ecs-v4-response-bits-9, ecs-v4-response-bits-10, ecs-v4-response-bits-11, ecs-v4-response-bits-12, ecs-v4-response-bits-13, ecs-v4-response-bits-14, ecs-v4-response-bits-15, ecs-v4-response-bits-16, ecs-v4-response-bits-17, ecs-v4-response-bits-18, ecs-v4-response-bits-19, ecs-v4-response-bits-20, ecs-v4-response-bits-21, ecs-v4-response-bits-22, ecs-v4-response-bits-23, ecs-v4-response-bits-24, ecs-v4-response-bits-25, ecs-v4-response-bits-26, ecs-v4-response-bits-27, ecs-v4-response-bits-28, ecs-v4-response-bits-29, ecs-v4-response-bits-30, ecs-v4-response-bits-31, ecs-v4-response-bits-32, ecs-v6-response-bits-1, ecs-v6-response-bits-2, ecs-v6-response-bits-3, ecs-v6-response-bits-4, ecs-v6-response-bits-5, ecs-v6-response-bits-6, ecs-v6-response-bits-7, ecs-v6-response-bits-8, ecs-v6-response-bits-9, ecs-v6-response-bits-10, ecs-v6-response-bits-11, ecs-v6-response-bits-12, ecs-v6-response-bits-13, ecs-v6-response-bits-14, ecs-v6-response-bits-15, ecs-v6-response-bits-16, ecs-v6-response-bits-17, ecs-v6-response-bits-18, ecs-v6-response-bits-19, ecs-v6-response-bits-20, ecs-v6-response-bits-21, ecs-v6-response-bits-22, ecs-v6-response-bits-23, ecs-v6-response-bits-24, ecs-v6-response-bits-25, ecs-v6-response-bits-26, ecs-v6-response-bits-27, ecs-v6-response-bits-28, ecs-v6-response-bits-29, ecs-v6-response-bits-30, ecs-v6-response-bits-31, ecs-v6-response-bits-32, ecs-v6-response-bits-33, ecs-v6-response-bits-34, ecs-v6-response-bits-35, ecs-v6-response-bits-36, ecs-v6-response-bits-37, ecs-v6-response-bits-38, ecs-v6-response-bits-39, ecs-v6-response-bits-40, ecs-v6-response-bits-41, ecs-v6-response-bits-42, ecs-v6-response-bits-43, ecs-v6-response-bits-44, ecs-v6-response-bits-45, ecs-v6-response-bits-46, ecs-v6-response-bits-47, ecs-v6-response-bits-48, ecs-v6-response-bits-49, ecs-v6-response-bits-50, ecs-v6-response-bits-51, ecs-v6-response-bits-52, ecs-v6-response-bits-53, ecs-v6-response-bits-54, ecs-v6-response-bits-55, ecs-v6-response-bits-56, ecs-v6-response-bits-57, ecs-v6-response-bits-58, ecs-v6-response-bits-59, ecs-v6-response-bits-60, ecs-v6-response-bits-61, ecs-v6-response-bits-62, ecs-v6-response-bits-63, ecs-v6-response-bits-64, ecs-v6-response-bits-65, ecs-v6-response-bits-66, ecs-v6-response-bits-67, ecs-v6-response-bits-68, ecs-v6-response-bits-69, ecs-v6-response-bits-70, ecs-v6-response-bits-71, ecs-v6-response-bits-72, ecs-v6-response-bits-73, ecs-v6-response-bits-74, ecs-v6-response-bits-75, ecs-v6-response-bits-76, ecs-v6-response-bits-77, ecs-v6-response-bits-78, ecs-v6-response-bits-79, ecs-v6-response-bits-80, ecs-v6-response-bits-81, ecs-v6-response-bits-82, ecs-v6-response-bits-83, ecs-v6-response-bits-84, ecs-v6-response-bits-85, ecs-v6-response-bits-86, ecs-v6-response-bits-87, ecs-v6-response-bits-88, ecs-v6-response-bits-89, ecs-v6-response-bits-90, ecs-v6-response-bits-91, ecs-v6-response-bits-92, ecs-v6-response-bits-93, ecs-v6-response-bits-94, ecs-v6-response-bits-95, ecs-v6-response-bits-96, ecs-v6-response-bits-97, ecs-v6-response-bits-98, ecs-v6-response-bits-99, ecs-v6-response-bits-100, ecs-v6-response-bits-101, ecs-v6-response-bits-102, ecs-v6-response-bits-103, ecs-v6-response-bits-104, ecs-v6-response-bits-105, ecs-v6-response-bits-106, ecs-v6-response-bits-107, ecs-v6-response-bits-108, ecs-v6-response-bits-109, ecs-v6-response-bits-110, ecs-v6-response-bits-111, ecs-v6-response-bits-112, ecs-v6-response-bits-113, ecs-v6-response-bits-114, ecs-v6-response-bits-115, ecs-v6-response-bits-116, ecs-v6-response-bits-117, ecs-v6-response-bits-118, ecs-v6-response-bits-119, ecs-v6-response-bits-120, ecs-v6-response-bits-121, ecs-v6-response-bits-122, ecs-v6-response-bits-123, ecs-v6-response-bits-124, ecs-v6-response-bits-125, ecs-v6-response-bits-126, ecs-v6-response-bits-127, ecs-v6-response-bits-128, cumul-clientanswers, cumul-authanswers, policy-hits, proxy-mapping-total, remote-logger-count',
2558 'docdefault': '',
2559 'help' : 'List of statistics that are prevented from being exported via Carbon (deprecated)',
2560 'doc' : '',
2561 'versionadded': '4.2.0',
2562 'deprecated': ('4.5.0', 'Use :ref:`setting-stats-carbon-disabled-list`.'),
2563 'skip-yaml': True,
2564 },
2565 {
2566 'name' : 'stats_carbon_disabled_list',
2567 'section' : 'recursor',
2568 'type' : LType.ListStrings,
2569 'default' : 'cache-bytes, packetcache-bytes, special-memory-usage, ecs-v4-response-bits-1, ecs-v4-response-bits-2, ecs-v4-response-bits-3, ecs-v4-response-bits-4, ecs-v4-response-bits-5, ecs-v4-response-bits-6, ecs-v4-response-bits-7, ecs-v4-response-bits-8, ecs-v4-response-bits-9, ecs-v4-response-bits-10, ecs-v4-response-bits-11, ecs-v4-response-bits-12, ecs-v4-response-bits-13, ecs-v4-response-bits-14, ecs-v4-response-bits-15, ecs-v4-response-bits-16, ecs-v4-response-bits-17, ecs-v4-response-bits-18, ecs-v4-response-bits-19, ecs-v4-response-bits-20, ecs-v4-response-bits-21, ecs-v4-response-bits-22, ecs-v4-response-bits-23, ecs-v4-response-bits-24, ecs-v4-response-bits-25, ecs-v4-response-bits-26, ecs-v4-response-bits-27, ecs-v4-response-bits-28, ecs-v4-response-bits-29, ecs-v4-response-bits-30, ecs-v4-response-bits-31, ecs-v4-response-bits-32, ecs-v6-response-bits-1, ecs-v6-response-bits-2, ecs-v6-response-bits-3, ecs-v6-response-bits-4, ecs-v6-response-bits-5, ecs-v6-response-bits-6, ecs-v6-response-bits-7, ecs-v6-response-bits-8, ecs-v6-response-bits-9, ecs-v6-response-bits-10, ecs-v6-response-bits-11, ecs-v6-response-bits-12, ecs-v6-response-bits-13, ecs-v6-response-bits-14, ecs-v6-response-bits-15, ecs-v6-response-bits-16, ecs-v6-response-bits-17, ecs-v6-response-bits-18, ecs-v6-response-bits-19, ecs-v6-response-bits-20, ecs-v6-response-bits-21, ecs-v6-response-bits-22, ecs-v6-response-bits-23, ecs-v6-response-bits-24, ecs-v6-response-bits-25, ecs-v6-response-bits-26, ecs-v6-response-bits-27, ecs-v6-response-bits-28, ecs-v6-response-bits-29, ecs-v6-response-bits-30, ecs-v6-response-bits-31, ecs-v6-response-bits-32, ecs-v6-response-bits-33, ecs-v6-response-bits-34, ecs-v6-response-bits-35, ecs-v6-response-bits-36, ecs-v6-response-bits-37, ecs-v6-response-bits-38, ecs-v6-response-bits-39, ecs-v6-response-bits-40, ecs-v6-response-bits-41, ecs-v6-response-bits-42, ecs-v6-response-bits-43, ecs-v6-response-bits-44, ecs-v6-response-bits-45, ecs-v6-response-bits-46, ecs-v6-response-bits-47, ecs-v6-response-bits-48, ecs-v6-response-bits-49, ecs-v6-response-bits-50, ecs-v6-response-bits-51, ecs-v6-response-bits-52, ecs-v6-response-bits-53, ecs-v6-response-bits-54, ecs-v6-response-bits-55, ecs-v6-response-bits-56, ecs-v6-response-bits-57, ecs-v6-response-bits-58, ecs-v6-response-bits-59, ecs-v6-response-bits-60, ecs-v6-response-bits-61, ecs-v6-response-bits-62, ecs-v6-response-bits-63, ecs-v6-response-bits-64, ecs-v6-response-bits-65, ecs-v6-response-bits-66, ecs-v6-response-bits-67, ecs-v6-response-bits-68, ecs-v6-response-bits-69, ecs-v6-response-bits-70, ecs-v6-response-bits-71, ecs-v6-response-bits-72, ecs-v6-response-bits-73, ecs-v6-response-bits-74, ecs-v6-response-bits-75, ecs-v6-response-bits-76, ecs-v6-response-bits-77, ecs-v6-response-bits-78, ecs-v6-response-bits-79, ecs-v6-response-bits-80, ecs-v6-response-bits-81, ecs-v6-response-bits-82, ecs-v6-response-bits-83, ecs-v6-response-bits-84, ecs-v6-response-bits-85, ecs-v6-response-bits-86, ecs-v6-response-bits-87, ecs-v6-response-bits-88, ecs-v6-response-bits-89, ecs-v6-response-bits-90, ecs-v6-response-bits-91, ecs-v6-response-bits-92, ecs-v6-response-bits-93, ecs-v6-response-bits-94, ecs-v6-response-bits-95, ecs-v6-response-bits-96, ecs-v6-response-bits-97, ecs-v6-response-bits-98, ecs-v6-response-bits-99, ecs-v6-response-bits-100, ecs-v6-response-bits-101, ecs-v6-response-bits-102, ecs-v6-response-bits-103, ecs-v6-response-bits-104, ecs-v6-response-bits-105, ecs-v6-response-bits-106, ecs-v6-response-bits-107, ecs-v6-response-bits-108, ecs-v6-response-bits-109, ecs-v6-response-bits-110, ecs-v6-response-bits-111, ecs-v6-response-bits-112, ecs-v6-response-bits-113, ecs-v6-response-bits-114, ecs-v6-response-bits-115, ecs-v6-response-bits-116, ecs-v6-response-bits-117, ecs-v6-response-bits-118, ecs-v6-response-bits-119, ecs-v6-response-bits-120, ecs-v6-response-bits-121, ecs-v6-response-bits-122, ecs-v6-response-bits-123, ecs-v6-response-bits-124, ecs-v6-response-bits-125, ecs-v6-response-bits-126, ecs-v6-response-bits-127, ecs-v6-response-bits-128, cumul-clientanswers, cumul-authanswers, policy-hits, proxy-mapping-total, remote-logger-count',
2570 'docdefault': 'cache-bytes, packetcache-bytes, special-memory-usage, ecs-v4-response-bits-\*, ecs-v6-response-bits-\*, cumul-answers-\*, cumul-auth4answers-\*, cumul-auth6answers-\*',
2571 'help' : 'List of statistics that are prevented from being exported via Carbon',
2572 'doc' : '''
2573 A list of comma-separated statistic names, that are prevented from being exported via carbon for performance reasons.
2574 ''',
2575 'doc-new' : '''
2576 A sequence of statistic names, that are prevented from being exported via carbon for performance reasons.
2577 ''',
2578 'versionadded': '4.5.0'
2579 },
2580 {
2581 'name' : 'stats_rec_control_blacklist',
2582 'section' : 'recursor',
2583 'type' : LType.ListStrings,
2584 'default' : 'cache-bytes, packetcache-bytes, special-memory-usage, ecs-v4-response-bits-1, ecs-v4-response-bits-2, ecs-v4-response-bits-3, ecs-v4-response-bits-4, ecs-v4-response-bits-5, ecs-v4-response-bits-6, ecs-v4-response-bits-7, ecs-v4-response-bits-8, ecs-v4-response-bits-9, ecs-v4-response-bits-10, ecs-v4-response-bits-11, ecs-v4-response-bits-12, ecs-v4-response-bits-13, ecs-v4-response-bits-14, ecs-v4-response-bits-15, ecs-v4-response-bits-16, ecs-v4-response-bits-17, ecs-v4-response-bits-18, ecs-v4-response-bits-19, ecs-v4-response-bits-20, ecs-v4-response-bits-21, ecs-v4-response-bits-22, ecs-v4-response-bits-23, ecs-v4-response-bits-24, ecs-v4-response-bits-25, ecs-v4-response-bits-26, ecs-v4-response-bits-27, ecs-v4-response-bits-28, ecs-v4-response-bits-29, ecs-v4-response-bits-30, ecs-v4-response-bits-31, ecs-v4-response-bits-32, ecs-v6-response-bits-1, ecs-v6-response-bits-2, ecs-v6-response-bits-3, ecs-v6-response-bits-4, ecs-v6-response-bits-5, ecs-v6-response-bits-6, ecs-v6-response-bits-7, ecs-v6-response-bits-8, ecs-v6-response-bits-9, ecs-v6-response-bits-10, ecs-v6-response-bits-11, ecs-v6-response-bits-12, ecs-v6-response-bits-13, ecs-v6-response-bits-14, ecs-v6-response-bits-15, ecs-v6-response-bits-16, ecs-v6-response-bits-17, ecs-v6-response-bits-18, ecs-v6-response-bits-19, ecs-v6-response-bits-20, ecs-v6-response-bits-21, ecs-v6-response-bits-22, ecs-v6-response-bits-23, ecs-v6-response-bits-24, ecs-v6-response-bits-25, ecs-v6-response-bits-26, ecs-v6-response-bits-27, ecs-v6-response-bits-28, ecs-v6-response-bits-29, ecs-v6-response-bits-30, ecs-v6-response-bits-31, ecs-v6-response-bits-32, ecs-v6-response-bits-33, ecs-v6-response-bits-34, ecs-v6-response-bits-35, ecs-v6-response-bits-36, ecs-v6-response-bits-37, ecs-v6-response-bits-38, ecs-v6-response-bits-39, ecs-v6-response-bits-40, ecs-v6-response-bits-41, ecs-v6-response-bits-42, ecs-v6-response-bits-43, ecs-v6-response-bits-44, ecs-v6-response-bits-45, ecs-v6-response-bits-46, ecs-v6-response-bits-47, ecs-v6-response-bits-48, ecs-v6-response-bits-49, ecs-v6-response-bits-50, ecs-v6-response-bits-51, ecs-v6-response-bits-52, ecs-v6-response-bits-53, ecs-v6-response-bits-54, ecs-v6-response-bits-55, ecs-v6-response-bits-56, ecs-v6-response-bits-57, ecs-v6-response-bits-58, ecs-v6-response-bits-59, ecs-v6-response-bits-60, ecs-v6-response-bits-61, ecs-v6-response-bits-62, ecs-v6-response-bits-63, ecs-v6-response-bits-64, ecs-v6-response-bits-65, ecs-v6-response-bits-66, ecs-v6-response-bits-67, ecs-v6-response-bits-68, ecs-v6-response-bits-69, ecs-v6-response-bits-70, ecs-v6-response-bits-71, ecs-v6-response-bits-72, ecs-v6-response-bits-73, ecs-v6-response-bits-74, ecs-v6-response-bits-75, ecs-v6-response-bits-76, ecs-v6-response-bits-77, ecs-v6-response-bits-78, ecs-v6-response-bits-79, ecs-v6-response-bits-80, ecs-v6-response-bits-81, ecs-v6-response-bits-82, ecs-v6-response-bits-83, ecs-v6-response-bits-84, ecs-v6-response-bits-85, ecs-v6-response-bits-86, ecs-v6-response-bits-87, ecs-v6-response-bits-88, ecs-v6-response-bits-89, ecs-v6-response-bits-90, ecs-v6-response-bits-91, ecs-v6-response-bits-92, ecs-v6-response-bits-93, ecs-v6-response-bits-94, ecs-v6-response-bits-95, ecs-v6-response-bits-96, ecs-v6-response-bits-97, ecs-v6-response-bits-98, ecs-v6-response-bits-99, ecs-v6-response-bits-100, ecs-v6-response-bits-101, ecs-v6-response-bits-102, ecs-v6-response-bits-103, ecs-v6-response-bits-104, ecs-v6-response-bits-105, ecs-v6-response-bits-106, ecs-v6-response-bits-107, ecs-v6-response-bits-108, ecs-v6-response-bits-109, ecs-v6-response-bits-110, ecs-v6-response-bits-111, ecs-v6-response-bits-112, ecs-v6-response-bits-113, ecs-v6-response-bits-114, ecs-v6-response-bits-115, ecs-v6-response-bits-116, ecs-v6-response-bits-117, ecs-v6-response-bits-118, ecs-v6-response-bits-119, ecs-v6-response-bits-120, ecs-v6-response-bits-121, ecs-v6-response-bits-122, ecs-v6-response-bits-123, ecs-v6-response-bits-124, ecs-v6-response-bits-125, ecs-v6-response-bits-126, ecs-v6-response-bits-127, ecs-v6-response-bits-128, cumul-clientanswers, cumul-authanswers, policy-hits, proxy-mapping-total, remote-logger-count',
2585 'docdefault': '',
2586 'help' : 'List of statistics that are prevented from being exported via rec_control get-all (deprecated)',
2587 'doc' : '',
2588 'versionadded': '4.2.0',
2589 'deprecated': ('4.5.0', 'Use :ref:`setting-stats-rec-control-disabled-list`.'),
2590 'skip-yaml': True,
2591 },
2592 {
2593 'name' : 'stats_rec_control_disabled_list',
2594 'section' : 'recursor',
2595 'type' : LType.ListStrings,
2596 'default' : 'cache-bytes, packetcache-bytes, special-memory-usage, ecs-v4-response-bits-1, ecs-v4-response-bits-2, ecs-v4-response-bits-3, ecs-v4-response-bits-4, ecs-v4-response-bits-5, ecs-v4-response-bits-6, ecs-v4-response-bits-7, ecs-v4-response-bits-8, ecs-v4-response-bits-9, ecs-v4-response-bits-10, ecs-v4-response-bits-11, ecs-v4-response-bits-12, ecs-v4-response-bits-13, ecs-v4-response-bits-14, ecs-v4-response-bits-15, ecs-v4-response-bits-16, ecs-v4-response-bits-17, ecs-v4-response-bits-18, ecs-v4-response-bits-19, ecs-v4-response-bits-20, ecs-v4-response-bits-21, ecs-v4-response-bits-22, ecs-v4-response-bits-23, ecs-v4-response-bits-24, ecs-v4-response-bits-25, ecs-v4-response-bits-26, ecs-v4-response-bits-27, ecs-v4-response-bits-28, ecs-v4-response-bits-29, ecs-v4-response-bits-30, ecs-v4-response-bits-31, ecs-v4-response-bits-32, ecs-v6-response-bits-1, ecs-v6-response-bits-2, ecs-v6-response-bits-3, ecs-v6-response-bits-4, ecs-v6-response-bits-5, ecs-v6-response-bits-6, ecs-v6-response-bits-7, ecs-v6-response-bits-8, ecs-v6-response-bits-9, ecs-v6-response-bits-10, ecs-v6-response-bits-11, ecs-v6-response-bits-12, ecs-v6-response-bits-13, ecs-v6-response-bits-14, ecs-v6-response-bits-15, ecs-v6-response-bits-16, ecs-v6-response-bits-17, ecs-v6-response-bits-18, ecs-v6-response-bits-19, ecs-v6-response-bits-20, ecs-v6-response-bits-21, ecs-v6-response-bits-22, ecs-v6-response-bits-23, ecs-v6-response-bits-24, ecs-v6-response-bits-25, ecs-v6-response-bits-26, ecs-v6-response-bits-27, ecs-v6-response-bits-28, ecs-v6-response-bits-29, ecs-v6-response-bits-30, ecs-v6-response-bits-31, ecs-v6-response-bits-32, ecs-v6-response-bits-33, ecs-v6-response-bits-34, ecs-v6-response-bits-35, ecs-v6-response-bits-36, ecs-v6-response-bits-37, ecs-v6-response-bits-38, ecs-v6-response-bits-39, ecs-v6-response-bits-40, ecs-v6-response-bits-41, ecs-v6-response-bits-42, ecs-v6-response-bits-43, ecs-v6-response-bits-44, ecs-v6-response-bits-45, ecs-v6-response-bits-46, ecs-v6-response-bits-47, ecs-v6-response-bits-48, ecs-v6-response-bits-49, ecs-v6-response-bits-50, ecs-v6-response-bits-51, ecs-v6-response-bits-52, ecs-v6-response-bits-53, ecs-v6-response-bits-54, ecs-v6-response-bits-55, ecs-v6-response-bits-56, ecs-v6-response-bits-57, ecs-v6-response-bits-58, ecs-v6-response-bits-59, ecs-v6-response-bits-60, ecs-v6-response-bits-61, ecs-v6-response-bits-62, ecs-v6-response-bits-63, ecs-v6-response-bits-64, ecs-v6-response-bits-65, ecs-v6-response-bits-66, ecs-v6-response-bits-67, ecs-v6-response-bits-68, ecs-v6-response-bits-69, ecs-v6-response-bits-70, ecs-v6-response-bits-71, ecs-v6-response-bits-72, ecs-v6-response-bits-73, ecs-v6-response-bits-74, ecs-v6-response-bits-75, ecs-v6-response-bits-76, ecs-v6-response-bits-77, ecs-v6-response-bits-78, ecs-v6-response-bits-79, ecs-v6-response-bits-80, ecs-v6-response-bits-81, ecs-v6-response-bits-82, ecs-v6-response-bits-83, ecs-v6-response-bits-84, ecs-v6-response-bits-85, ecs-v6-response-bits-86, ecs-v6-response-bits-87, ecs-v6-response-bits-88, ecs-v6-response-bits-89, ecs-v6-response-bits-90, ecs-v6-response-bits-91, ecs-v6-response-bits-92, ecs-v6-response-bits-93, ecs-v6-response-bits-94, ecs-v6-response-bits-95, ecs-v6-response-bits-96, ecs-v6-response-bits-97, ecs-v6-response-bits-98, ecs-v6-response-bits-99, ecs-v6-response-bits-100, ecs-v6-response-bits-101, ecs-v6-response-bits-102, ecs-v6-response-bits-103, ecs-v6-response-bits-104, ecs-v6-response-bits-105, ecs-v6-response-bits-106, ecs-v6-response-bits-107, ecs-v6-response-bits-108, ecs-v6-response-bits-109, ecs-v6-response-bits-110, ecs-v6-response-bits-111, ecs-v6-response-bits-112, ecs-v6-response-bits-113, ecs-v6-response-bits-114, ecs-v6-response-bits-115, ecs-v6-response-bits-116, ecs-v6-response-bits-117, ecs-v6-response-bits-118, ecs-v6-response-bits-119, ecs-v6-response-bits-120, ecs-v6-response-bits-121, ecs-v6-response-bits-122, ecs-v6-response-bits-123, ecs-v6-response-bits-124, ecs-v6-response-bits-125, ecs-v6-response-bits-126, ecs-v6-response-bits-127, ecs-v6-response-bits-128, cumul-clientanswers, cumul-authanswers, policy-hits, proxy-mapping-total, remote-logger-count',
2597 'docdefault': 'cache-bytes, packetcache-bytes, special-memory-usage, ecs-v4-response-bits-\*, ecs-v6-response-bits-\*, cumul-answers-\*, cumul-auth4answers-\*, cumul-auth6answers-\*',
2598 'help' : 'List of statistics that are prevented from being exported via rec_control get-all',
2599 'doc' : '''
2600 A list of comma-separated statistic names, that are disabled when retrieving the complete list of statistics via `rec_control get-all`, for performance reasons.
2601 These statistics can still be retrieved individually.
2602 ''',
2603 'doc-new' : '''
2604 A sequence of statistic names, that are disabled when retrieving the complete list of statistics via `rec_control get-all`, for performance reasons.
2605 These statistics can still be retrieved individually.
2606 ''',
2607 'versionadded': '4.5.0'
2608 },
2609 {
2610 'name' : 'stats_ringbuffer_entries',
2611 'section' : 'recursor',
2612 'type' : LType.Uint64,
2613 'default' : '10000',
2614 'help' : 'maximum number of packets to store statistics for',
2615 'doc' : '''
2616 Number of entries in the remotes ringbuffer, which keeps statistics on who is querying your server.
2617 Can be read out using ``rec_control top-remotes``.
2618 ''',
2619 },
2620 {
2621 'name' : 'stats_snmp_blacklist',
2622 'section' : 'recursor',
2623 'type' : LType.ListStrings,
2624 'default' : 'cache-bytes, packetcache-bytes, special-memory-usage, ecs-v4-response-bits-1, ecs-v4-response-bits-2, ecs-v4-response-bits-3, ecs-v4-response-bits-4, ecs-v4-response-bits-5, ecs-v4-response-bits-6, ecs-v4-response-bits-7, ecs-v4-response-bits-8, ecs-v4-response-bits-9, ecs-v4-response-bits-10, ecs-v4-response-bits-11, ecs-v4-response-bits-12, ecs-v4-response-bits-13, ecs-v4-response-bits-14, ecs-v4-response-bits-15, ecs-v4-response-bits-16, ecs-v4-response-bits-17, ecs-v4-response-bits-18, ecs-v4-response-bits-19, ecs-v4-response-bits-20, ecs-v4-response-bits-21, ecs-v4-response-bits-22, ecs-v4-response-bits-23, ecs-v4-response-bits-24, ecs-v4-response-bits-25, ecs-v4-response-bits-26, ecs-v4-response-bits-27, ecs-v4-response-bits-28, ecs-v4-response-bits-29, ecs-v4-response-bits-30, ecs-v4-response-bits-31, ecs-v4-response-bits-32, ecs-v6-response-bits-1, ecs-v6-response-bits-2, ecs-v6-response-bits-3, ecs-v6-response-bits-4, ecs-v6-response-bits-5, ecs-v6-response-bits-6, ecs-v6-response-bits-7, ecs-v6-response-bits-8, ecs-v6-response-bits-9, ecs-v6-response-bits-10, ecs-v6-response-bits-11, ecs-v6-response-bits-12, ecs-v6-response-bits-13, ecs-v6-response-bits-14, ecs-v6-response-bits-15, ecs-v6-response-bits-16, ecs-v6-response-bits-17, ecs-v6-response-bits-18, ecs-v6-response-bits-19, ecs-v6-response-bits-20, ecs-v6-response-bits-21, ecs-v6-response-bits-22, ecs-v6-response-bits-23, ecs-v6-response-bits-24, ecs-v6-response-bits-25, ecs-v6-response-bits-26, ecs-v6-response-bits-27, ecs-v6-response-bits-28, ecs-v6-response-bits-29, ecs-v6-response-bits-30, ecs-v6-response-bits-31, ecs-v6-response-bits-32, ecs-v6-response-bits-33, ecs-v6-response-bits-34, ecs-v6-response-bits-35, ecs-v6-response-bits-36, ecs-v6-response-bits-37, ecs-v6-response-bits-38, ecs-v6-response-bits-39, ecs-v6-response-bits-40, ecs-v6-response-bits-41, ecs-v6-response-bits-42, ecs-v6-response-bits-43, ecs-v6-response-bits-44, ecs-v6-response-bits-45, ecs-v6-response-bits-46, ecs-v6-response-bits-47, ecs-v6-response-bits-48, ecs-v6-response-bits-49, ecs-v6-response-bits-50, ecs-v6-response-bits-51, ecs-v6-response-bits-52, ecs-v6-response-bits-53, ecs-v6-response-bits-54, ecs-v6-response-bits-55, ecs-v6-response-bits-56, ecs-v6-response-bits-57, ecs-v6-response-bits-58, ecs-v6-response-bits-59, ecs-v6-response-bits-60, ecs-v6-response-bits-61, ecs-v6-response-bits-62, ecs-v6-response-bits-63, ecs-v6-response-bits-64, ecs-v6-response-bits-65, ecs-v6-response-bits-66, ecs-v6-response-bits-67, ecs-v6-response-bits-68, ecs-v6-response-bits-69, ecs-v6-response-bits-70, ecs-v6-response-bits-71, ecs-v6-response-bits-72, ecs-v6-response-bits-73, ecs-v6-response-bits-74, ecs-v6-response-bits-75, ecs-v6-response-bits-76, ecs-v6-response-bits-77, ecs-v6-response-bits-78, ecs-v6-response-bits-79, ecs-v6-response-bits-80, ecs-v6-response-bits-81, ecs-v6-response-bits-82, ecs-v6-response-bits-83, ecs-v6-response-bits-84, ecs-v6-response-bits-85, ecs-v6-response-bits-86, ecs-v6-response-bits-87, ecs-v6-response-bits-88, ecs-v6-response-bits-89, ecs-v6-response-bits-90, ecs-v6-response-bits-91, ecs-v6-response-bits-92, ecs-v6-response-bits-93, ecs-v6-response-bits-94, ecs-v6-response-bits-95, ecs-v6-response-bits-96, ecs-v6-response-bits-97, ecs-v6-response-bits-98, ecs-v6-response-bits-99, ecs-v6-response-bits-100, ecs-v6-response-bits-101, ecs-v6-response-bits-102, ecs-v6-response-bits-103, ecs-v6-response-bits-104, ecs-v6-response-bits-105, ecs-v6-response-bits-106, ecs-v6-response-bits-107, ecs-v6-response-bits-108, ecs-v6-response-bits-109, ecs-v6-response-bits-110, ecs-v6-response-bits-111, ecs-v6-response-bits-112, ecs-v6-response-bits-113, ecs-v6-response-bits-114, ecs-v6-response-bits-115, ecs-v6-response-bits-116, ecs-v6-response-bits-117, ecs-v6-response-bits-118, ecs-v6-response-bits-119, ecs-v6-response-bits-120, ecs-v6-response-bits-121, ecs-v6-response-bits-122, ecs-v6-response-bits-123, ecs-v6-response-bits-124, ecs-v6-response-bits-125, ecs-v6-response-bits-126, ecs-v6-response-bits-127, ecs-v6-response-bits-128, cumul-clientanswers, cumul-authanswers, policy-hits, proxy-mapping-total, remote-logger-count',
2625 'docdefault': '',
2626 'help' : 'List of statistics that are prevented from being exported via SNMP (deprecated)',
2627 'doc' : '',
2628 'versionadded': '4.2.0',
2629 'deprecated': ('4.5.0', 'Use :ref:`setting-stats-snmp-disabled-list`.'),
2630 'skip-yaml': True,
2631 },
2632 {
2633 'name' : 'stats_snmp_disabled_list',
2634 'section' : 'recursor',
2635 'type' : LType.ListStrings,
2636 'default' : 'cache-bytes, packetcache-bytes, special-memory-usage, ecs-v4-response-bits-1, ecs-v4-response-bits-2, ecs-v4-response-bits-3, ecs-v4-response-bits-4, ecs-v4-response-bits-5, ecs-v4-response-bits-6, ecs-v4-response-bits-7, ecs-v4-response-bits-8, ecs-v4-response-bits-9, ecs-v4-response-bits-10, ecs-v4-response-bits-11, ecs-v4-response-bits-12, ecs-v4-response-bits-13, ecs-v4-response-bits-14, ecs-v4-response-bits-15, ecs-v4-response-bits-16, ecs-v4-response-bits-17, ecs-v4-response-bits-18, ecs-v4-response-bits-19, ecs-v4-response-bits-20, ecs-v4-response-bits-21, ecs-v4-response-bits-22, ecs-v4-response-bits-23, ecs-v4-response-bits-24, ecs-v4-response-bits-25, ecs-v4-response-bits-26, ecs-v4-response-bits-27, ecs-v4-response-bits-28, ecs-v4-response-bits-29, ecs-v4-response-bits-30, ecs-v4-response-bits-31, ecs-v4-response-bits-32, ecs-v6-response-bits-1, ecs-v6-response-bits-2, ecs-v6-response-bits-3, ecs-v6-response-bits-4, ecs-v6-response-bits-5, ecs-v6-response-bits-6, ecs-v6-response-bits-7, ecs-v6-response-bits-8, ecs-v6-response-bits-9, ecs-v6-response-bits-10, ecs-v6-response-bits-11, ecs-v6-response-bits-12, ecs-v6-response-bits-13, ecs-v6-response-bits-14, ecs-v6-response-bits-15, ecs-v6-response-bits-16, ecs-v6-response-bits-17, ecs-v6-response-bits-18, ecs-v6-response-bits-19, ecs-v6-response-bits-20, ecs-v6-response-bits-21, ecs-v6-response-bits-22, ecs-v6-response-bits-23, ecs-v6-response-bits-24, ecs-v6-response-bits-25, ecs-v6-response-bits-26, ecs-v6-response-bits-27, ecs-v6-response-bits-28, ecs-v6-response-bits-29, ecs-v6-response-bits-30, ecs-v6-response-bits-31, ecs-v6-response-bits-32, ecs-v6-response-bits-33, ecs-v6-response-bits-34, ecs-v6-response-bits-35, ecs-v6-response-bits-36, ecs-v6-response-bits-37, ecs-v6-response-bits-38, ecs-v6-response-bits-39, ecs-v6-response-bits-40, ecs-v6-response-bits-41, ecs-v6-response-bits-42, ecs-v6-response-bits-43, ecs-v6-response-bits-44, ecs-v6-response-bits-45, ecs-v6-response-bits-46, ecs-v6-response-bits-47, ecs-v6-response-bits-48, ecs-v6-response-bits-49, ecs-v6-response-bits-50, ecs-v6-response-bits-51, ecs-v6-response-bits-52, ecs-v6-response-bits-53, ecs-v6-response-bits-54, ecs-v6-response-bits-55, ecs-v6-response-bits-56, ecs-v6-response-bits-57, ecs-v6-response-bits-58, ecs-v6-response-bits-59, ecs-v6-response-bits-60, ecs-v6-response-bits-61, ecs-v6-response-bits-62, ecs-v6-response-bits-63, ecs-v6-response-bits-64, ecs-v6-response-bits-65, ecs-v6-response-bits-66, ecs-v6-response-bits-67, ecs-v6-response-bits-68, ecs-v6-response-bits-69, ecs-v6-response-bits-70, ecs-v6-response-bits-71, ecs-v6-response-bits-72, ecs-v6-response-bits-73, ecs-v6-response-bits-74, ecs-v6-response-bits-75, ecs-v6-response-bits-76, ecs-v6-response-bits-77, ecs-v6-response-bits-78, ecs-v6-response-bits-79, ecs-v6-response-bits-80, ecs-v6-response-bits-81, ecs-v6-response-bits-82, ecs-v6-response-bits-83, ecs-v6-response-bits-84, ecs-v6-response-bits-85, ecs-v6-response-bits-86, ecs-v6-response-bits-87, ecs-v6-response-bits-88, ecs-v6-response-bits-89, ecs-v6-response-bits-90, ecs-v6-response-bits-91, ecs-v6-response-bits-92, ecs-v6-response-bits-93, ecs-v6-response-bits-94, ecs-v6-response-bits-95, ecs-v6-response-bits-96, ecs-v6-response-bits-97, ecs-v6-response-bits-98, ecs-v6-response-bits-99, ecs-v6-response-bits-100, ecs-v6-response-bits-101, ecs-v6-response-bits-102, ecs-v6-response-bits-103, ecs-v6-response-bits-104, ecs-v6-response-bits-105, ecs-v6-response-bits-106, ecs-v6-response-bits-107, ecs-v6-response-bits-108, ecs-v6-response-bits-109, ecs-v6-response-bits-110, ecs-v6-response-bits-111, ecs-v6-response-bits-112, ecs-v6-response-bits-113, ecs-v6-response-bits-114, ecs-v6-response-bits-115, ecs-v6-response-bits-116, ecs-v6-response-bits-117, ecs-v6-response-bits-118, ecs-v6-response-bits-119, ecs-v6-response-bits-120, ecs-v6-response-bits-121, ecs-v6-response-bits-122, ecs-v6-response-bits-123, ecs-v6-response-bits-124, ecs-v6-response-bits-125, ecs-v6-response-bits-126, ecs-v6-response-bits-127, ecs-v6-response-bits-128, cumul-clientanswers, cumul-authanswers, policy-hits, proxy-mapping-total, remote-logger-count',
2637 'docdefault': 'cache-bytes, packetcache-bytes, special-memory-usage, ecs-v4-response-bits-\*, ecs-v6-response-bits-\*',
2638 'help' : 'List of statistics that are prevented from being exported via SNMP',
2639 'doc' : '''
2640 A list of comma-separated statistic names, that are prevented from being exported via SNMP, for performance reasons.
2641 ''',
2642 'doc-new' : '''
2643 A sequence of statistic names, that are prevented from being exported via SNMP, for performance reasons.
2644 ''',
2645 'versionadded': '4.5.0'
2646 },
2647 {
2648 'name' : 'structured_logging',
2649 'section' : 'logging',
2650 'type' : LType.Bool,
2651 'default' : 'true',
2652 'help' : 'Prefer structured logging',
2653 'doc' : '''
2654 Prefer structured logging when both an old style and a structured log messages is available.
2655 ''',
2656 'versionadded': '4.6.0',
2657 'versionchanged': ('5.0.0', 'Disabling structured logging is deprecated'),
2658 },
2659 {
2660 'name' : 'structured_logging_backend',
2661 'section' : 'logging',
2662 'type' : LType.String,
2663 'default' : 'default',
2664 'help' : 'Structured logging backend',
2665 'doc' : '''
2666 The backend used for structured logging output.
2667 This setting must be set on the command line (``--structured-logging-backend=...``) to be effective.
2668 Available backends are:
2669
2670 - ``default``: use the traditional logging system to output structured logging information.
2671 - ``systemd-journal``: use systemd-journal.
2672 When using this backend, provide ``-o verbose`` or simular output option to ``journalctl`` to view the full information.
2673 ''',
2674 'versionadded': '4.8.0'
2675 },
2676 {
2677 'name' : 'tcp_fast_open',
2678 'section' : 'incoming',
2679 'type' : LType.Uint64,
2680 'default' : '0',
2681 'help' : 'Enable TCP Fast Open support on the listening sockets, using the supplied numerical value as the queue size',
2682 'doc' : '''
2683 Enable TCP Fast Open support, if available, on the listening sockets.
2684 The numerical value supplied is used as the queue size, 0 meaning disabled. See :ref:`tcp-fast-open-support`.
2685 ''',
2686 'versionadded': '4.1.0'
2687 },
2688 {
2689 'name' : 'tcp_fast_open_connect',
2690 'section' : 'outgoing',
2691 'type' : LType.Bool,
2692 'default' : 'false',
2693 'help' : 'Enable TCP Fast Open support on outgoing sockets',
2694 'doc' : '''
2695 Enable TCP Fast Open Connect support, if available, on the outgoing connections to authoritative servers. See :ref:`tcp-fast-open-support`.
2696 ''',
2697 'versionadded': '4.5.0'
2698 },
2699 {
2700 'name' : 'tcp_max_idle_ms',
2701 'section' : 'outgoing',
2702 'oldname' : 'tcp-out-max-idle-ms',
2703 'type' : LType.Uint64,
2704 'default' : '10000',
2705 'help' : 'Time TCP/DoT connections are left idle in milliseconds or 0 if no limit',
2706 'doc' : '''
2707 Time outgoing TCP/DoT connections are left idle in milliseconds or 0 if no limit. After having been idle for this time, the connection is eligible for closing.
2708 ''',
2709 'versionadded': '4.6.0'
2710 },
2711 {
2712 'name' : 'tcp_max_idle_per_auth',
2713 'section' : 'outgoing',
2714 'oldname' : 'tcp-out-max-idle-per-auth',
2715 'type' : LType.Uint64,
2716 'default' : '10',
2717 'help' : 'Maximum number of idle TCP/DoT connections to a specific IP per thread, 0 means do not keep idle connections open',
2718 'doc' : '''
2719 Maximum number of idle outgoing TCP/DoT connections to a specific IP per thread, 0 means do not keep idle connections open.
2720 ''',
2721 'versionadded': '4.6.0'
2722 },
2723 {
2724 'name' : 'tcp_max_queries',
2725 'section' : 'outgoing',
2726 'oldname' : 'tcp-out-max-queries',
2727 'type' : LType.Uint64,
2728 'default' : '0',
2729 'help' : 'Maximum total number of queries per TCP/DoT connection, 0 means no limit',
2730 'doc' : '''
2731 Maximum total number of queries per outgoing TCP/DoT connection, 0 means no limit. After this number of queries, the connection is
2732 closed and a new one will be created if needed.
2733 ''',
2734 },
2735 {
2736 'name' : 'tcp_max_idle_per_thread',
2737 'section' : 'outgoing',
2738 'oldname' : 'tcp-out-max-idle-per-thread',
2739 'type' : LType.Uint64,
2740 'default' : '100',
2741 'help' : 'Maximum number of idle TCP/DoT connections per thread',
2742 'doc' : '''
2743 Maximum number of idle outgoing TCP/DoT connections per thread, 0 means do not keep idle connections open.
2744 ''',
2745 'versionadded': '4.6.0'
2746 },
2747 {
2748 'name' : 'threads',
2749 'section' : 'recursor',
2750 'type' : LType.Uint64,
2751 'default' : '2',
2752 'help' : 'Launch this number of threads',
2753 'doc' : '''
2754 Spawn this number of threads on startup.
2755 ''',
2756 },
2757 {
2758 'name' : 'tcp_threads',
2759 'section' : 'recursor',
2760 'type' : LType.Uint64,
2761 'default' : '1',
2762 'help' : 'Launch this number of threads listening for and processing TCP queries',
2763 'doc' : '''
2764 Spawn this number of TCP processing threads on startup.
2765 ''',
2766 'versionadded': '5.0.0'
2767 },
2768 {
2769 'name' : 'trace',
2770 'section' : 'logging',
2771 'type' : LType.String,
2772 'default' : 'no',
2773 'help' : 'if we should output heaps of logging. set to \'fail\' to only log failing domains',
2774 'doc' : '''
2775 One of ``no``, ``yes`` or ``fail``.
2776 If turned on, output impressive heaps of logging.
2777 May destroy performance under load.
2778 To log only queries resulting in a ``ServFail`` answer from the resolving process, this value can be set to ``fail``, but note that the performance impact is still large.
2779 Also note that queries that do produce a result but with a failing DNSSEC validation are not written to the log
2780 ''',
2781 },
2782 {
2783 'name' : 'udp_source_port_min',
2784 'section' : 'outgoing',
2785 'type' : LType.Uint64,
2786 'default' : '1024',
2787 'help' : 'Minimum UDP port to bind on',
2788 'doc' : '''
2789 This option sets the low limit of UDP port number to bind on.
2790
2791 In combination with :ref:`setting-udp-source-port-max` it configures the UDP
2792 port range to use. Port numbers are randomized within this range on
2793 initialization, and exceptions can be configured with :ref:`setting-udp-source-port-avoid`
2794 ''',
2795 'versionadded': '4.2.0'
2796 },
2797 {
2798 'name' : 'udp_source_port_max',
2799 'section' : 'outgoing',
2800 'type' : LType.Uint64,
2801 'default' : '65535',
2802 'help' : 'Maximum UDP port to bind on',
2803 'doc' : '''
2804 This option sets the maximum limit of UDP port number to bind on.
2805
2806 See :ref:`setting-udp-source-port-min`.
2807 ''',
2808 'versionadded': '4.2.0'
2809 },
2810 {
2811 'name' : 'udp_source_port_avoid',
2812 'section' : 'outgoing',
2813 'type' : LType.ListStrings,
2814 'default' : '11211',
2815 'help' : 'List of comma separated UDP port number to avoid',
2816 'doc' : '''
2817 A list of comma-separated UDP port numbers to avoid when binding.
2818 Ex: `5300,11211`
2819
2820 See :ref:`setting-udp-source-port-min`.
2821 ''',
2822 'doc-new' : '''
2823 A sequence of UDP port numbers to avoid when binding. For example:
2824
2825 .. code-block:: yaml
2826
2827 outgoing:
2828 udp_source_port_avoid:
2829 - 5300
2830 - 11211
2831
2832 See :ref:`setting-udp-source-port-min`.
2833 ''',
2834 'versionadded': '4.2.0'
2835 },
2836 {
2837 'name' : 'udp_truncation_threshold',
2838 'section' : 'incoming',
2839 'type' : LType.Uint64,
2840 'default' : '1232',
2841 'help' : 'Maximum UDP response size before we truncate',
2842 'doc' : '''
2843 EDNS0 allows for large UDP response datagrams, which can potentially raise performance.
2844 Large responses however also have downsides in terms of reflection attacks.
2845 This setting limits the accepted size.
2846 Maximum value is 65535, but values above 4096 should probably not be attempted.
2847
2848 To know why 1232, see the note at :ref:`setting-edns-outgoing-bufsize`.
2849 ''',
2850 'versionchanged': ('4.2.0', 'Before 4.2.0, the default was 1680.')
2851 },
2852 {
2853 'name' : 'unique_response_tracking',
2854 'section' : 'nod',
2855 'type' : LType.Bool,
2856 'default' : 'false',
2857 'help' : 'Track unique responses (tuple of query name, type and RR).',
2858 'doc' : '''
2859 Whether to track unique DNS responses, i.e. never seen before combinations
2860 of the triplet (query name, query type, RR[rrname, rrtype, rrdata]).
2861 This can be useful for tracking potentially suspicious domains and
2862 behaviour, e.g. DNS fast-flux.
2863 If protobuf is enabled and configured, then the Protobuf Response message
2864 will contain a flag with udr set to true for each RR that is considered
2865 unique, i.e. never seen before.
2866 This feature uses a probabilistic data structure (stable bloom filter) to
2867 track unique responses, which can have false positives as well as false
2868 negatives, thus it is a best-effort feature. Increasing the number of cells
2869 in the SBF using the unique-response-db-size setting can reduce FPs and FNs.
2870 ''',
2871 'versionadded': '4.2.0'
2872 },
2873 {
2874 'name' : 'unique_response_log',
2875 'section' : 'nod',
2876 'type' : LType.Bool,
2877 'default' : 'true',
2878 'help' : 'Log unique responses',
2879 'doc' : '''
2880 Whether to log when a unique response is detected. The log line
2881 looks something like:
2882
2883 Oct 24 12:11:27 Unique response observed: qname=foo.com qtype=A rrtype=AAAA rrname=foo.com rrcontent=1.2.3.4
2884 ''',
2885 'versionadded': '4.2.0'
2886 },
2887 {
2888 'name' : 'unique_response_db_size',
2889 'section' : 'nod',
2890 'type' : LType.Uint64,
2891 'default' : '67108864',
2892 'help' : 'Size of the DB used to track unique responses in terms of number of cells. Defaults to 67108864',
2893 'doc' : '''
2894 The default size of the stable bloom filter used to store previously
2895 observed responses is 67108864. To change the number of cells, use this
2896 setting. For each cell, the SBF uses 1 bit of memory, and one byte of
2897 disk for the persistent file.
2898 If there are already persistent files saved to disk, this setting will
2899 have no effect unless you remove the existing files.
2900 ''',
2901 'versionadded': '4.2.0'
2902 },
2903 {
2904 'name' : 'unique_response_history_dir',
2905 'section' : 'nod',
2906 'type' : LType.String,
2907 'default' : 'NODCACHEDIRUDR',
2908 'docdefault': 'Determined by distribution',
2909 'help' : 'Persist unique response tracking data here to persist between restarts',
2910 'doc' : '''
2911 This setting controls which directory is used to store the on-disk
2912 cache of previously observed responses.
2913
2914 The default depends on ``LOCALSTATEDIR`` when building the software.
2915 Usually this comes down to ``/var/lib/pdns-recursor/udr`` or ``/usr/local/var/lib/pdns-recursor/udr``).
2916
2917 The newly observed domain feature uses a stable bloom filter to store
2918 a history of previously observed responses. The data structure is
2919 synchronized to disk every 10 minutes, and is also initialized from
2920 disk on startup. This ensures that previously observed responses are
2921 preserved across recursor restarts. If you change the
2922 unique-response-db-size, you must remove any files from this directory.
2923 ''',
2924 'versionadded': '4.2.0'
2925 },
2926 {
2927 'name' : 'unique_response_pb_tag',
2928 'section' : 'nod',
2929 'type' : LType.String,
2930 'default' : 'pdns-udr',
2931 'help' : 'If protobuf is configured, the tag to use for messages containing unique DNS responses. Defaults to \'pdns-udr\'',
2932 'doc' : '''
2933 If protobuf is configured, then this tag will be added to all protobuf response messages when
2934 a unique DNS response is observed.
2935 ''',
2936 'versionadded': '4.2.0'
2937 },
2938 {
2939 'name' : 'use_incoming_edns_subnet',
2940 'section' : 'incoming',
2941 'type' : LType.Bool,
2942 'default' : 'false',
2943 'help' : 'Pass along received EDNS Client Subnet information',
2944 'doc' : '''
2945 Whether to process and pass along a received EDNS Client Subnet to authoritative servers.
2946 The ECS information will only be sent for netmasks and domains listed in :ref:`setting-edns-subnet-allow-list` and will be truncated if the received scope exceeds :ref:`setting-ecs-ipv4-bits` for IPv4 or :ref:`setting-ecs-ipv6-bits` for IPv6.
2947 ''',
2948 },
2949 {
2950 'name' : 'version',
2951 'section' : 'commands',
2952 'type' : LType.Command,
2953 'default' : 'no',
2954 'help' : 'Print version string',
2955 'doc' : '''
2956 Print version of this binary. Useful for checking which version of the PowerDNS recursor is installed on a system.
2957 ''',
2958 },
2959 {
2960 'name' : 'version_string',
2961 'section' : 'recursor',
2962 'type' : LType.String,
2963 'default' : RUNTIME,
2964 'help' : 'string reported on version.pdns or version.bind',
2965 'doc' : '''
2966 By default, PowerDNS replies to the 'version.bind' query with its version number.
2967 Security conscious users may wish to override the reply PowerDNS issues.
2968 ''',
2969 },
2970 {
2971 'name' : 'webserver',
2972 'section' : 'webservice',
2973 'type' : LType.Bool,
2974 'default' : 'false',
2975 'help' : 'Start a webserver (for REST API)',
2976 'doc' : '''
2977 Start the webserver (for REST API).
2978 ''',
2979 },
2980 {
2981 'name' : 'address',
2982 'section' : 'webservice',
2983 'oldname' : 'webserver-address',
2984 'type' : LType.String,
2985 'default' : '127.0.0.1',
2986 'help' : 'IP Address of webserver to listen on',
2987 'doc' : '''
2988 IP address for the webserver to listen on.
2989 ''',
2990 },
2991 {
2992 'name' : 'allow_from',
2993 'section' : 'webservice',
2994 'oldname' : 'webserver-allow-from',
2995 'type' : LType.ListSubnets,
2996 'default' : '127.0.0.1, ::1',
2997 'help' : 'Webserver access is only allowed from these subnets',
2998 'doc' : '''
2999 These IPs and subnets are allowed to access the webserver. Note that
3000 specifying an IP address without a netmask uses an implicit netmask
3001 of /32 or /128.
3002 ''',
3003 'versionchanged': ('4.1.0', 'Default is now 127.0.0.1,::1, was 0.0.0.0/0,::/0 before.')
3004 },
3005 {
3006 'name' : 'hash_plaintext_credentials',
3007 'section' : 'webservice',
3008 'oldname': 'webserver-hash-plaintext-credentials',
3009 'type' : LType.Bool,
3010 'default' : 'false',
3011 'help' : 'Whether to hash passwords and api keys supplied in plaintext, to prevent keeping the plaintext version in memory at runtime',
3012 'doc' : '''
3013 Whether passwords and API keys supplied in the configuration as plaintext should be hashed during startup, to prevent the plaintext versions from staying in memory. Doing so increases significantly the cost of verifying credentials and is thus disabled by default.
3014 Note that this option only applies to credentials stored in the configuration as plaintext, but hashed credentials are supported without enabling this option.
3015 ''',
3016 'versionadded': '4.6.0'
3017 },
3018 {
3019 'name' : 'loglevel',
3020 'section' : 'webservice',
3021 'oldname' : 'webserver-loglevel',
3022 'type' : LType.String,
3023 'default' : 'normal',
3024 'help' : 'Amount of logging in the webserver (none, normal, detailed)',
3025 'doc' : '''
3026 One of ``none``, ``normal``, ``detailed``.
3027 The amount of logging the webserver must do. 'none' means no useful webserver information will be logged.
3028 When set to 'normal', the webserver will log a line per request that should be familiar::
3029
3030 [webserver] e235780e-a5cf-415e-9326-9d33383e739e 127.0.0.1:55376 'GET /api/v1/servers/localhost/bla HTTP/1.1' 404 196
3031
3032 When set to 'detailed', all information about the request and response are logged::
3033
3034 [webserver] e235780e-a5cf-415e-9326-9d33383e739e Request Details:
3035 [webserver] e235780e-a5cf-415e-9326-9d33383e739e Headers:
3036 [webserver] e235780e-a5cf-415e-9326-9d33383e739e accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
3037 [webserver] e235780e-a5cf-415e-9326-9d33383e739e accept-encoding: gzip, deflate
3038 [webserver] e235780e-a5cf-415e-9326-9d33383e739e accept-language: en-US,en;q=0.5
3039 [webserver] e235780e-a5cf-415e-9326-9d33383e739e connection: keep-alive
3040 [webserver] e235780e-a5cf-415e-9326-9d33383e739e dnt: 1
3041 [webserver] e235780e-a5cf-415e-9326-9d33383e739e host: 127.0.0.1:8081
3042 [webserver] e235780e-a5cf-415e-9326-9d33383e739e upgrade-insecure-requests: 1
3043 [webserver] e235780e-a5cf-415e-9326-9d33383e739e user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0
3044 [webserver] e235780e-a5cf-415e-9326-9d33383e739e No body
3045 [webserver] e235780e-a5cf-415e-9326-9d33383e739e Response details:
3046 [webserver] e235780e-a5cf-415e-9326-9d33383e739e Headers:
3047 [webserver] e235780e-a5cf-415e-9326-9d33383e739e Connection: close
3048 [webserver] e235780e-a5cf-415e-9326-9d33383e739e Content-Length: 49
3049 [webserver] e235780e-a5cf-415e-9326-9d33383e739e Content-Type: text/html; charset=utf-8
3050 [webserver] e235780e-a5cf-415e-9326-9d33383e739e Server: PowerDNS/0.0.15896.0.gaba8bab3ab
3051 [webserver] e235780e-a5cf-415e-9326-9d33383e739e Full body:
3052 [webserver] e235780e-a5cf-415e-9326-9d33383e739e <!html><title>Not Found</title><h1>Not Found</h1>
3053 [webserver] e235780e-a5cf-415e-9326-9d33383e739e 127.0.0.1:55376 'GET /api/v1/servers/localhost/bla HTTP/1.1' 404 196
3054
3055 The value between the hooks is a UUID that is generated for each request. This can be used to find all lines related to a single request.
3056
3057 .. note::
3058 The webserver logs these line on the NOTICE level. The :ref:`setting-loglevel` seting must be 5 or higher for these lines to end up in the log.
3059 ''',
3060 'versionadded': '4.2.0'
3061 },
3062 {
3063 'name' : 'password',
3064 'section' : 'webservice',
3065 'oldname' : 'webserver-password',
3066 'type' : LType.String,
3067 'default' : '',
3068 'help' : 'Password required for accessing the webserver',
3069 'doc' : '''
3070 Password required to access the webserver. Since 4.6.0 the password can be hashed and salted using ``rec_control hash-password`` instead of being present in the configuration in plaintext, but the plaintext version is still supported.
3071 ''',
3072 'versionchanged': ('4.6.0', 'This setting now accepts a hashed and salted version.')
3073 },
3074 {
3075 'name' : 'port',
3076 'section' : 'webservice',
3077 'type' : LType.Uint64,
3078 'oldname': 'webserver-port',
3079 'default' : '8082',
3080 'help' : 'Port of webserver to listen on',
3081 'doc' : '''
3082 TCP port where the webserver should listen on.
3083 ''',
3084 },
3085 {
3086 'name' : 'write_pid',
3087 'section' : 'recursor',
3088 'type' : LType.Bool,
3089 'default' : 'true',
3090 'help' : 'Write a PID file',
3091 'doc' : '''
3092 If a PID file should be written to :ref:`setting-socket-dir`
3093 ''',
3094 },
3095 {
3096 'name' : 'x_dnssec_names',
3097 'section' : 'dnssec',
3098 'type' : LType.ListStrings,
3099 'default' : '',
3100 'help' : 'Collect DNSSEC statistics for names or suffixes in this list in separate x-dnssec counters',
3101 'doc' : '''
3102 List of names whose DNSSEC validation metrics will be counted in a separate set of metrics that start
3103 with ``x-dnssec-result-``.
3104 The names are suffix-matched.
3105 This can be used to not count known failing (test) name validations in the ordinary DNSSEC metrics.
3106 ''',
3107 'versionadded': '4.5.0'
3108 },
3109 ]