2025-05-20 06:20:20 -04:00
|
|
|
.\" Man page generated from reStructuredText.
|
|
|
|
|
.
|
|
|
|
|
.
|
|
|
|
|
.nr rst2man-indent-level 0
|
|
|
|
|
.
|
|
|
|
|
.de1 rstReportMargin
|
|
|
|
|
\\$1 \\n[an-margin]
|
|
|
|
|
level \\n[rst2man-indent-level]
|
|
|
|
|
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
|
|
|
-
|
|
|
|
|
\\n[rst2man-indent0]
|
|
|
|
|
\\n[rst2man-indent1]
|
|
|
|
|
\\n[rst2man-indent2]
|
|
|
|
|
..
|
|
|
|
|
.de1 INDENT
|
|
|
|
|
.\" .rstReportMargin pre:
|
|
|
|
|
. RS \\$1
|
|
|
|
|
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
|
|
|
|
|
. nr rst2man-indent-level +1
|
|
|
|
|
.\" .rstReportMargin post:
|
|
|
|
|
..
|
|
|
|
|
.de UNINDENT
|
|
|
|
|
. RE
|
|
|
|
|
.\" indent \\n[an-margin]
|
|
|
|
|
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
|
|
|
.nr rst2man-indent-level -1
|
|
|
|
|
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
|
|
|
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
|
|
|
|
|
..
|
|
|
|
|
.TH "UNBOUND-CONTROL" "8" "@date@" "@version@" "Unbound"
|
|
|
|
|
.SH NAME
|
|
|
|
|
unbound-control \- Unbound @version@ remote server control utility.
|
|
|
|
|
.SH SYNOPSIS
|
|
|
|
|
.sp
|
|
|
|
|
\fBunbound\-control\fP [\fB\-hq\fP] [\fB\-c cfgfile\fP] [\fB\-s server\fP] command
|
|
|
|
|
.SH DESCRIPTION
|
|
|
|
|
.sp
|
|
|
|
|
\fBunbound\-control\fP performs remote administration on the
|
|
|
|
|
\fI\%unbound(8)\fP DNS server.
|
|
|
|
|
It reads the configuration file, contacts the Unbound server over TLS sends the
|
|
|
|
|
command and displays the result.
|
|
|
|
|
.sp
|
2008-09-11 10:14:12 -04:00
|
|
|
The available options are:
|
2025-05-20 06:20:20 -04:00
|
|
|
.INDENT 0.0
|
2008-09-11 10:14:12 -04:00
|
|
|
.TP
|
|
|
|
|
.B \-h
|
|
|
|
|
Show the version and commandline option help.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B \-c <cfgfile>
|
|
|
|
|
The config file to read with settings.
|
|
|
|
|
If not given the default config file
|
|
|
|
|
\fB@ub_conf_file@\fP is used.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B \-s <server[@port]>
|
|
|
|
|
IPv4 or IPv6 address of the server to contact.
|
|
|
|
|
If not given, the address is read from the config file.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2012-09-27 05:32:35 -04:00
|
|
|
.TP
|
|
|
|
|
.B \-q
|
2025-05-20 06:20:20 -04:00
|
|
|
Quiet, if the option is given it does not print anything if it works ok.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.SH COMMANDS
|
|
|
|
|
.sp
|
2008-09-11 10:14:12 -04:00
|
|
|
There are several commands that the server understands.
|
2025-05-20 06:20:20 -04:00
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B start
|
|
|
|
|
Start the server.
|
|
|
|
|
Simply execs \fI\%unbound(8)\fP\&.
|
|
|
|
|
The \fBunbound\fP executable is searched for in the \fBPATH\fP set in the
|
|
|
|
|
environment.
|
|
|
|
|
It is started with the config file specified using \fI\%\-c\fP or the
|
|
|
|
|
default config file.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B stop
|
|
|
|
|
Stop the server.
|
|
|
|
|
The server daemon exits.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B reload
|
|
|
|
|
Reload the server.
|
|
|
|
|
This flushes the cache and reads the config file fresh.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B reload_keep_cache
|
2022-12-14 10:33:28 -05:00
|
|
|
Reload the server but try to keep the RRset and message cache if
|
|
|
|
|
(re)configuration allows for it.
|
2025-05-20 06:20:20 -04:00
|
|
|
That means the caches sizes and the number of threads must not change
|
|
|
|
|
between reloads.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2022-12-14 10:33:28 -05:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B fast_reload [\fB+dpv\fP]
|
Fast Reload Option (#1042)
* - fast-reload, add unbound-control fast_reload
* - fast-reload, make a thread to service the unbound-control command.
* - fast-reload, communication sockets for information transfer.
* - fast-reload, fix compile for unbound-dnstap-socket.
* - fast-reload, set nonblocking communication to keep the server thread
responding to DNS requests.
* - fast-reload, poll routine to test for readiness, timeout fails connection.
* - fast-reload, detect loop in sock_poll_timeout routine.
* - fast-reload, send done and exited notification.
* - fast-reload, defines for constants in ipc.
* - fast-reload, ipc socket recv and send resists partial reads and writes and
can continue byte by byte. Also it can continue after an interrupt.
* - fast-reload, send exit command to thread when done.
* - fast-reload, output strings for client on string list.
* - fast-reload, add newline to terminal output.
* - fast-reload, send client string to remote client.
* - fast-reload, better debug output.
* - fast-reload, print queue structure, for output to the remote client.
* - fast-reload, move print items to print queue from fast_reload_thread struct.
* - fast-reload, keep list of pending print queue items in daemon struct.
* - fast-reload, comment explains in_list for printq to print remainder.
* - fast-reload, unit test testdata/fast_reload_thread.tdir that tests the
thread output.
* - fast-reload, fix test link for fast_reload_printq_list_delete function.
* - fast-reload, reread config file from disk.
* - fast-reload, unshare forwards, making the structure locked, with an rwlock.
* - fast-reload, for nonthreaded, the unbound-control commands forward,
forward_add and forward_delete should be distributed to other processes,
but when threaded, they should not be distributed to other threads because
the structure is not thread specific any more.
* - fast-reload, unshared stub hints, making the structure locked, with an rwlock.
* - fast-reload, helpful comments for hints lookup function return value.
* - fast-reload, fix bug in fast reload printout, the strlist appendlist routine,
and printout time statistics after the reload is done.
* - fast-reload, keep track of reloadtime and deletestime and print them.
* - fast-reload, keep track of constructtime and print it.
* - fast-reload, construct new items.
* - fast-reload, better comment.
* - fast-reload, reload the config and swap trees for forwards and stub hints.
* - fast-reload, in forwards_swap_tree set protection of trees with locks.
* - fast-reload, in hints_swap_tree also swap the node count of the trees.
* - fast-reload, reload ipc to stop and start threads.
* - fast-reload, unused forward declarations removed.
* - fast-reload, unit test that fast reload works with forwards and stubs.
* - fast-reload, fix clang analyzer warnings.
* - fast-reload, small documentation entry in unbound-control -h output.
* - fast-reload, printout memory use by fast reload, in bytes.
* - fast-reload, compile without threads.
* - fast-reload, document fast_reload in man page.
* - fast-reload, print ok when done successfully.
* - fast-reload, option for fast-reload commandline, +v verbosity option,
with timing and memory use output.
* - fast-reload, option for fast-reload commandline, +p does not pause threads.
* - fast-reload, option for fast-reload commandline, +d drops mesh queries.
* - fast-reload, fix to poll every thread with nopause to make certain that
resources are not held by the threads and can be deleted.
* - fast-reload, fix to use atomic store for config variables with nopause.
* - fast-reload, reload views.
* - fast-reload, when tag defines are different, it drops the queries.
* - fast-reload, fix tag define check.
* - fast-reload, document that tag change causes drop of queries.
* - fast-reload, fix space in documentation man page.
* - fast-reload, copy respip client information to query state, put views tree
in module env for lookup.
* - fast-reload, nicer respip view comparison.
* - fast-reload, respip global set is in module env.
* - fast-reload, document that respip_client_info acl info is copied.
* - fast-reload, reload the respip_set.
* - fast-reload, document no pause and pick up of use_response_ip boolean.
* - fast-reload, fix test compile.
* - fast-reload, reload local zones.
* Update locking management for iter_fwd and iter_hints methods. (#1054)
fast reload, move most of the locking management to iter_fwd and
iter_hints methods. The caller still has the ability to handle its
own locking, if desired, for atomic operations on sets of different
structs.
Co-authored-by: Wouter Wijngaards <wcawijngaards@users.noreply.github.com>
* - fast-reload, reload access-control.
* - fast-reload, reload access control interface, such as interface-action.
* - fast-reload, reload tcp-connection-limit.
* - fast-reload, improve comments on acl_list and tcl_list swap tree.
* - fast-reload, fixup references to old tcp connection limits in open tcp
connections.
* - fast-reload, fixup to clean tcp connection also for different linked order.
* - fast-reload, if no tcp connection limits existed, no need to remove
references for that.
* - fast-reload, document more options that work and do not work.
* - fast-reload, reload auth_zone and rpz data.
* - fast-reload, fix auth_zones_get_mem.
* - fast-reload, fix compilation of testbound for the new comm_timer_get_mem
reference in remote control.
* - fast-reload, change use_rpz with reload.
* - fast-reload, list changes in auth zones and stop zonemd callbacks for
deleted auth zones.
* - fast-reload, note xtree is not swapped, and why it is not swapped.
* - fast-reload, for added auth zones, pick up zone transfer and zonemd tasks.
* - fast-reload, unlock xfr when done with transfer pick up.
* - fast-reload, unlock z when picking up the xfr for it during transfer task
pick up.
* - fast-reload, pick up task changes for added, deleted and modified auth zones.
* - fast-reload, remove xfr of auth zone deletion without tasks.
* - fast-reload, pick up zone transfer config.
* - fast-reload, the main worker thread picks up the transfer tasks and also
performs setup of the xfer struct.
* - fast-reload, keep writelock on newzone when auth zone changes.
* - fast-reload, change cachedb_enabled setting.
* - fast-reload, pick up edns-strings config.
* - fast-reload, note that settings are not updated.
* - fast-reload, pick up dnstap config.
* - fast-reload, dnstap options that need to be loaded without +p.
* - fast-reload, fix auth zone reload
* - fast-reload, remove debug for auth zone test.
* - fast-reload, fix auth zone reload with zone transfer.
* - fast-reload, fix auth zone reload lock order.
* - fast-reload, remove debug from fast reload test.
* - fast-reload, remove unused function.
* - fast-reload, fix the worker trust anchor probe timer lock acquisition in
the probe answer callback routine for trust anchor probes.
* - fast-reload, reload trust anchors.
* - fast-reload, fix trust anchor reload lock on autr global data and test
for trust anchor reload.
* - fast-reload, adjust cache sizes.
* - fast-reload, reload cache sizes when changed.
* - fast-reload, reload validator env changes.
* - fast-reload, reload mesh changes.
* - fast-reload, check for incompatible changes.
* - fast-reload, improve error text for incompatible change.
* - fast-reload, fix check config option compatibility.
* - fast-reload, improve error text for nopause change.
* - fast-reload, fix spelling of incompatible options.
* - fast-reload, reload target-fetch-policy, outbound-msg-retry, max-sent-count
and max-query-restarts.
* - fast-reload, check nopause config change for target-fetch-policy.
* - fast-reload, reload do-not-query-address, private-address and capt-exempt.
* - fast-reload, check nopause config change for do-not-query-address,
private-address and capt-exempt.
* - fast-reload, check fast reload not possible due to interface and
outgoing-interface changes.
* - fast-reload, reload nat64 settings.
* - fast-reload, reload settings stored in the infra structure.
* - fast-reload, fix modstack lookup and remove outgoing-range check.
* - fast-reload, more explanation for config parse failure.
* - fast-reload, reload worker outside network changes.
* - fast-reload, detect incompatible changes in network settings.
* fast-reload, commit test files.
* - fast-reload, fix warnings for call types in windows compile.
* - fast-reload, fix warnings and comm_point_internal for tcp wouldblock calls.
* - fast-reload, extend lock checks for repeat thread ids.
* - fast-reload, additional test cases, cache change and tag changes.
* - fast-reload, fix documentation for auth_zone_verify_zonemd_with_key.
* - fast-reload, fix copy_cfg type casts and memory leak on config parse failure.
* - fast-reload, fix use of WSAPoll.
* Review comments for the fast reload feature (#1259)
* - fast-reload review, respip set can be null from a view.
* - fast-reload review, typos.
* - fast-reload review, keep clang static analyzer happy.
* - fast-reload review, don't forget to copy tag_actions.
* - fast-reload review, less indentation.
* - fast-reload review, don't leak respip_actions when reloading.
* - fast-reload review, protect NULL pointer dereference in get_mem
functions.
* - fast-reload review, add fast_reload_most_options.tdir to test most
options with high verbosity when fast reloading.
* - fast-reload review, don't skip new line on long error printouts.
* - fast-reload review, typo.
* - fast-reload review, use new_z for consistency.
* - fast-reload review, nit for unlock ordering to make eye comparison
with the lock counterpart easier.
* - fast-reload review, in case of error the sockets are already closed.
* - fast-reload review, identation.
* - fast-reload review, add static keywords.
* - fast-reload review, update unbound-control usage text.
* - fast-reload review, updates to the man page.
* - fast-reload, the fast-reload command is experimental.
* - fast-reload, fix compile of doqclient for fast reload functions.
* Changelog comment for #1042
- Merge #1042: Fast Reload. The unbound-control fast_reload is added.
It reads changed config in a thread, then only briefly pauses the
service threads, that keep running. DNS service is only interrupted
briefly, less than a second.
---------
Co-authored-by: Yorgos Thessalonikefs <yorgos@nlnetlabs.nl>
2025-03-31 09:25:24 -04:00
|
|
|
Reload the server, but keep downtime to a minimum, so that user queries
|
2025-05-20 06:20:20 -04:00
|
|
|
keep seeing service.
|
|
|
|
|
This needs the code compiled with threads.
|
|
|
|
|
The config is loaded in a thread, and prepared, then it briefly pauses the
|
|
|
|
|
existing server and updates config options.
|
|
|
|
|
The intent is that the pause does not impact the service of user queries.
|
|
|
|
|
The cache is kept.
|
|
|
|
|
Also user queries worked on are kept and continue, but with the new config
|
|
|
|
|
options.
|
|
|
|
|
.sp
|
|
|
|
|
\fBNOTE:\fP
|
|
|
|
|
.INDENT 7.0
|
|
|
|
|
.INDENT 3.5
|
Fast Reload Option (#1042)
* - fast-reload, add unbound-control fast_reload
* - fast-reload, make a thread to service the unbound-control command.
* - fast-reload, communication sockets for information transfer.
* - fast-reload, fix compile for unbound-dnstap-socket.
* - fast-reload, set nonblocking communication to keep the server thread
responding to DNS requests.
* - fast-reload, poll routine to test for readiness, timeout fails connection.
* - fast-reload, detect loop in sock_poll_timeout routine.
* - fast-reload, send done and exited notification.
* - fast-reload, defines for constants in ipc.
* - fast-reload, ipc socket recv and send resists partial reads and writes and
can continue byte by byte. Also it can continue after an interrupt.
* - fast-reload, send exit command to thread when done.
* - fast-reload, output strings for client on string list.
* - fast-reload, add newline to terminal output.
* - fast-reload, send client string to remote client.
* - fast-reload, better debug output.
* - fast-reload, print queue structure, for output to the remote client.
* - fast-reload, move print items to print queue from fast_reload_thread struct.
* - fast-reload, keep list of pending print queue items in daemon struct.
* - fast-reload, comment explains in_list for printq to print remainder.
* - fast-reload, unit test testdata/fast_reload_thread.tdir that tests the
thread output.
* - fast-reload, fix test link for fast_reload_printq_list_delete function.
* - fast-reload, reread config file from disk.
* - fast-reload, unshare forwards, making the structure locked, with an rwlock.
* - fast-reload, for nonthreaded, the unbound-control commands forward,
forward_add and forward_delete should be distributed to other processes,
but when threaded, they should not be distributed to other threads because
the structure is not thread specific any more.
* - fast-reload, unshared stub hints, making the structure locked, with an rwlock.
* - fast-reload, helpful comments for hints lookup function return value.
* - fast-reload, fix bug in fast reload printout, the strlist appendlist routine,
and printout time statistics after the reload is done.
* - fast-reload, keep track of reloadtime and deletestime and print them.
* - fast-reload, keep track of constructtime and print it.
* - fast-reload, construct new items.
* - fast-reload, better comment.
* - fast-reload, reload the config and swap trees for forwards and stub hints.
* - fast-reload, in forwards_swap_tree set protection of trees with locks.
* - fast-reload, in hints_swap_tree also swap the node count of the trees.
* - fast-reload, reload ipc to stop and start threads.
* - fast-reload, unused forward declarations removed.
* - fast-reload, unit test that fast reload works with forwards and stubs.
* - fast-reload, fix clang analyzer warnings.
* - fast-reload, small documentation entry in unbound-control -h output.
* - fast-reload, printout memory use by fast reload, in bytes.
* - fast-reload, compile without threads.
* - fast-reload, document fast_reload in man page.
* - fast-reload, print ok when done successfully.
* - fast-reload, option for fast-reload commandline, +v verbosity option,
with timing and memory use output.
* - fast-reload, option for fast-reload commandline, +p does not pause threads.
* - fast-reload, option for fast-reload commandline, +d drops mesh queries.
* - fast-reload, fix to poll every thread with nopause to make certain that
resources are not held by the threads and can be deleted.
* - fast-reload, fix to use atomic store for config variables with nopause.
* - fast-reload, reload views.
* - fast-reload, when tag defines are different, it drops the queries.
* - fast-reload, fix tag define check.
* - fast-reload, document that tag change causes drop of queries.
* - fast-reload, fix space in documentation man page.
* - fast-reload, copy respip client information to query state, put views tree
in module env for lookup.
* - fast-reload, nicer respip view comparison.
* - fast-reload, respip global set is in module env.
* - fast-reload, document that respip_client_info acl info is copied.
* - fast-reload, reload the respip_set.
* - fast-reload, document no pause and pick up of use_response_ip boolean.
* - fast-reload, fix test compile.
* - fast-reload, reload local zones.
* Update locking management for iter_fwd and iter_hints methods. (#1054)
fast reload, move most of the locking management to iter_fwd and
iter_hints methods. The caller still has the ability to handle its
own locking, if desired, for atomic operations on sets of different
structs.
Co-authored-by: Wouter Wijngaards <wcawijngaards@users.noreply.github.com>
* - fast-reload, reload access-control.
* - fast-reload, reload access control interface, such as interface-action.
* - fast-reload, reload tcp-connection-limit.
* - fast-reload, improve comments on acl_list and tcl_list swap tree.
* - fast-reload, fixup references to old tcp connection limits in open tcp
connections.
* - fast-reload, fixup to clean tcp connection also for different linked order.
* - fast-reload, if no tcp connection limits existed, no need to remove
references for that.
* - fast-reload, document more options that work and do not work.
* - fast-reload, reload auth_zone and rpz data.
* - fast-reload, fix auth_zones_get_mem.
* - fast-reload, fix compilation of testbound for the new comm_timer_get_mem
reference in remote control.
* - fast-reload, change use_rpz with reload.
* - fast-reload, list changes in auth zones and stop zonemd callbacks for
deleted auth zones.
* - fast-reload, note xtree is not swapped, and why it is not swapped.
* - fast-reload, for added auth zones, pick up zone transfer and zonemd tasks.
* - fast-reload, unlock xfr when done with transfer pick up.
* - fast-reload, unlock z when picking up the xfr for it during transfer task
pick up.
* - fast-reload, pick up task changes for added, deleted and modified auth zones.
* - fast-reload, remove xfr of auth zone deletion without tasks.
* - fast-reload, pick up zone transfer config.
* - fast-reload, the main worker thread picks up the transfer tasks and also
performs setup of the xfer struct.
* - fast-reload, keep writelock on newzone when auth zone changes.
* - fast-reload, change cachedb_enabled setting.
* - fast-reload, pick up edns-strings config.
* - fast-reload, note that settings are not updated.
* - fast-reload, pick up dnstap config.
* - fast-reload, dnstap options that need to be loaded without +p.
* - fast-reload, fix auth zone reload
* - fast-reload, remove debug for auth zone test.
* - fast-reload, fix auth zone reload with zone transfer.
* - fast-reload, fix auth zone reload lock order.
* - fast-reload, remove debug from fast reload test.
* - fast-reload, remove unused function.
* - fast-reload, fix the worker trust anchor probe timer lock acquisition in
the probe answer callback routine for trust anchor probes.
* - fast-reload, reload trust anchors.
* - fast-reload, fix trust anchor reload lock on autr global data and test
for trust anchor reload.
* - fast-reload, adjust cache sizes.
* - fast-reload, reload cache sizes when changed.
* - fast-reload, reload validator env changes.
* - fast-reload, reload mesh changes.
* - fast-reload, check for incompatible changes.
* - fast-reload, improve error text for incompatible change.
* - fast-reload, fix check config option compatibility.
* - fast-reload, improve error text for nopause change.
* - fast-reload, fix spelling of incompatible options.
* - fast-reload, reload target-fetch-policy, outbound-msg-retry, max-sent-count
and max-query-restarts.
* - fast-reload, check nopause config change for target-fetch-policy.
* - fast-reload, reload do-not-query-address, private-address and capt-exempt.
* - fast-reload, check nopause config change for do-not-query-address,
private-address and capt-exempt.
* - fast-reload, check fast reload not possible due to interface and
outgoing-interface changes.
* - fast-reload, reload nat64 settings.
* - fast-reload, reload settings stored in the infra structure.
* - fast-reload, fix modstack lookup and remove outgoing-range check.
* - fast-reload, more explanation for config parse failure.
* - fast-reload, reload worker outside network changes.
* - fast-reload, detect incompatible changes in network settings.
* fast-reload, commit test files.
* - fast-reload, fix warnings for call types in windows compile.
* - fast-reload, fix warnings and comm_point_internal for tcp wouldblock calls.
* - fast-reload, extend lock checks for repeat thread ids.
* - fast-reload, additional test cases, cache change and tag changes.
* - fast-reload, fix documentation for auth_zone_verify_zonemd_with_key.
* - fast-reload, fix copy_cfg type casts and memory leak on config parse failure.
* - fast-reload, fix use of WSAPoll.
* Review comments for the fast reload feature (#1259)
* - fast-reload review, respip set can be null from a view.
* - fast-reload review, typos.
* - fast-reload review, keep clang static analyzer happy.
* - fast-reload review, don't forget to copy tag_actions.
* - fast-reload review, less indentation.
* - fast-reload review, don't leak respip_actions when reloading.
* - fast-reload review, protect NULL pointer dereference in get_mem
functions.
* - fast-reload review, add fast_reload_most_options.tdir to test most
options with high verbosity when fast reloading.
* - fast-reload review, don't skip new line on long error printouts.
* - fast-reload review, typo.
* - fast-reload review, use new_z for consistency.
* - fast-reload review, nit for unlock ordering to make eye comparison
with the lock counterpart easier.
* - fast-reload review, in case of error the sockets are already closed.
* - fast-reload review, identation.
* - fast-reload review, add static keywords.
* - fast-reload review, update unbound-control usage text.
* - fast-reload review, updates to the man page.
* - fast-reload, the fast-reload command is experimental.
* - fast-reload, fix compile of doqclient for fast reload functions.
* Changelog comment for #1042
- Merge #1042: Fast Reload. The unbound-control fast_reload is added.
It reads changed config in a thread, then only briefly pauses the
service threads, that keep running. DNS service is only interrupted
briefly, less than a second.
---------
Co-authored-by: Yorgos Thessalonikefs <yorgos@nlnetlabs.nl>
2025-03-31 09:25:24 -04:00
|
|
|
This command is experimental at this time.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.sp
|
2025-04-07 10:56:38 -04:00
|
|
|
The amount of temporal memory needed during a fast_reload is twice the
|
|
|
|
|
amount needed for configuration.
|
2025-05-20 06:20:20 -04:00
|
|
|
This is because Unbound temporarily needs to store both current
|
|
|
|
|
configuration values and new ones while trying to fast_reload.
|
2025-04-07 10:56:38 -04:00
|
|
|
Zones loaded from disk (authority zones and RPZ zones) are included in such
|
|
|
|
|
memory needs.
|
2025-05-20 06:20:20 -04:00
|
|
|
.sp
|
2025-04-08 09:34:51 -04:00
|
|
|
Options that can be changed are for
|
2025-05-20 06:20:20 -04:00
|
|
|
\fI\%forwards\fP,
|
|
|
|
|
\fI\%stubs\fP,
|
|
|
|
|
\fI\%views\fP,
|
|
|
|
|
\fI\%authority zones\fP,
|
|
|
|
|
\fI\%RPZ zones\fP and
|
|
|
|
|
\fI\%local zones\fP\&.
|
|
|
|
|
.sp
|
2025-04-08 09:34:51 -04:00
|
|
|
Also
|
2025-05-20 06:20:20 -04:00
|
|
|
\fI\%access\-control\fP and similar options,
|
|
|
|
|
\fI\%interface\-action\fP and similar
|
|
|
|
|
options and
|
|
|
|
|
\fI\%tcp\-connection\-limit\fP\&.
|
2025-04-08 09:34:51 -04:00
|
|
|
It can reload some
|
2025-05-20 06:20:20 -04:00
|
|
|
\fI\%define\-tag\fP
|
2025-04-08 09:34:51 -04:00
|
|
|
changes, more on that below.
|
|
|
|
|
Further options include
|
2025-05-20 06:20:20 -04:00
|
|
|
\fI\%insecure\-lan\-zones\fP,
|
|
|
|
|
\fI\%domain\-insecure\fP,
|
|
|
|
|
\fI\%trust\-anchor\-file\fP,
|
|
|
|
|
\fI\%trust\-anchor\fP,
|
|
|
|
|
\fI\%trusted\-keys\-file\fP,
|
|
|
|
|
\fI\%auto\-trust\-anchor\-file\fP,
|
|
|
|
|
\fI\%edns\-client\-string\fP,
|
2025-04-08 09:34:51 -04:00
|
|
|
ipset,
|
2025-05-20 06:20:20 -04:00
|
|
|
\fI\%log\-identity\fP,
|
|
|
|
|
\fI\%infra\-cache\-numhosts\fP,
|
|
|
|
|
\fI\%msg\-cache\-size\fP,
|
|
|
|
|
\fI\%rrset\-cache\-size\fP,
|
|
|
|
|
\fI\%key\-cache\-size\fP,
|
|
|
|
|
\fI\%ratelimit\-size\fP,
|
|
|
|
|
\fI\%neg\-cache\-size\fP,
|
|
|
|
|
\fI\%num\-queries\-per\-thread\fP,
|
|
|
|
|
\fI\%jostle\-timeout\fP,
|
|
|
|
|
\fI\%use\-caps\-for\-id\fP,
|
|
|
|
|
\fI\%unwanted\-reply\-threshold\fP,
|
|
|
|
|
\fI\%tls\-use\-sni\fP,
|
|
|
|
|
\fI\%outgoing\-tcp\-mss\fP,
|
|
|
|
|
\fI\%ip\-dscp\fP,
|
|
|
|
|
\fI\%max\-reuse\-tcp\-queries\fP,
|
|
|
|
|
\fI\%tcp\-reuse\-timeout\fP,
|
|
|
|
|
\fI\%tcp\-auth\-query\-timeout\fP,
|
|
|
|
|
\fI\%delay\-close\fP\&.
|
|
|
|
|
.sp
|
2025-04-08 09:34:51 -04:00
|
|
|
It does not work with
|
2025-05-20 06:20:20 -04:00
|
|
|
\fI\%interface\fP and
|
|
|
|
|
\fI\%outgoing\-interface\fP changes,
|
2025-04-08 09:34:51 -04:00
|
|
|
also not with
|
2025-05-20 06:20:20 -04:00
|
|
|
\fI\%remote control\fP,
|
|
|
|
|
\fI\%outgoing\-port\-permit\fP,
|
|
|
|
|
\fI\%outgoing\-port\-avoid\fP,
|
|
|
|
|
\fI\%msg\-buffer\-size\fP,
|
|
|
|
|
any \fB*\-slabs\fP options and
|
|
|
|
|
\fI\%statistics\-interval\fP changes.
|
|
|
|
|
.sp
|
|
|
|
|
For \fI\%dnstap\fP these options can be changed:
|
|
|
|
|
\fI\%dnstap\-log\-resolver\-query\-messages\fP,
|
|
|
|
|
\fI\%dnstap\-log\-resolver\-response\-messages\fP,
|
|
|
|
|
\fI\%dnstap\-log\-client\-query\-messages\fP,
|
|
|
|
|
\fI\%dnstap\-log\-client\-response\-messages\fP,
|
|
|
|
|
\fI\%dnstap\-log\-forwarder\-query\-messages\fP and
|
|
|
|
|
\fI\%dnstap\-log\-forwarder\-response\-messages\fP\&.
|
|
|
|
|
.sp
|
2025-04-08 09:34:51 -04:00
|
|
|
It does not work with these options:
|
2025-05-20 06:20:20 -04:00
|
|
|
\fI\%dnstap\-enable\fP,
|
|
|
|
|
\fI\%dnstap\-bidirectional\fP,
|
|
|
|
|
\fI\%dnstap\-socket\-path\fP,
|
|
|
|
|
\fI\%dnstap\-ip\fP,
|
|
|
|
|
\fI\%dnstap\-tls\fP,
|
|
|
|
|
\fI\%dnstap\-tls\-server\-name\fP,
|
|
|
|
|
\fI\%dnstap\-tls\-cert\-bundle\fP,
|
|
|
|
|
\fI\%dnstap\-tls\-client\-key\-file\fP and
|
|
|
|
|
\fI\%dnstap\-tls\-client\-cert\-file\fP\&.
|
|
|
|
|
.sp
|
2025-04-08 09:34:51 -04:00
|
|
|
The options
|
2025-05-20 06:20:20 -04:00
|
|
|
\fI\%dnstap\-send\-identity\fP,
|
|
|
|
|
\fI\%dnstap\-send\-version\fP,
|
|
|
|
|
\fI\%dnstap\-identity\fP, and
|
|
|
|
|
\fI\%dnstap\-version\fP can be loaded
|
|
|
|
|
when \fB+p\fP is not used.
|
|
|
|
|
.sp
|
|
|
|
|
The \fB+v\fP option makes the output verbose which includes the time it took
|
|
|
|
|
to do the reload.
|
|
|
|
|
With \fB+vv\fP it is more verbose which includes the amount of memory that
|
|
|
|
|
was allocated temporarily to perform the reload; this amount of memory can
|
|
|
|
|
be big if the config has large contents.
|
|
|
|
|
In the timing output the \(aqreload\(aq time is the time during which the server
|
|
|
|
|
was paused.
|
|
|
|
|
.sp
|
|
|
|
|
The \fB+p\fP option makes the reload not pause threads, they keep running.
|
Fast Reload Option (#1042)
* - fast-reload, add unbound-control fast_reload
* - fast-reload, make a thread to service the unbound-control command.
* - fast-reload, communication sockets for information transfer.
* - fast-reload, fix compile for unbound-dnstap-socket.
* - fast-reload, set nonblocking communication to keep the server thread
responding to DNS requests.
* - fast-reload, poll routine to test for readiness, timeout fails connection.
* - fast-reload, detect loop in sock_poll_timeout routine.
* - fast-reload, send done and exited notification.
* - fast-reload, defines for constants in ipc.
* - fast-reload, ipc socket recv and send resists partial reads and writes and
can continue byte by byte. Also it can continue after an interrupt.
* - fast-reload, send exit command to thread when done.
* - fast-reload, output strings for client on string list.
* - fast-reload, add newline to terminal output.
* - fast-reload, send client string to remote client.
* - fast-reload, better debug output.
* - fast-reload, print queue structure, for output to the remote client.
* - fast-reload, move print items to print queue from fast_reload_thread struct.
* - fast-reload, keep list of pending print queue items in daemon struct.
* - fast-reload, comment explains in_list for printq to print remainder.
* - fast-reload, unit test testdata/fast_reload_thread.tdir that tests the
thread output.
* - fast-reload, fix test link for fast_reload_printq_list_delete function.
* - fast-reload, reread config file from disk.
* - fast-reload, unshare forwards, making the structure locked, with an rwlock.
* - fast-reload, for nonthreaded, the unbound-control commands forward,
forward_add and forward_delete should be distributed to other processes,
but when threaded, they should not be distributed to other threads because
the structure is not thread specific any more.
* - fast-reload, unshared stub hints, making the structure locked, with an rwlock.
* - fast-reload, helpful comments for hints lookup function return value.
* - fast-reload, fix bug in fast reload printout, the strlist appendlist routine,
and printout time statistics after the reload is done.
* - fast-reload, keep track of reloadtime and deletestime and print them.
* - fast-reload, keep track of constructtime and print it.
* - fast-reload, construct new items.
* - fast-reload, better comment.
* - fast-reload, reload the config and swap trees for forwards and stub hints.
* - fast-reload, in forwards_swap_tree set protection of trees with locks.
* - fast-reload, in hints_swap_tree also swap the node count of the trees.
* - fast-reload, reload ipc to stop and start threads.
* - fast-reload, unused forward declarations removed.
* - fast-reload, unit test that fast reload works with forwards and stubs.
* - fast-reload, fix clang analyzer warnings.
* - fast-reload, small documentation entry in unbound-control -h output.
* - fast-reload, printout memory use by fast reload, in bytes.
* - fast-reload, compile without threads.
* - fast-reload, document fast_reload in man page.
* - fast-reload, print ok when done successfully.
* - fast-reload, option for fast-reload commandline, +v verbosity option,
with timing and memory use output.
* - fast-reload, option for fast-reload commandline, +p does not pause threads.
* - fast-reload, option for fast-reload commandline, +d drops mesh queries.
* - fast-reload, fix to poll every thread with nopause to make certain that
resources are not held by the threads and can be deleted.
* - fast-reload, fix to use atomic store for config variables with nopause.
* - fast-reload, reload views.
* - fast-reload, when tag defines are different, it drops the queries.
* - fast-reload, fix tag define check.
* - fast-reload, document that tag change causes drop of queries.
* - fast-reload, fix space in documentation man page.
* - fast-reload, copy respip client information to query state, put views tree
in module env for lookup.
* - fast-reload, nicer respip view comparison.
* - fast-reload, respip global set is in module env.
* - fast-reload, document that respip_client_info acl info is copied.
* - fast-reload, reload the respip_set.
* - fast-reload, document no pause and pick up of use_response_ip boolean.
* - fast-reload, fix test compile.
* - fast-reload, reload local zones.
* Update locking management for iter_fwd and iter_hints methods. (#1054)
fast reload, move most of the locking management to iter_fwd and
iter_hints methods. The caller still has the ability to handle its
own locking, if desired, for atomic operations on sets of different
structs.
Co-authored-by: Wouter Wijngaards <wcawijngaards@users.noreply.github.com>
* - fast-reload, reload access-control.
* - fast-reload, reload access control interface, such as interface-action.
* - fast-reload, reload tcp-connection-limit.
* - fast-reload, improve comments on acl_list and tcl_list swap tree.
* - fast-reload, fixup references to old tcp connection limits in open tcp
connections.
* - fast-reload, fixup to clean tcp connection also for different linked order.
* - fast-reload, if no tcp connection limits existed, no need to remove
references for that.
* - fast-reload, document more options that work and do not work.
* - fast-reload, reload auth_zone and rpz data.
* - fast-reload, fix auth_zones_get_mem.
* - fast-reload, fix compilation of testbound for the new comm_timer_get_mem
reference in remote control.
* - fast-reload, change use_rpz with reload.
* - fast-reload, list changes in auth zones and stop zonemd callbacks for
deleted auth zones.
* - fast-reload, note xtree is not swapped, and why it is not swapped.
* - fast-reload, for added auth zones, pick up zone transfer and zonemd tasks.
* - fast-reload, unlock xfr when done with transfer pick up.
* - fast-reload, unlock z when picking up the xfr for it during transfer task
pick up.
* - fast-reload, pick up task changes for added, deleted and modified auth zones.
* - fast-reload, remove xfr of auth zone deletion without tasks.
* - fast-reload, pick up zone transfer config.
* - fast-reload, the main worker thread picks up the transfer tasks and also
performs setup of the xfer struct.
* - fast-reload, keep writelock on newzone when auth zone changes.
* - fast-reload, change cachedb_enabled setting.
* - fast-reload, pick up edns-strings config.
* - fast-reload, note that settings are not updated.
* - fast-reload, pick up dnstap config.
* - fast-reload, dnstap options that need to be loaded without +p.
* - fast-reload, fix auth zone reload
* - fast-reload, remove debug for auth zone test.
* - fast-reload, fix auth zone reload with zone transfer.
* - fast-reload, fix auth zone reload lock order.
* - fast-reload, remove debug from fast reload test.
* - fast-reload, remove unused function.
* - fast-reload, fix the worker trust anchor probe timer lock acquisition in
the probe answer callback routine for trust anchor probes.
* - fast-reload, reload trust anchors.
* - fast-reload, fix trust anchor reload lock on autr global data and test
for trust anchor reload.
* - fast-reload, adjust cache sizes.
* - fast-reload, reload cache sizes when changed.
* - fast-reload, reload validator env changes.
* - fast-reload, reload mesh changes.
* - fast-reload, check for incompatible changes.
* - fast-reload, improve error text for incompatible change.
* - fast-reload, fix check config option compatibility.
* - fast-reload, improve error text for nopause change.
* - fast-reload, fix spelling of incompatible options.
* - fast-reload, reload target-fetch-policy, outbound-msg-retry, max-sent-count
and max-query-restarts.
* - fast-reload, check nopause config change for target-fetch-policy.
* - fast-reload, reload do-not-query-address, private-address and capt-exempt.
* - fast-reload, check nopause config change for do-not-query-address,
private-address and capt-exempt.
* - fast-reload, check fast reload not possible due to interface and
outgoing-interface changes.
* - fast-reload, reload nat64 settings.
* - fast-reload, reload settings stored in the infra structure.
* - fast-reload, fix modstack lookup and remove outgoing-range check.
* - fast-reload, more explanation for config parse failure.
* - fast-reload, reload worker outside network changes.
* - fast-reload, detect incompatible changes in network settings.
* fast-reload, commit test files.
* - fast-reload, fix warnings for call types in windows compile.
* - fast-reload, fix warnings and comm_point_internal for tcp wouldblock calls.
* - fast-reload, extend lock checks for repeat thread ids.
* - fast-reload, additional test cases, cache change and tag changes.
* - fast-reload, fix documentation for auth_zone_verify_zonemd_with_key.
* - fast-reload, fix copy_cfg type casts and memory leak on config parse failure.
* - fast-reload, fix use of WSAPoll.
* Review comments for the fast reload feature (#1259)
* - fast-reload review, respip set can be null from a view.
* - fast-reload review, typos.
* - fast-reload review, keep clang static analyzer happy.
* - fast-reload review, don't forget to copy tag_actions.
* - fast-reload review, less indentation.
* - fast-reload review, don't leak respip_actions when reloading.
* - fast-reload review, protect NULL pointer dereference in get_mem
functions.
* - fast-reload review, add fast_reload_most_options.tdir to test most
options with high verbosity when fast reloading.
* - fast-reload review, don't skip new line on long error printouts.
* - fast-reload review, typo.
* - fast-reload review, use new_z for consistency.
* - fast-reload review, nit for unlock ordering to make eye comparison
with the lock counterpart easier.
* - fast-reload review, in case of error the sockets are already closed.
* - fast-reload review, identation.
* - fast-reload review, add static keywords.
* - fast-reload review, update unbound-control usage text.
* - fast-reload review, updates to the man page.
* - fast-reload, the fast-reload command is experimental.
* - fast-reload, fix compile of doqclient for fast reload functions.
* Changelog comment for #1042
- Merge #1042: Fast Reload. The unbound-control fast_reload is added.
It reads changed config in a thread, then only briefly pauses the
service threads, that keep running. DNS service is only interrupted
briefly, less than a second.
---------
Co-authored-by: Yorgos Thessalonikefs <yorgos@nlnetlabs.nl>
2025-03-31 09:25:24 -04:00
|
|
|
Locks are acquired, but items are updated in sequence, so it is possible
|
|
|
|
|
for threads to see an inconsistent state with some options from the old
|
|
|
|
|
and some options from the new config, such as cache TTL parameters from the
|
2025-05-20 06:20:20 -04:00
|
|
|
old config and forwards from the new config.
|
|
|
|
|
The stubs and forwards are updated at the same time, so that they are
|
|
|
|
|
viewed consistently, either old or new values together.
|
|
|
|
|
The option makes the reload time take eg. 3 microseconds instead of 0.3
|
|
|
|
|
milliseconds during which the worker threads are interrupted.
|
|
|
|
|
So, the interruption is much shorter, at the expense of some inconsistency.
|
|
|
|
|
After the reload itself, every worker thread is briefly contacted to make
|
|
|
|
|
them release resources, this makes the delete timing a little longer, and
|
|
|
|
|
takes up time from the remote control servicing worker thread.
|
|
|
|
|
.sp
|
|
|
|
|
With the nopause option (\fB+p\fP), the reload does not work to reload some
|
|
|
|
|
options, that fast reload works on without the nopause option:
|
|
|
|
|
\fI\%val\-bogus\-ttl\fP,
|
|
|
|
|
\fI\%val\-override\-date\fP,
|
|
|
|
|
\fI\%val\-sig\-skew\-min\fP,
|
|
|
|
|
\fI\%val\-sig\-skew\-max\fP,
|
|
|
|
|
\fI\%val\-max\-restart\fP,
|
|
|
|
|
\fI\%val\-nsec3\-keysize\-iterations\fP,
|
|
|
|
|
\fI\%target\-fetch\-policy\fP,
|
|
|
|
|
\fI\%outbound\-msg\-retry\fP,
|
|
|
|
|
\fI\%max\-sent\-count\fP,
|
|
|
|
|
\fI\%max\-query\-restarts\fP,
|
|
|
|
|
\fI\%do\-not\-query\-address\fP,
|
|
|
|
|
\fI\%do\-not\-query\-localhost\fP,
|
|
|
|
|
\fI\%private\-address\fP,
|
|
|
|
|
\fI\%private\-domain\fP,
|
|
|
|
|
\fI\%caps\-exempt\fP,
|
|
|
|
|
\fI\%nat64\-prefix\fP,
|
|
|
|
|
\fI\%do\-nat64\fP,
|
|
|
|
|
\fI\%infra\-host\-ttl\fP,
|
|
|
|
|
\fI\%infra\-keep\-probing\fP,
|
|
|
|
|
\fI\%ratelimit\fP,
|
|
|
|
|
\fI\%ip\-ratelimit\fP,
|
|
|
|
|
\fI\%ip\-ratelimit\-cookie\fP,
|
|
|
|
|
\fI\%wait\-limit\-netblock\fP,
|
|
|
|
|
\fI\%wait\-limit\-cookie\-netblock\fP,
|
|
|
|
|
\fI\%ratelimit\-below\-domain\fP,
|
|
|
|
|
\fI\%ratelimit\-for\-domain\fP\&.
|
|
|
|
|
.sp
|
|
|
|
|
The \fB+d\fP option makes the reload drop queries that the worker threads are
|
|
|
|
|
working on.
|
|
|
|
|
This is like
|
|
|
|
|
\fI\%flush_requestlist\fP\&.
|
|
|
|
|
Without it the queries are kept so that users keep getting answers for
|
|
|
|
|
those queries that are currently processed.
|
|
|
|
|
The drop makes it so that queries during the life time of the
|
Fast Reload Option (#1042)
* - fast-reload, add unbound-control fast_reload
* - fast-reload, make a thread to service the unbound-control command.
* - fast-reload, communication sockets for information transfer.
* - fast-reload, fix compile for unbound-dnstap-socket.
* - fast-reload, set nonblocking communication to keep the server thread
responding to DNS requests.
* - fast-reload, poll routine to test for readiness, timeout fails connection.
* - fast-reload, detect loop in sock_poll_timeout routine.
* - fast-reload, send done and exited notification.
* - fast-reload, defines for constants in ipc.
* - fast-reload, ipc socket recv and send resists partial reads and writes and
can continue byte by byte. Also it can continue after an interrupt.
* - fast-reload, send exit command to thread when done.
* - fast-reload, output strings for client on string list.
* - fast-reload, add newline to terminal output.
* - fast-reload, send client string to remote client.
* - fast-reload, better debug output.
* - fast-reload, print queue structure, for output to the remote client.
* - fast-reload, move print items to print queue from fast_reload_thread struct.
* - fast-reload, keep list of pending print queue items in daemon struct.
* - fast-reload, comment explains in_list for printq to print remainder.
* - fast-reload, unit test testdata/fast_reload_thread.tdir that tests the
thread output.
* - fast-reload, fix test link for fast_reload_printq_list_delete function.
* - fast-reload, reread config file from disk.
* - fast-reload, unshare forwards, making the structure locked, with an rwlock.
* - fast-reload, for nonthreaded, the unbound-control commands forward,
forward_add and forward_delete should be distributed to other processes,
but when threaded, they should not be distributed to other threads because
the structure is not thread specific any more.
* - fast-reload, unshared stub hints, making the structure locked, with an rwlock.
* - fast-reload, helpful comments for hints lookup function return value.
* - fast-reload, fix bug in fast reload printout, the strlist appendlist routine,
and printout time statistics after the reload is done.
* - fast-reload, keep track of reloadtime and deletestime and print them.
* - fast-reload, keep track of constructtime and print it.
* - fast-reload, construct new items.
* - fast-reload, better comment.
* - fast-reload, reload the config and swap trees for forwards and stub hints.
* - fast-reload, in forwards_swap_tree set protection of trees with locks.
* - fast-reload, in hints_swap_tree also swap the node count of the trees.
* - fast-reload, reload ipc to stop and start threads.
* - fast-reload, unused forward declarations removed.
* - fast-reload, unit test that fast reload works with forwards and stubs.
* - fast-reload, fix clang analyzer warnings.
* - fast-reload, small documentation entry in unbound-control -h output.
* - fast-reload, printout memory use by fast reload, in bytes.
* - fast-reload, compile without threads.
* - fast-reload, document fast_reload in man page.
* - fast-reload, print ok when done successfully.
* - fast-reload, option for fast-reload commandline, +v verbosity option,
with timing and memory use output.
* - fast-reload, option for fast-reload commandline, +p does not pause threads.
* - fast-reload, option for fast-reload commandline, +d drops mesh queries.
* - fast-reload, fix to poll every thread with nopause to make certain that
resources are not held by the threads and can be deleted.
* - fast-reload, fix to use atomic store for config variables with nopause.
* - fast-reload, reload views.
* - fast-reload, when tag defines are different, it drops the queries.
* - fast-reload, fix tag define check.
* - fast-reload, document that tag change causes drop of queries.
* - fast-reload, fix space in documentation man page.
* - fast-reload, copy respip client information to query state, put views tree
in module env for lookup.
* - fast-reload, nicer respip view comparison.
* - fast-reload, respip global set is in module env.
* - fast-reload, document that respip_client_info acl info is copied.
* - fast-reload, reload the respip_set.
* - fast-reload, document no pause and pick up of use_response_ip boolean.
* - fast-reload, fix test compile.
* - fast-reload, reload local zones.
* Update locking management for iter_fwd and iter_hints methods. (#1054)
fast reload, move most of the locking management to iter_fwd and
iter_hints methods. The caller still has the ability to handle its
own locking, if desired, for atomic operations on sets of different
structs.
Co-authored-by: Wouter Wijngaards <wcawijngaards@users.noreply.github.com>
* - fast-reload, reload access-control.
* - fast-reload, reload access control interface, such as interface-action.
* - fast-reload, reload tcp-connection-limit.
* - fast-reload, improve comments on acl_list and tcl_list swap tree.
* - fast-reload, fixup references to old tcp connection limits in open tcp
connections.
* - fast-reload, fixup to clean tcp connection also for different linked order.
* - fast-reload, if no tcp connection limits existed, no need to remove
references for that.
* - fast-reload, document more options that work and do not work.
* - fast-reload, reload auth_zone and rpz data.
* - fast-reload, fix auth_zones_get_mem.
* - fast-reload, fix compilation of testbound for the new comm_timer_get_mem
reference in remote control.
* - fast-reload, change use_rpz with reload.
* - fast-reload, list changes in auth zones and stop zonemd callbacks for
deleted auth zones.
* - fast-reload, note xtree is not swapped, and why it is not swapped.
* - fast-reload, for added auth zones, pick up zone transfer and zonemd tasks.
* - fast-reload, unlock xfr when done with transfer pick up.
* - fast-reload, unlock z when picking up the xfr for it during transfer task
pick up.
* - fast-reload, pick up task changes for added, deleted and modified auth zones.
* - fast-reload, remove xfr of auth zone deletion without tasks.
* - fast-reload, pick up zone transfer config.
* - fast-reload, the main worker thread picks up the transfer tasks and also
performs setup of the xfer struct.
* - fast-reload, keep writelock on newzone when auth zone changes.
* - fast-reload, change cachedb_enabled setting.
* - fast-reload, pick up edns-strings config.
* - fast-reload, note that settings are not updated.
* - fast-reload, pick up dnstap config.
* - fast-reload, dnstap options that need to be loaded without +p.
* - fast-reload, fix auth zone reload
* - fast-reload, remove debug for auth zone test.
* - fast-reload, fix auth zone reload with zone transfer.
* - fast-reload, fix auth zone reload lock order.
* - fast-reload, remove debug from fast reload test.
* - fast-reload, remove unused function.
* - fast-reload, fix the worker trust anchor probe timer lock acquisition in
the probe answer callback routine for trust anchor probes.
* - fast-reload, reload trust anchors.
* - fast-reload, fix trust anchor reload lock on autr global data and test
for trust anchor reload.
* - fast-reload, adjust cache sizes.
* - fast-reload, reload cache sizes when changed.
* - fast-reload, reload validator env changes.
* - fast-reload, reload mesh changes.
* - fast-reload, check for incompatible changes.
* - fast-reload, improve error text for incompatible change.
* - fast-reload, fix check config option compatibility.
* - fast-reload, improve error text for nopause change.
* - fast-reload, fix spelling of incompatible options.
* - fast-reload, reload target-fetch-policy, outbound-msg-retry, max-sent-count
and max-query-restarts.
* - fast-reload, check nopause config change for target-fetch-policy.
* - fast-reload, reload do-not-query-address, private-address and capt-exempt.
* - fast-reload, check nopause config change for do-not-query-address,
private-address and capt-exempt.
* - fast-reload, check fast reload not possible due to interface and
outgoing-interface changes.
* - fast-reload, reload nat64 settings.
* - fast-reload, reload settings stored in the infra structure.
* - fast-reload, fix modstack lookup and remove outgoing-range check.
* - fast-reload, more explanation for config parse failure.
* - fast-reload, reload worker outside network changes.
* - fast-reload, detect incompatible changes in network settings.
* fast-reload, commit test files.
* - fast-reload, fix warnings for call types in windows compile.
* - fast-reload, fix warnings and comm_point_internal for tcp wouldblock calls.
* - fast-reload, extend lock checks for repeat thread ids.
* - fast-reload, additional test cases, cache change and tag changes.
* - fast-reload, fix documentation for auth_zone_verify_zonemd_with_key.
* - fast-reload, fix copy_cfg type casts and memory leak on config parse failure.
* - fast-reload, fix use of WSAPoll.
* Review comments for the fast reload feature (#1259)
* - fast-reload review, respip set can be null from a view.
* - fast-reload review, typos.
* - fast-reload review, keep clang static analyzer happy.
* - fast-reload review, don't forget to copy tag_actions.
* - fast-reload review, less indentation.
* - fast-reload review, don't leak respip_actions when reloading.
* - fast-reload review, protect NULL pointer dereference in get_mem
functions.
* - fast-reload review, add fast_reload_most_options.tdir to test most
options with high verbosity when fast reloading.
* - fast-reload review, don't skip new line on long error printouts.
* - fast-reload review, typo.
* - fast-reload review, use new_z for consistency.
* - fast-reload review, nit for unlock ordering to make eye comparison
with the lock counterpart easier.
* - fast-reload review, in case of error the sockets are already closed.
* - fast-reload review, identation.
* - fast-reload review, add static keywords.
* - fast-reload review, update unbound-control usage text.
* - fast-reload review, updates to the man page.
* - fast-reload, the fast-reload command is experimental.
* - fast-reload, fix compile of doqclient for fast reload functions.
* Changelog comment for #1042
- Merge #1042: Fast Reload. The unbound-control fast_reload is added.
It reads changed config in a thread, then only briefly pauses the
service threads, that keep running. DNS service is only interrupted
briefly, less than a second.
---------
Co-authored-by: Yorgos Thessalonikefs <yorgos@nlnetlabs.nl>
2025-03-31 09:25:24 -04:00
|
|
|
query processing see only old, or only new config options.
|
2025-05-20 06:20:20 -04:00
|
|
|
.sp
|
|
|
|
|
When there are changes to the config tags, from the
|
|
|
|
|
\fI\%define\-tag\fP option,
|
|
|
|
|
then the \fB+d\fP option is implicitly turned on with a warning printout, and
|
Fast Reload Option (#1042)
* - fast-reload, add unbound-control fast_reload
* - fast-reload, make a thread to service the unbound-control command.
* - fast-reload, communication sockets for information transfer.
* - fast-reload, fix compile for unbound-dnstap-socket.
* - fast-reload, set nonblocking communication to keep the server thread
responding to DNS requests.
* - fast-reload, poll routine to test for readiness, timeout fails connection.
* - fast-reload, detect loop in sock_poll_timeout routine.
* - fast-reload, send done and exited notification.
* - fast-reload, defines for constants in ipc.
* - fast-reload, ipc socket recv and send resists partial reads and writes and
can continue byte by byte. Also it can continue after an interrupt.
* - fast-reload, send exit command to thread when done.
* - fast-reload, output strings for client on string list.
* - fast-reload, add newline to terminal output.
* - fast-reload, send client string to remote client.
* - fast-reload, better debug output.
* - fast-reload, print queue structure, for output to the remote client.
* - fast-reload, move print items to print queue from fast_reload_thread struct.
* - fast-reload, keep list of pending print queue items in daemon struct.
* - fast-reload, comment explains in_list for printq to print remainder.
* - fast-reload, unit test testdata/fast_reload_thread.tdir that tests the
thread output.
* - fast-reload, fix test link for fast_reload_printq_list_delete function.
* - fast-reload, reread config file from disk.
* - fast-reload, unshare forwards, making the structure locked, with an rwlock.
* - fast-reload, for nonthreaded, the unbound-control commands forward,
forward_add and forward_delete should be distributed to other processes,
but when threaded, they should not be distributed to other threads because
the structure is not thread specific any more.
* - fast-reload, unshared stub hints, making the structure locked, with an rwlock.
* - fast-reload, helpful comments for hints lookup function return value.
* - fast-reload, fix bug in fast reload printout, the strlist appendlist routine,
and printout time statistics after the reload is done.
* - fast-reload, keep track of reloadtime and deletestime and print them.
* - fast-reload, keep track of constructtime and print it.
* - fast-reload, construct new items.
* - fast-reload, better comment.
* - fast-reload, reload the config and swap trees for forwards and stub hints.
* - fast-reload, in forwards_swap_tree set protection of trees with locks.
* - fast-reload, in hints_swap_tree also swap the node count of the trees.
* - fast-reload, reload ipc to stop and start threads.
* - fast-reload, unused forward declarations removed.
* - fast-reload, unit test that fast reload works with forwards and stubs.
* - fast-reload, fix clang analyzer warnings.
* - fast-reload, small documentation entry in unbound-control -h output.
* - fast-reload, printout memory use by fast reload, in bytes.
* - fast-reload, compile without threads.
* - fast-reload, document fast_reload in man page.
* - fast-reload, print ok when done successfully.
* - fast-reload, option for fast-reload commandline, +v verbosity option,
with timing and memory use output.
* - fast-reload, option for fast-reload commandline, +p does not pause threads.
* - fast-reload, option for fast-reload commandline, +d drops mesh queries.
* - fast-reload, fix to poll every thread with nopause to make certain that
resources are not held by the threads and can be deleted.
* - fast-reload, fix to use atomic store for config variables with nopause.
* - fast-reload, reload views.
* - fast-reload, when tag defines are different, it drops the queries.
* - fast-reload, fix tag define check.
* - fast-reload, document that tag change causes drop of queries.
* - fast-reload, fix space in documentation man page.
* - fast-reload, copy respip client information to query state, put views tree
in module env for lookup.
* - fast-reload, nicer respip view comparison.
* - fast-reload, respip global set is in module env.
* - fast-reload, document that respip_client_info acl info is copied.
* - fast-reload, reload the respip_set.
* - fast-reload, document no pause and pick up of use_response_ip boolean.
* - fast-reload, fix test compile.
* - fast-reload, reload local zones.
* Update locking management for iter_fwd and iter_hints methods. (#1054)
fast reload, move most of the locking management to iter_fwd and
iter_hints methods. The caller still has the ability to handle its
own locking, if desired, for atomic operations on sets of different
structs.
Co-authored-by: Wouter Wijngaards <wcawijngaards@users.noreply.github.com>
* - fast-reload, reload access-control.
* - fast-reload, reload access control interface, such as interface-action.
* - fast-reload, reload tcp-connection-limit.
* - fast-reload, improve comments on acl_list and tcl_list swap tree.
* - fast-reload, fixup references to old tcp connection limits in open tcp
connections.
* - fast-reload, fixup to clean tcp connection also for different linked order.
* - fast-reload, if no tcp connection limits existed, no need to remove
references for that.
* - fast-reload, document more options that work and do not work.
* - fast-reload, reload auth_zone and rpz data.
* - fast-reload, fix auth_zones_get_mem.
* - fast-reload, fix compilation of testbound for the new comm_timer_get_mem
reference in remote control.
* - fast-reload, change use_rpz with reload.
* - fast-reload, list changes in auth zones and stop zonemd callbacks for
deleted auth zones.
* - fast-reload, note xtree is not swapped, and why it is not swapped.
* - fast-reload, for added auth zones, pick up zone transfer and zonemd tasks.
* - fast-reload, unlock xfr when done with transfer pick up.
* - fast-reload, unlock z when picking up the xfr for it during transfer task
pick up.
* - fast-reload, pick up task changes for added, deleted and modified auth zones.
* - fast-reload, remove xfr of auth zone deletion without tasks.
* - fast-reload, pick up zone transfer config.
* - fast-reload, the main worker thread picks up the transfer tasks and also
performs setup of the xfer struct.
* - fast-reload, keep writelock on newzone when auth zone changes.
* - fast-reload, change cachedb_enabled setting.
* - fast-reload, pick up edns-strings config.
* - fast-reload, note that settings are not updated.
* - fast-reload, pick up dnstap config.
* - fast-reload, dnstap options that need to be loaded without +p.
* - fast-reload, fix auth zone reload
* - fast-reload, remove debug for auth zone test.
* - fast-reload, fix auth zone reload with zone transfer.
* - fast-reload, fix auth zone reload lock order.
* - fast-reload, remove debug from fast reload test.
* - fast-reload, remove unused function.
* - fast-reload, fix the worker trust anchor probe timer lock acquisition in
the probe answer callback routine for trust anchor probes.
* - fast-reload, reload trust anchors.
* - fast-reload, fix trust anchor reload lock on autr global data and test
for trust anchor reload.
* - fast-reload, adjust cache sizes.
* - fast-reload, reload cache sizes when changed.
* - fast-reload, reload validator env changes.
* - fast-reload, reload mesh changes.
* - fast-reload, check for incompatible changes.
* - fast-reload, improve error text for incompatible change.
* - fast-reload, fix check config option compatibility.
* - fast-reload, improve error text for nopause change.
* - fast-reload, fix spelling of incompatible options.
* - fast-reload, reload target-fetch-policy, outbound-msg-retry, max-sent-count
and max-query-restarts.
* - fast-reload, check nopause config change for target-fetch-policy.
* - fast-reload, reload do-not-query-address, private-address and capt-exempt.
* - fast-reload, check nopause config change for do-not-query-address,
private-address and capt-exempt.
* - fast-reload, check fast reload not possible due to interface and
outgoing-interface changes.
* - fast-reload, reload nat64 settings.
* - fast-reload, reload settings stored in the infra structure.
* - fast-reload, fix modstack lookup and remove outgoing-range check.
* - fast-reload, more explanation for config parse failure.
* - fast-reload, reload worker outside network changes.
* - fast-reload, detect incompatible changes in network settings.
* fast-reload, commit test files.
* - fast-reload, fix warnings for call types in windows compile.
* - fast-reload, fix warnings and comm_point_internal for tcp wouldblock calls.
* - fast-reload, extend lock checks for repeat thread ids.
* - fast-reload, additional test cases, cache change and tag changes.
* - fast-reload, fix documentation for auth_zone_verify_zonemd_with_key.
* - fast-reload, fix copy_cfg type casts and memory leak on config parse failure.
* - fast-reload, fix use of WSAPoll.
* Review comments for the fast reload feature (#1259)
* - fast-reload review, respip set can be null from a view.
* - fast-reload review, typos.
* - fast-reload review, keep clang static analyzer happy.
* - fast-reload review, don't forget to copy tag_actions.
* - fast-reload review, less indentation.
* - fast-reload review, don't leak respip_actions when reloading.
* - fast-reload review, protect NULL pointer dereference in get_mem
functions.
* - fast-reload review, add fast_reload_most_options.tdir to test most
options with high verbosity when fast reloading.
* - fast-reload review, don't skip new line on long error printouts.
* - fast-reload review, typo.
* - fast-reload review, use new_z for consistency.
* - fast-reload review, nit for unlock ordering to make eye comparison
with the lock counterpart easier.
* - fast-reload review, in case of error the sockets are already closed.
* - fast-reload review, identation.
* - fast-reload review, add static keywords.
* - fast-reload review, update unbound-control usage text.
* - fast-reload review, updates to the man page.
* - fast-reload, the fast-reload command is experimental.
* - fast-reload, fix compile of doqclient for fast reload functions.
* Changelog comment for #1042
- Merge #1042: Fast Reload. The unbound-control fast_reload is added.
It reads changed config in a thread, then only briefly pauses the
service threads, that keep running. DNS service is only interrupted
briefly, less than a second.
---------
Co-authored-by: Yorgos Thessalonikefs <yorgos@nlnetlabs.nl>
2025-03-31 09:25:24 -04:00
|
|
|
queries are dropped.
|
|
|
|
|
This is to stop references to the old tag information, by the old
|
2025-05-20 06:20:20 -04:00
|
|
|
queries.
|
|
|
|
|
If the number of tags is increased in the newly loaded config, by
|
|
|
|
|
adding tags at the end, then the implicit \fB+d\fP option is not needed.
|
|
|
|
|
.sp
|
Fast Reload Option (#1042)
* - fast-reload, add unbound-control fast_reload
* - fast-reload, make a thread to service the unbound-control command.
* - fast-reload, communication sockets for information transfer.
* - fast-reload, fix compile for unbound-dnstap-socket.
* - fast-reload, set nonblocking communication to keep the server thread
responding to DNS requests.
* - fast-reload, poll routine to test for readiness, timeout fails connection.
* - fast-reload, detect loop in sock_poll_timeout routine.
* - fast-reload, send done and exited notification.
* - fast-reload, defines for constants in ipc.
* - fast-reload, ipc socket recv and send resists partial reads and writes and
can continue byte by byte. Also it can continue after an interrupt.
* - fast-reload, send exit command to thread when done.
* - fast-reload, output strings for client on string list.
* - fast-reload, add newline to terminal output.
* - fast-reload, send client string to remote client.
* - fast-reload, better debug output.
* - fast-reload, print queue structure, for output to the remote client.
* - fast-reload, move print items to print queue from fast_reload_thread struct.
* - fast-reload, keep list of pending print queue items in daemon struct.
* - fast-reload, comment explains in_list for printq to print remainder.
* - fast-reload, unit test testdata/fast_reload_thread.tdir that tests the
thread output.
* - fast-reload, fix test link for fast_reload_printq_list_delete function.
* - fast-reload, reread config file from disk.
* - fast-reload, unshare forwards, making the structure locked, with an rwlock.
* - fast-reload, for nonthreaded, the unbound-control commands forward,
forward_add and forward_delete should be distributed to other processes,
but when threaded, they should not be distributed to other threads because
the structure is not thread specific any more.
* - fast-reload, unshared stub hints, making the structure locked, with an rwlock.
* - fast-reload, helpful comments for hints lookup function return value.
* - fast-reload, fix bug in fast reload printout, the strlist appendlist routine,
and printout time statistics after the reload is done.
* - fast-reload, keep track of reloadtime and deletestime and print them.
* - fast-reload, keep track of constructtime and print it.
* - fast-reload, construct new items.
* - fast-reload, better comment.
* - fast-reload, reload the config and swap trees for forwards and stub hints.
* - fast-reload, in forwards_swap_tree set protection of trees with locks.
* - fast-reload, in hints_swap_tree also swap the node count of the trees.
* - fast-reload, reload ipc to stop and start threads.
* - fast-reload, unused forward declarations removed.
* - fast-reload, unit test that fast reload works with forwards and stubs.
* - fast-reload, fix clang analyzer warnings.
* - fast-reload, small documentation entry in unbound-control -h output.
* - fast-reload, printout memory use by fast reload, in bytes.
* - fast-reload, compile without threads.
* - fast-reload, document fast_reload in man page.
* - fast-reload, print ok when done successfully.
* - fast-reload, option for fast-reload commandline, +v verbosity option,
with timing and memory use output.
* - fast-reload, option for fast-reload commandline, +p does not pause threads.
* - fast-reload, option for fast-reload commandline, +d drops mesh queries.
* - fast-reload, fix to poll every thread with nopause to make certain that
resources are not held by the threads and can be deleted.
* - fast-reload, fix to use atomic store for config variables with nopause.
* - fast-reload, reload views.
* - fast-reload, when tag defines are different, it drops the queries.
* - fast-reload, fix tag define check.
* - fast-reload, document that tag change causes drop of queries.
* - fast-reload, fix space in documentation man page.
* - fast-reload, copy respip client information to query state, put views tree
in module env for lookup.
* - fast-reload, nicer respip view comparison.
* - fast-reload, respip global set is in module env.
* - fast-reload, document that respip_client_info acl info is copied.
* - fast-reload, reload the respip_set.
* - fast-reload, document no pause and pick up of use_response_ip boolean.
* - fast-reload, fix test compile.
* - fast-reload, reload local zones.
* Update locking management for iter_fwd and iter_hints methods. (#1054)
fast reload, move most of the locking management to iter_fwd and
iter_hints methods. The caller still has the ability to handle its
own locking, if desired, for atomic operations on sets of different
structs.
Co-authored-by: Wouter Wijngaards <wcawijngaards@users.noreply.github.com>
* - fast-reload, reload access-control.
* - fast-reload, reload access control interface, such as interface-action.
* - fast-reload, reload tcp-connection-limit.
* - fast-reload, improve comments on acl_list and tcl_list swap tree.
* - fast-reload, fixup references to old tcp connection limits in open tcp
connections.
* - fast-reload, fixup to clean tcp connection also for different linked order.
* - fast-reload, if no tcp connection limits existed, no need to remove
references for that.
* - fast-reload, document more options that work and do not work.
* - fast-reload, reload auth_zone and rpz data.
* - fast-reload, fix auth_zones_get_mem.
* - fast-reload, fix compilation of testbound for the new comm_timer_get_mem
reference in remote control.
* - fast-reload, change use_rpz with reload.
* - fast-reload, list changes in auth zones and stop zonemd callbacks for
deleted auth zones.
* - fast-reload, note xtree is not swapped, and why it is not swapped.
* - fast-reload, for added auth zones, pick up zone transfer and zonemd tasks.
* - fast-reload, unlock xfr when done with transfer pick up.
* - fast-reload, unlock z when picking up the xfr for it during transfer task
pick up.
* - fast-reload, pick up task changes for added, deleted and modified auth zones.
* - fast-reload, remove xfr of auth zone deletion without tasks.
* - fast-reload, pick up zone transfer config.
* - fast-reload, the main worker thread picks up the transfer tasks and also
performs setup of the xfer struct.
* - fast-reload, keep writelock on newzone when auth zone changes.
* - fast-reload, change cachedb_enabled setting.
* - fast-reload, pick up edns-strings config.
* - fast-reload, note that settings are not updated.
* - fast-reload, pick up dnstap config.
* - fast-reload, dnstap options that need to be loaded without +p.
* - fast-reload, fix auth zone reload
* - fast-reload, remove debug for auth zone test.
* - fast-reload, fix auth zone reload with zone transfer.
* - fast-reload, fix auth zone reload lock order.
* - fast-reload, remove debug from fast reload test.
* - fast-reload, remove unused function.
* - fast-reload, fix the worker trust anchor probe timer lock acquisition in
the probe answer callback routine for trust anchor probes.
* - fast-reload, reload trust anchors.
* - fast-reload, fix trust anchor reload lock on autr global data and test
for trust anchor reload.
* - fast-reload, adjust cache sizes.
* - fast-reload, reload cache sizes when changed.
* - fast-reload, reload validator env changes.
* - fast-reload, reload mesh changes.
* - fast-reload, check for incompatible changes.
* - fast-reload, improve error text for incompatible change.
* - fast-reload, fix check config option compatibility.
* - fast-reload, improve error text for nopause change.
* - fast-reload, fix spelling of incompatible options.
* - fast-reload, reload target-fetch-policy, outbound-msg-retry, max-sent-count
and max-query-restarts.
* - fast-reload, check nopause config change for target-fetch-policy.
* - fast-reload, reload do-not-query-address, private-address and capt-exempt.
* - fast-reload, check nopause config change for do-not-query-address,
private-address and capt-exempt.
* - fast-reload, check fast reload not possible due to interface and
outgoing-interface changes.
* - fast-reload, reload nat64 settings.
* - fast-reload, reload settings stored in the infra structure.
* - fast-reload, fix modstack lookup and remove outgoing-range check.
* - fast-reload, more explanation for config parse failure.
* - fast-reload, reload worker outside network changes.
* - fast-reload, detect incompatible changes in network settings.
* fast-reload, commit test files.
* - fast-reload, fix warnings for call types in windows compile.
* - fast-reload, fix warnings and comm_point_internal for tcp wouldblock calls.
* - fast-reload, extend lock checks for repeat thread ids.
* - fast-reload, additional test cases, cache change and tag changes.
* - fast-reload, fix documentation for auth_zone_verify_zonemd_with_key.
* - fast-reload, fix copy_cfg type casts and memory leak on config parse failure.
* - fast-reload, fix use of WSAPoll.
* Review comments for the fast reload feature (#1259)
* - fast-reload review, respip set can be null from a view.
* - fast-reload review, typos.
* - fast-reload review, keep clang static analyzer happy.
* - fast-reload review, don't forget to copy tag_actions.
* - fast-reload review, less indentation.
* - fast-reload review, don't leak respip_actions when reloading.
* - fast-reload review, protect NULL pointer dereference in get_mem
functions.
* - fast-reload review, add fast_reload_most_options.tdir to test most
options with high verbosity when fast reloading.
* - fast-reload review, don't skip new line on long error printouts.
* - fast-reload review, typo.
* - fast-reload review, use new_z for consistency.
* - fast-reload review, nit for unlock ordering to make eye comparison
with the lock counterpart easier.
* - fast-reload review, in case of error the sockets are already closed.
* - fast-reload review, identation.
* - fast-reload review, add static keywords.
* - fast-reload review, update unbound-control usage text.
* - fast-reload review, updates to the man page.
* - fast-reload, the fast-reload command is experimental.
* - fast-reload, fix compile of doqclient for fast reload functions.
* Changelog comment for #1042
- Merge #1042: Fast Reload. The unbound-control fast_reload is added.
It reads changed config in a thread, then only briefly pauses the
service threads, that keep running. DNS service is only interrupted
briefly, less than a second.
---------
Co-authored-by: Yorgos Thessalonikefs <yorgos@nlnetlabs.nl>
2025-03-31 09:25:24 -04:00
|
|
|
For response ip, that is actions associated with IP addresses, and perhaps
|
|
|
|
|
intersected with access control tag and action information, those settings
|
|
|
|
|
are stored with a query when it comes in based on its source IP address.
|
|
|
|
|
The old information is kept with the query until the queries are done.
|
2025-05-20 06:20:20 -04:00
|
|
|
This is gone when those queries are resolved and finished, or it is
|
|
|
|
|
possible to flush the requestlist with \fB+d\fP\&.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B verbosity \fInumber\fP
|
|
|
|
|
Change verbosity value for logging.
|
|
|
|
|
Same values as the \fBverbosity:\fP keyword in
|
|
|
|
|
\fI\%unbound.conf(5)\fP\&.
|
|
|
|
|
This new setting lasts until the server is issued a reload (taken from
|
|
|
|
|
config file again), or the next verbosity control command.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B log_reopen
|
|
|
|
|
Reopen the logfile, close and open it.
|
|
|
|
|
Useful for logrotation to make the daemon release the file it is logging
|
|
|
|
|
to.
|
|
|
|
|
If you are using syslog it will attempt to close and open the syslog (which
|
|
|
|
|
may not work if chrooted).
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B stats
|
|
|
|
|
Print statistics.
|
|
|
|
|
Resets the internal counters to zero, this can be controlled using the
|
|
|
|
|
\fBstatistics\-cumulative:\fP config statement.
|
|
|
|
|
Statistics are printed with one \fB[name]: [value]\fP per line.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B stats_noreset
|
|
|
|
|
Peek at statistics.
|
|
|
|
|
Prints them like the stats command does, but does not reset the internal
|
|
|
|
|
counters to zero.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B status
|
|
|
|
|
Display server status.
|
|
|
|
|
Exit code 3 if not running (the connection to the port is refused), 1 on
|
|
|
|
|
error, 0 if running.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B local_zone \fIname type\fP
|
|
|
|
|
Add new local zone with name and type.
|
|
|
|
|
Like local\-zone config statement.
|
2008-09-19 10:49:29 -04:00
|
|
|
If the zone already exists, the type is changed to the given argument.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B local_zone_remove \fIname\fP
|
|
|
|
|
Remove the local zone with the given name.
|
|
|
|
|
Removes all local data inside it.
|
|
|
|
|
If the zone does not exist, the command succeeds.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B local_data \fIRR data...\fP
|
|
|
|
|
Add new local data, the given resource record.
|
|
|
|
|
Like \fBlocal\-data:\fP keyword, except for when no covering zone exists.
|
|
|
|
|
In that case this remote control command creates a transparent zone with
|
|
|
|
|
the same name as this record.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B local_data_remove \fIname\fP
|
|
|
|
|
Remove all RR data from local name.
|
|
|
|
|
If the name already has no items, nothing happens.
|
|
|
|
|
Often results in NXDOMAIN for the name (in a static zone), but if the name
|
|
|
|
|
has become an empty nonterminal (there is still data in domain names below
|
|
|
|
|
the removed name), NOERROR nodata answers are the result for that name.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B local_zones
|
|
|
|
|
Add local zones read from stdin of unbound\-control.
|
|
|
|
|
Input is read per line, with name space type on a line.
|
|
|
|
|
For bulk additions.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B local_zones_remove
|
|
|
|
|
Remove local zones read from stdin of unbound\-control.
|
|
|
|
|
Input is one name per line.
|
|
|
|
|
For bulk removals.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B local_datas
|
|
|
|
|
Add local data RRs read from stdin of unbound\-control.
|
|
|
|
|
Input is one RR per line.
|
|
|
|
|
For bulk additions.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B local_datas_remove
|
|
|
|
|
Remove local data RRs read from stdin of unbound\-control.
|
|
|
|
|
Input is one name per line.
|
|
|
|
|
For bulk removals.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B dump_cache
|
|
|
|
|
The contents of the cache is printed in a text format to stdout.
|
2024-05-17 04:25:24 -04:00
|
|
|
You can redirect it to a file to store the cache in a file.
|
2025-05-20 06:20:20 -04:00
|
|
|
Not supported in remote Unbounds in multi\-process operation.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-09-22 11:20:18 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B load_cache
|
|
|
|
|
The contents of the cache is loaded from stdin.
|
2024-05-17 04:25:24 -04:00
|
|
|
Uses the same format as dump_cache uses.
|
|
|
|
|
Loading the cache with old, or wrong data can result in old or wrong data
|
|
|
|
|
returned to clients.
|
|
|
|
|
Loading data into the cache in this way is supported in order to aid with
|
|
|
|
|
debugging.
|
2025-05-20 06:20:20 -04:00
|
|
|
Not supported in remote Unbounds in multi\-process operation.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B lookup \fIname\fP
|
|
|
|
|
Print to stdout the name servers that would be used to look up the name
|
|
|
|
|
specified.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B flush [\fB+c\fP] \fIname\fP
|
|
|
|
|
Remove the name from the cache.
|
|
|
|
|
Removes the types A, AAAA, NS, SOA, CNAME, DNAME, MX, PTR, SRV, NAPTR,
|
|
|
|
|
SVCB and HTTPS.
|
|
|
|
|
Because that is fast to do.
|
|
|
|
|
Other record types can be removed using \fBflush_type\fP or \fBflush_zone\fP\&.
|
|
|
|
|
.sp
|
|
|
|
|
The \fB+c\fP option removes the items also from the cachedb cache.
|
|
|
|
|
If cachedb is in use.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B flush_type [\fB+c\fP] \fIname type\fP
|
2008-09-23 10:07:02 -04:00
|
|
|
Remove the name, type information from the cache.
|
2025-05-20 06:20:20 -04:00
|
|
|
.sp
|
|
|
|
|
The \fB+c\fP option removes the items also from the cachedb cache.
|
|
|
|
|
If cachedb is in use.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-09-23 10:07:02 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B flush_zone [\fB+c\fP] name
|
2021-12-13 06:46:08 -05:00
|
|
|
Remove all information at or below the name from the cache.
|
2025-05-20 06:20:20 -04:00
|
|
|
The rrsets and key entries are removed so that new lookups will be
|
|
|
|
|
performed.
|
2008-09-23 10:07:02 -04:00
|
|
|
This needs to walk and inspect the entire cache, and is a slow operation.
|
2018-04-09 03:39:59 -04:00
|
|
|
The entries are set to expired in the implementation of this command (so,
|
2025-05-20 06:20:20 -04:00
|
|
|
with serve\-expired enabled, it\(aqll serve that information but schedule a
|
2018-04-09 03:39:59 -04:00
|
|
|
prefetch for new information).
|
2025-05-20 06:20:20 -04:00
|
|
|
.sp
|
|
|
|
|
The \fB+c\fP option removes the items also from the cachedb cache.
|
|
|
|
|
If cachedb is in use.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2009-02-10 10:11:54 -05:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B flush_bogus [\fB+c\fP]
|
2012-07-09 10:33:07 -04:00
|
|
|
Remove all bogus data from the cache.
|
2025-05-20 06:20:20 -04:00
|
|
|
.sp
|
|
|
|
|
The \fB+c\fP option removes the items also from the cachedb cache.
|
|
|
|
|
If cachedb is in use.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B flush_negative [\fB+c\fP]
|
|
|
|
|
Remove all negative data from the cache.
|
|
|
|
|
This is nxdomain answers, nodata answers and servfail answers.
|
|
|
|
|
Also removes bad key entries (which could be due to failed lookups) from
|
|
|
|
|
the dnssec key cache, and iterator last\-resort lookup failures from the
|
|
|
|
|
rrset cache.
|
|
|
|
|
.sp
|
|
|
|
|
The \fB+c\fP option removes the items also from the cachedb cache.
|
|
|
|
|
If cachedb is in use.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B flush_stats
|
2009-02-12 05:37:00 -05:00
|
|
|
Reset statistics to zero.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B flush_requestlist
|
|
|
|
|
Drop the queries that are worked on.
|
|
|
|
|
Stops working on the queries that the server is working on now.
|
|
|
|
|
The cache is unaffected.
|
|
|
|
|
No reply is sent for those queries, probably making those users request
|
|
|
|
|
again later.
|
2009-02-12 08:21:19 -05:00
|
|
|
Useful to make the server restart working on queries with new settings,
|
|
|
|
|
such as a higher verbosity level.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B dump_requestlist
|
|
|
|
|
Show what is worked on.
|
|
|
|
|
Prints all queries that the server is currently working on.
|
|
|
|
|
Prints the time that users have been waiting.
|
|
|
|
|
For internal requests, no time is printed.
|
|
|
|
|
And then prints out the module status.
|
2014-04-10 05:13:58 -04:00
|
|
|
This prints the queries from the first thread, and not queries that are
|
|
|
|
|
being serviced from other threads.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B flush_infra \fIall|IP\fP
|
|
|
|
|
If all then entire infra cache is emptied.
|
|
|
|
|
If a specific IP address, the entry for that address is removed from the
|
|
|
|
|
cache.
|
|
|
|
|
It contains EDNS, ping and lameness data.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B dump_infra
|
2010-10-26 05:08:33 -04:00
|
|
|
Show the contents of the infra cache.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B set_option \fIopt: val\fP
|
|
|
|
|
Set the option to the given value without a reload.
|
|
|
|
|
The cache is therefore not flushed.
|
|
|
|
|
The option must end with a \fB\(aq:\(aq\fP and whitespace must be between the
|
|
|
|
|
option and the value.
|
|
|
|
|
Some values may not have an effect if set this way, the new values are not
|
|
|
|
|
written to the config file, not all options are supported.
|
|
|
|
|
This is different from the set_option call in libunbound, where all values
|
|
|
|
|
work because Unbound has not been initialized.
|
|
|
|
|
.sp
|
2011-08-22 09:22:05 -04:00
|
|
|
The values that work are: statistics\-interval, statistics\-cumulative,
|
2025-05-20 06:20:20 -04:00
|
|
|
do\-not\-query\-localhost, harden\-short\-bufsize, harden\-large\-queries,
|
2011-08-22 09:22:05 -04:00
|
|
|
harden\-glue, harden\-dnssec\-stripped, harden\-below\-nxdomain,
|
2025-05-20 06:20:20 -04:00
|
|
|
harden\-referral\-path, prefetch, prefetch\-key, log\-queries, hide\-identity,
|
|
|
|
|
hide\-version, identity, version, val\-log\-level, val\-log\-squelch,
|
|
|
|
|
ignore\-cd\-flag, add\-holddown, del\-holddown, keep\-missing, tcp\-upstream,
|
|
|
|
|
ssl\-upstream, max\-udp\-size, ratelimit, ip\-ratelimit, cache\-max\-ttl,
|
|
|
|
|
cache\-min\-ttl, cache\-max\-negative\-ttl.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B get_option \fIopt\fP
|
|
|
|
|
Get the value of the option.
|
|
|
|
|
Give the option name without a trailing \fB\(aq:\(aq\fP\&.
|
|
|
|
|
The value is printed.
|
|
|
|
|
If the value is \fB\(dq\(dq\fP, nothing is printed and the connection closes.
|
|
|
|
|
On error \fB\(aqerror ...\(aq\fP is printed (it gives a syntax error on unknown
|
|
|
|
|
option).
|
|
|
|
|
For some options a list of values, one on each line, is printed.
|
|
|
|
|
The options are shown from the config file as modified with set_option.
|
|
|
|
|
For some options an override may have been taken that does not show up with
|
|
|
|
|
this command, not results from e.g. the verbosity and forward control
|
|
|
|
|
commands.
|
|
|
|
|
Not all options work, see list_stubs, list_forwards, list_local_zones and
|
|
|
|
|
list_local_data for those.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B list_stubs
|
|
|
|
|
List the stub zones in use.
|
|
|
|
|
These are printed one by one to the output.
|
2010-02-26 10:40:46 -05:00
|
|
|
This includes the root hints in use.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2010-02-26 10:40:46 -05:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B list_forwards
|
|
|
|
|
List the forward zones in use.
|
|
|
|
|
These are printed zone by zone to the output.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2010-02-26 10:40:46 -05:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B list_insecure
|
2015-04-07 09:50:09 -04:00
|
|
|
List the zones with domain\-insecure.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B list_local_zones
|
|
|
|
|
List the local zones in use.
|
|
|
|
|
These are printed one per line with zone type.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B list_local_data
|
|
|
|
|
List the local data RRs in use.
|
|
|
|
|
The resource records are printed.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B insecure_add \fIzone\fP
|
|
|
|
|
Add a domain\-insecure for the given zone, like the statement in
|
|
|
|
|
unbound.conf.
|
|
|
|
|
Adds to the running Unbound without affecting the cache
|
|
|
|
|
contents (which may still be bogus, use flush_zone to remove it), does not
|
|
|
|
|
affect the config file.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B insecure_remove \fIzone\fP
|
2013-04-26 10:14:07 -04:00
|
|
|
Removes domain\-insecure for the given zone.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B forward_add [\fB+it\fP] \fIzone addr ...\fP
|
|
|
|
|
Add a new forward zone to running Unbound.
|
|
|
|
|
With \fB+i\fP option also adds a domain\-insecure for the zone (so it can
|
|
|
|
|
resolve insecurely if you have a DNSSEC root trust anchor configured for
|
|
|
|
|
other names).
|
|
|
|
|
The addr can be IP4, IP6 or nameserver names, like forward\-zone config in
|
|
|
|
|
unbound.conf.
|
|
|
|
|
The \fB+t\fP option sets it to use TLS upstream, like
|
|
|
|
|
\fI\%forward\-tls\-upstream: yes\fP\&.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B forward_remove [\fB+i\fP] \fIzone\fP
|
|
|
|
|
Remove a forward zone from running Unbound.
|
|
|
|
|
The \fB+i\fP also removes a domain\-insecure for the zone.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B stub_add [\fB+ipt\fP] \fIzone addr ...\fP
|
|
|
|
|
Add a new stub zone to running Unbound.
|
|
|
|
|
With \fB+i\fP option also adds a domain\-insecure for the zone.
|
|
|
|
|
With \fB+p\fP the stub zone is set to prime, without it it is set to
|
|
|
|
|
notprime.
|
|
|
|
|
The addr can be IP4, IP6 or nameserver names, like the \fBstub\-zone:\fP
|
|
|
|
|
config in unbound.conf.
|
|
|
|
|
The \fB+t\fP option sets it to use TLS upstream, like
|
|
|
|
|
\fI\%stub\-tls\-upstream: yes\fP\&.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B stub_remove [\fB+i\fP] \fIzone\fP
|
|
|
|
|
Remove a stub zone from running Unbound.
|
|
|
|
|
The \fB+i\fP also removes a domain\-insecure for the zone.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B forward [\fIoff\fP | \fIaddr ...\fP ]
|
|
|
|
|
Setup forwarding mode.
|
|
|
|
|
Configures if the server should ask other upstream nameservers, should go
|
|
|
|
|
to the internet root nameservers itself, or show the current config.
|
|
|
|
|
You could pass the nameservers after a DHCP update.
|
|
|
|
|
.sp
|
2009-02-13 10:26:37 -05:00
|
|
|
Without arguments the current list of addresses used to forward all queries
|
2025-05-20 06:20:20 -04:00
|
|
|
to is printed.
|
|
|
|
|
On startup this is from the forward\-zone \fB\(dq.\(dq\fP configuration.
|
|
|
|
|
Afterwards it shows the status.
|
|
|
|
|
It prints off when no forwarding is used.
|
|
|
|
|
.sp
|
|
|
|
|
If off is passed, forwarding is disabled and the root nameservers are
|
|
|
|
|
used.
|
|
|
|
|
This can be used to avoid to avoid buggy or non\-DNSSEC supporting
|
|
|
|
|
nameservers returned from DHCP.
|
|
|
|
|
But may not work in hotels or hotspots.
|
|
|
|
|
.sp
|
|
|
|
|
If one or more IPv4 or IPv6 addresses are given, those are then used to
|
|
|
|
|
forward queries to.
|
|
|
|
|
The addresses must be separated with spaces.
|
|
|
|
|
With \fB\(aq@port\(aq\fP the port number can be set explicitly (default port is 53
|
|
|
|
|
(DNS)).
|
|
|
|
|
.sp
|
|
|
|
|
By default the forwarder information from the config file for the root
|
|
|
|
|
\fB\(dq.\(dq\fP is used.
|
|
|
|
|
The config file is not changed, so after a reload these changes are gone.
|
|
|
|
|
Other forward zones from the config file are not affected by this command.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B ratelimit_list [\fB+a\fP]
|
|
|
|
|
List the domains that are ratelimited.
|
|
|
|
|
Printed one per line with current estimated qps and qps limit from config.
|
|
|
|
|
With \fB+a\fP it prints all domains, not just the ratelimited domains, with
|
|
|
|
|
their estimated qps.
|
|
|
|
|
The ratelimited domains return an error for uncached (new) queries, but
|
|
|
|
|
cached queries work as normal.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B ip_ratelimit_list [\fB+a\fP]
|
|
|
|
|
List the ip addresses that are ratelimited.
|
|
|
|
|
Printed one per line with current estimated qps and qps limit from config.
|
|
|
|
|
With \fB+a\fP it prints all ips, not just the ratelimited ips, with their
|
|
|
|
|
estimated qps.
|
|
|
|
|
The ratelimited ips are dropped before checking the cache.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B list_auth_zones
|
|
|
|
|
List the auth zones that are configured.
|
|
|
|
|
Printed one per line with a status, indicating if the zone is expired and
|
|
|
|
|
current serial number.
|
|
|
|
|
Configured RPZ zones are included.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B auth_zone_reload \fIzone\fP
|
|
|
|
|
Reload the auth zone (or RPZ zone) from zonefile.
|
|
|
|
|
The zonefile is read in overwriting the current contents of the zone in
|
|
|
|
|
memory.
|
|
|
|
|
This changes the auth zone contents itself, not the cache contents.
|
|
|
|
|
Such cache contents exists if you set Unbound to validate with
|
|
|
|
|
\fBfor\-upstream: yes\fP and that can be cleared with \fBflush_zone\fP \fIzone\fP\&.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B auth_zone_transfer \fIzone\fP
|
|
|
|
|
Transfer the auth zone (or RPZ zone) from master.
|
|
|
|
|
The auth zone probe sequence is started, where the masters are probed to
|
|
|
|
|
see if they have an updated zone (with the SOA serial check).
|
|
|
|
|
And then the zone is transferred for a newer zone version.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B rpz_enable \fIzone\fP
|
2020-12-13 14:35:11 -05:00
|
|
|
Enable the RPZ zone if it had previously been disabled.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2020-12-13 14:35:11 -05:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B rpz_disable \fIzone\fP
|
2020-12-13 14:35:11 -05:00
|
|
|
Disable the RPZ zone.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B view_list_local_zones \fIview\fP
|
|
|
|
|
\fIlist_local_zones\fP for given view.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B view_local_zone \fIview name type\fP
|
|
|
|
|
\fIlocal_zone\fP for given view.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B view_local_zone_remove \fIview name\fP
|
|
|
|
|
\fIlocal_zone_remove\fP for given view.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B view_list_local_data \fIview\fP
|
|
|
|
|
\fIlist_local_data\fP for given view.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B view_local_data \fIview RR data...\fP
|
|
|
|
|
\fIlocal_data\fP for given view.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B view_local_data_remove \fIview name\fP
|
|
|
|
|
\fIlocal_data_remove\fP for given view.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B view_local_datas_remove \fIview\fP
|
|
|
|
|
Remove a list of \fIlocal_data\fP for given view from stdin.
|
|
|
|
|
Like \fIlocal_datas_remove\fP\&.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B view_local_datas \fIview\fP
|
|
|
|
|
Add a list of \fIlocal_data\fP for given view from stdin.
|
|
|
|
|
Like \fIlocal_datas\fP\&.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B add_cookie_secret \fIsecret\fP
|
|
|
|
|
Add or replace a cookie secret persistently.
|
|
|
|
|
\fIsecret\fP needs to be an 128 bit hex string.
|
|
|
|
|
.sp
|
|
|
|
|
Cookie secrets can be either \fBactive\fP or \fBstaging\fP\&.
|
|
|
|
|
\fBActive\fP cookie secrets are used to create DNS Cookies, but verification
|
|
|
|
|
of a DNS Cookie succeeds with any of the \fBactive\fP or \fBstaging\fP cookie
|
|
|
|
|
secrets.
|
|
|
|
|
The state of the current cookie secrets can be printed with the
|
|
|
|
|
\fI\%print_cookie_secrets\fP
|
|
|
|
|
command.
|
|
|
|
|
.sp
|
|
|
|
|
When there are no cookie secrets configured yet, the \fIsecret\fP is added as
|
|
|
|
|
\fBactive\fP\&.
|
|
|
|
|
If there is already an \fBactive\fP cookie secret, the \fIsecret\fP is added as
|
|
|
|
|
\fBstaging\fP or replacing an existing \fBstaging\fP secret.
|
|
|
|
|
.sp
|
|
|
|
|
To \(dqroll\(dq a cookie secret used in an anycast set.
|
|
|
|
|
The new secret has to be added as \fBstaging\fP secret to \fBall\fP nodes in
|
|
|
|
|
the anycast set.
|
|
|
|
|
When \fBall\fP nodes can verify DNS Cookies with the new secret, the new
|
|
|
|
|
secret can be activated with the
|
|
|
|
|
\fI\%activate_cookie_secret\fP
|
|
|
|
|
command.
|
|
|
|
|
After \fBall\fP nodes have the new secret \fBactive\fP for at least one hour,
|
|
|
|
|
the previous secret can be dropped with the
|
|
|
|
|
\fI\%drop_cookie_secret\fP
|
|
|
|
|
command.
|
|
|
|
|
.sp
|
|
|
|
|
Persistence is accomplished by writing to a file which is configured with
|
|
|
|
|
the
|
|
|
|
|
\fI\%cookie\-secret\-file\fP
|
|
|
|
|
option in the server section of the config file.
|
|
|
|
|
This is disabled by default, \(dq\(dq.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B drop_cookie_secret
|
|
|
|
|
Drop the \fBstaging\fP cookie secret.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B activate_cookie_secret
|
|
|
|
|
Make the current \fBstaging\fP cookie secret \fBactive\fP, and the current
|
|
|
|
|
\fBactive\fP cookie secret \fBstaging\fP\&.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B print_cookie_secrets
|
Cookie secret file (#1090)
* - cookie-secret-file, define struct.
* - cookie-secret-file, add config option, create, read and delete struct.
* - cookie-secret-file, check cookie secrets for cookie validation.
* - cookie-secret-file, unbound-control add_cookie_secret, drop_cookie_secret,
activate_cookie_secret and print_cookie_secrets.
* - cookie-secret-file, test and fix locks, renew writes a fresh cookie,
staging cookies get a fresh cookie and spelling in error message.
* - cookie-secret-file, remove unused variable from cookie file unit test.
* Remove unshare and faketime dependencies for cookie_file test; documentation nits.
---------
Co-authored-by: Yorgos Thessalonikefs <yorgos@nlnetlabs.nl>
2024-08-02 07:32:08 -04:00
|
|
|
Show the current configured cookie secrets with their status.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.SH EXIT CODE
|
|
|
|
|
.sp
|
|
|
|
|
The \fBunbound\-control\fP program exits with status code 1 on error, 0 on
|
|
|
|
|
success.
|
|
|
|
|
.SH SET UP
|
|
|
|
|
.sp
|
|
|
|
|
The setup requires a self\-signed certificate and private keys for both the
|
|
|
|
|
server and client.
|
|
|
|
|
The script \fBunbound\-control\-setup\fP generates these in the default run
|
|
|
|
|
directory, or with \fB\-d\fP in another directory.
|
2010-05-31 10:11:51 -04:00
|
|
|
If you change the access control permissions on the key files you can decide
|
2025-05-20 06:20:20 -04:00
|
|
|
who can use \fBunbound\-control\fP, by default owner and group but not all users.
|
|
|
|
|
Run the script under the same username as you have configured in
|
|
|
|
|
\fBunbound.conf\fP or as root, so that the daemon is permitted to read the
|
|
|
|
|
files, for example with:
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.INDENT 3.5
|
|
|
|
|
.sp
|
2008-11-24 05:55:14 -05:00
|
|
|
.nf
|
2025-05-20 06:20:20 -04:00
|
|
|
.ft C
|
|
|
|
|
sudo \-u unbound unbound\-control\-setup
|
|
|
|
|
.ft P
|
2008-11-24 05:55:14 -05:00
|
|
|
.fi
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.sp
|
|
|
|
|
If you have not configured a username in \fBunbound.conf\fP, the keys need
|
|
|
|
|
read permission for the user credentials under which the daemon is started.
|
2008-09-11 10:14:12 -04:00
|
|
|
The script preserves private keys present in the directory.
|
2025-05-20 06:20:20 -04:00
|
|
|
After running the script as root, turn on
|
|
|
|
|
\fI\%control\-enable\fP in
|
|
|
|
|
\fBunbound.conf\fP\&.
|
|
|
|
|
.SH STATISTIC COUNTERS
|
|
|
|
|
.sp
|
|
|
|
|
The \fI\%stats\fP and
|
|
|
|
|
\fI\%stats_noreset\fP commands show a
|
|
|
|
|
number of statistic counters:
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B threadX.num.queries
|
2008-09-18 05:44:37 -04:00
|
|
|
number of queries received by thread
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-09-18 05:44:37 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B threadX.num.queries_ip_ratelimited
|
2017-01-05 08:57:12 -05:00
|
|
|
number of queries rate limited by thread
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2017-01-05 08:57:12 -05:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B threadX.num.queries_cookie_valid
|
2023-08-08 09:19:56 -04:00
|
|
|
number of queries with a valid DNS Cookie by thread
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2023-08-08 09:19:56 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B threadX.num.queries_cookie_client
|
2023-08-08 09:19:56 -04:00
|
|
|
number of queries with a client part only DNS Cookie by thread
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2023-08-08 09:19:56 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B threadX.num.queries_cookie_invalid
|
2023-08-08 09:19:56 -04:00
|
|
|
number of queries with an invalid DNS Cookie by thread
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2023-08-08 09:19:56 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B threadX.num.queries_discard_timeout
|
|
|
|
|
number of queries removed due to discard\-timeout by thread
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2024-11-01 10:52:58 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B threadX.num.queries_wait_limit
|
|
|
|
|
number of queries removed due to wait\-limit by thread
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2024-11-01 10:52:58 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B threadX.num.cachehits
|
2008-09-18 05:44:37 -04:00
|
|
|
number of queries that were successfully answered using a cache lookup
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-09-18 05:44:37 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B threadX.num.cachemiss
|
2008-09-18 05:44:37 -04:00
|
|
|
number of queries that needed recursive processing
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-09-18 05:44:37 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B threadX.num.dnscrypt.crypted
|
|
|
|
|
number of queries that were encrypted and successfully decapsulated by
|
|
|
|
|
dnscrypt.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2017-09-18 04:55:08 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B threadX.num.dnscrypt.cert
|
2017-09-18 04:55:08 -04:00
|
|
|
number of queries that were requesting dnscrypt certificates.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2017-09-18 04:55:08 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B threadX.num.dnscrypt.cleartext
|
2017-09-18 04:55:08 -04:00
|
|
|
number of queries received on dnscrypt port that were cleartext and not a
|
|
|
|
|
request for certificates.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2017-09-18 04:55:08 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B threadX.num.dnscrypt.malformed
|
2017-09-18 04:55:08 -04:00
|
|
|
number of request that were neither cleartext, not valid dnscrypt messages.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2017-09-18 04:55:08 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B threadX.num.dns_error_reports
|
2025-04-07 04:25:10 -04:00
|
|
|
number of DNS Error Reports generated by thread
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B threadX.num.prefetch
|
|
|
|
|
number of cache prefetches performed.
|
|
|
|
|
This number is included in cachehits, as the original query had the
|
|
|
|
|
unprefetched answer from cache, and resulted in recursive processing,
|
|
|
|
|
taking a slot in the requestlist.
|
2010-01-07 11:06:26 -05:00
|
|
|
Not part of the recursivereplies (or the histogram thereof) or cachemiss,
|
|
|
|
|
as a cache response was sent.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2010-01-07 11:06:26 -05:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B threadX.num.expired
|
2020-02-05 08:20:27 -05:00
|
|
|
number of replies that served an expired cache entry.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B threadX.num.queries_timed_out
|
|
|
|
|
number of queries that are dropped because they waited in the UDP socket
|
|
|
|
|
buffer for too long.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B threadX.query.queue_time_us.max
|
|
|
|
|
The maximum wait time for packets in the socket buffer, in microseconds.
|
|
|
|
|
This is only reported when
|
|
|
|
|
\fI\%sock\-queue\-timeout\fP is enabled.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B threadX.num.recursivereplies
|
|
|
|
|
The number of replies sent to queries that needed recursive processing.
|
|
|
|
|
Could be smaller than threadX.num.cachemiss if due to timeouts no replies
|
|
|
|
|
were sent for some queries.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B threadX.requestlist.avg
|
|
|
|
|
The average number of requests in the internal recursive processing request
|
|
|
|
|
list on insert of a new incoming recursive processing query.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B threadX.requestlist.max
|
2008-09-18 05:44:37 -04:00
|
|
|
Maximum size attained by the internal recursive processing request list.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B threadX.requestlist.overwritten
|
|
|
|
|
Number of requests in the request list that were overwritten by newer
|
|
|
|
|
entries.
|
|
|
|
|
This happens if there is a flood of queries that recursive processing and
|
|
|
|
|
the server has a hard time.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B threadX.requestlist.exceeded
|
|
|
|
|
Queries that were dropped because the request list was full.
|
|
|
|
|
This happens if a flood of queries need recursive processing, and the
|
|
|
|
|
server can not keep up.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B threadX.requestlist.current.all
|
|
|
|
|
Current size of the request list, includes internally generated queries
|
|
|
|
|
(such as priming queries and glue lookups).
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B threadX.requestlist.current.user
|
2008-09-18 05:44:37 -04:00
|
|
|
Current size of the request list, only the requests from client queries.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-09-18 05:44:37 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B threadX.recursion.time.avg
|
|
|
|
|
Average time it took to answer queries that needed recursive processing.
|
|
|
|
|
Note that queries that were answered from the cache are not in this average.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-09-18 05:44:37 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B threadX.recursion.time.median
|
2008-09-18 05:44:37 -04:00
|
|
|
The median of the time it took to answer queries that needed recursive
|
2025-05-20 06:20:20 -04:00
|
|
|
processing.
|
|
|
|
|
The median means that 50% of the user queries were answered in less than
|
|
|
|
|
this time.
|
|
|
|
|
Because of big outliers (usually queries to non responsive servers), the
|
|
|
|
|
average can be bigger than the median.
|
|
|
|
|
This median has been calculated by interpolation from a histogram.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B threadX.tcpusage
|
|
|
|
|
The currently held tcp buffers for incoming connections.
|
|
|
|
|
A spot value on the time of the request.
|
|
|
|
|
This helps you spot if the incoming\-num\-tcp buffers are full.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B total.num.queries
|
2008-09-18 05:44:37 -04:00
|
|
|
summed over threads.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-09-18 05:44:37 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B total.num.queries_ip_ratelimited
|
2023-08-08 09:19:56 -04:00
|
|
|
summed over threads.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2023-08-08 09:19:56 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B total.num.queries_cookie_valid
|
2023-08-08 09:19:56 -04:00
|
|
|
summed over threads.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2023-08-08 09:19:56 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B total.num.queries_cookie_client
|
2023-08-08 09:19:56 -04:00
|
|
|
summed over threads.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2023-08-08 09:19:56 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B total.num.queries_cookie_invalid
|
2023-08-08 09:19:56 -04:00
|
|
|
summed over threads.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2023-08-08 09:19:56 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B total.num.queries_discard_timeout
|
2024-11-01 10:52:58 -04:00
|
|
|
summed over threads.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2024-11-01 10:52:58 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B total.num.queries_wait_limit
|
2024-11-01 10:52:58 -04:00
|
|
|
summed over threads.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2024-11-01 10:52:58 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B total.num.cachehits
|
2008-09-18 05:44:37 -04:00
|
|
|
summed over threads.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-09-18 05:44:37 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B total.num.cachemiss
|
2008-09-18 05:44:37 -04:00
|
|
|
summed over threads.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-09-18 05:44:37 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B total.num.dnscrypt.crypted
|
2017-09-18 04:55:08 -04:00
|
|
|
summed over threads.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2017-09-18 04:55:08 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B total.num.dnscrypt.cert
|
2017-09-18 04:55:08 -04:00
|
|
|
summed over threads.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2017-09-18 04:55:08 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B total.num.dnscrypt.cleartext
|
2017-09-18 04:55:08 -04:00
|
|
|
summed over threads.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2017-09-18 04:55:08 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B total.num.dnscrypt.malformed
|
2017-09-18 04:55:08 -04:00
|
|
|
summed over threads.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2017-09-18 04:55:08 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B total.num.dns_error_reports
|
2025-04-07 04:25:10 -04:00
|
|
|
summed over threads.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2025-04-07 04:25:10 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B total.num.prefetch
|
2010-01-07 11:06:26 -05:00
|
|
|
summed over threads.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2010-01-07 11:06:26 -05:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B total.num.expired
|
2016-10-28 11:08:32 -04:00
|
|
|
summed over threads.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2016-10-28 11:08:32 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B total.num.queries_timed_out
|
2023-04-26 07:49:33 -04:00
|
|
|
summed over threads.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2023-04-26 07:49:33 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B total.query.queue_time_us.max
|
2023-04-26 07:49:33 -04:00
|
|
|
the maximum of the thread values.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2023-04-26 07:49:33 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B total.num.recursivereplies
|
2008-09-18 05:44:37 -04:00
|
|
|
summed over threads.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-09-18 05:44:37 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B total.requestlist.avg
|
2008-09-18 05:44:37 -04:00
|
|
|
averaged over threads.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-09-18 05:44:37 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B total.requestlist.max
|
2008-09-18 05:44:37 -04:00
|
|
|
the maximum of the thread requestlist.max values.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-09-18 05:44:37 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B total.requestlist.overwritten
|
2008-09-18 05:44:37 -04:00
|
|
|
summed over threads.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-09-18 05:44:37 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B total.requestlist.exceeded
|
2008-09-18 05:44:37 -04:00
|
|
|
summed over threads.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-09-18 05:44:37 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B total.requestlist.current.all
|
2008-09-18 05:44:37 -04:00
|
|
|
summed over threads.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-09-18 05:44:37 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B total.recursion.time.median
|
2008-09-18 05:44:37 -04:00
|
|
|
averaged over threads.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-09-18 05:44:37 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B total.tcpusage
|
2015-03-05 10:23:14 -05:00
|
|
|
summed over threads.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2015-03-05 10:23:14 -05:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B time.now
|
2008-09-18 05:44:37 -04:00
|
|
|
current time in seconds since 1970.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-09-18 05:44:37 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B time.up
|
2008-09-18 05:44:37 -04:00
|
|
|
uptime since server boot in seconds.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-09-18 05:44:37 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B time.elapsed
|
2008-09-18 05:44:37 -04:00
|
|
|
time since last statistics printout, in seconds.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
2008-09-18 05:44:37 -04:00
|
|
|
.SH EXTENDED STATISTICS
|
2025-05-20 06:20:20 -04:00
|
|
|
.INDENT 0.0
|
2008-09-18 05:44:37 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B mem.cache.rrset
|
2008-09-18 05:44:37 -04:00
|
|
|
Memory in bytes in use by the RRset cache.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-09-18 05:44:37 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B mem.cache.message
|
2008-09-18 05:44:37 -04:00
|
|
|
Memory in bytes in use by the message cache.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-09-18 05:44:37 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B mem.cache.dnscrypt_shared_secret
|
2017-09-18 04:55:08 -04:00
|
|
|
Memory in bytes in use by the dnscrypt shared secrets cache.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2017-09-18 04:55:08 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B mem.cache.dnscrypt_nonce
|
2017-09-18 04:55:08 -04:00
|
|
|
Memory in bytes in use by the dnscrypt nonce cache.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2017-09-18 04:55:08 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B mem.mod.iterator
|
2008-09-18 05:44:37 -04:00
|
|
|
Memory in bytes in use by the iterator module.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B mem.mod.validator
|
|
|
|
|
Memory in bytes in use by the validator module.
|
|
|
|
|
Includes the key cache and negative cache.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B mem.streamwait
|
|
|
|
|
Memory in bytes in used by the TCP and TLS stream wait buffers.
|
|
|
|
|
These are answers waiting to be written back to the clients.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B mem.http.query_buffer
|
|
|
|
|
Memory in bytes used by the HTTP/2 query buffers.
|
|
|
|
|
Containing (partial) DNS queries waiting for request stream completion.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B mem.http.response_buffer
|
|
|
|
|
Memory in bytes used by the HTTP/2 response buffers.
|
|
|
|
|
Containing DNS responses waiting to be written back to the clients.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B mem.quic
|
|
|
|
|
Memory in bytes used by QUIC.
|
|
|
|
|
Containing connection information, stream information, queries read and
|
|
|
|
|
responses written back to the clients.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B histogram.<sec>.<usec>.to.<sec>.<usec>
|
|
|
|
|
Shows a histogram, summed over all threads.
|
|
|
|
|
Every element counts the recursive queries whose reply time fit between the
|
|
|
|
|
lower and upper bound.
|
2008-09-18 10:37:20 -04:00
|
|
|
Times larger or equal to the lowerbound, and smaller than the upper bound.
|
|
|
|
|
There are 40 buckets, with bucket sizes doubling.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-09-18 10:37:20 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B num.query.type.A
|
2008-09-18 05:44:37 -04:00
|
|
|
The total number of queries over all threads with query type A.
|
|
|
|
|
Printed for the other query types as well, but only for the types for which
|
|
|
|
|
queries were received, thus =0 entries are omitted for brevity.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-09-18 05:44:37 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B num.query.type.other
|
2009-11-12 11:27:11 -05:00
|
|
|
Number of queries with query types 256\-65535.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-09-18 05:44:37 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B num.query.class.IN
|
|
|
|
|
The total number of queries over all threads with query class IN
|
|
|
|
|
(internet).
|
2008-09-18 05:44:37 -04:00
|
|
|
Also printed for other classes (such as CH (CHAOS) sometimes used for
|
|
|
|
|
debugging), or NONE, ANY, used by dynamic update.
|
2009-11-12 11:27:11 -05:00
|
|
|
num.query.class.other is printed for classes 256\-65535.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-09-18 05:44:37 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B num.query.opcode.QUERY
|
2008-09-18 05:44:37 -04:00
|
|
|
The total number of queries over all threads with query opcode QUERY.
|
|
|
|
|
Also printed for other opcodes, UPDATE, ...
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-09-18 05:44:37 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B num.query.tcp
|
2021-12-13 06:46:08 -05:00
|
|
|
Number of queries that were made using TCP towards the Unbound server.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-09-18 05:44:37 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B num.query.tcpout
|
2021-12-13 06:46:08 -05:00
|
|
|
Number of queries that the Unbound server made using TCP outgoing towards
|
2014-04-10 05:13:58 -04:00
|
|
|
other servers.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2014-04-10 05:13:58 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B num.query.udpout
|
2022-06-29 04:51:54 -04:00
|
|
|
Number of queries that the Unbound server made using UDP outgoing towards
|
|
|
|
|
other servers.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2022-06-29 04:51:54 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B num.query.tls
|
2021-12-13 06:46:08 -05:00
|
|
|
Number of queries that were made using TLS towards the Unbound server.
|
2018-06-28 05:14:31 -04:00
|
|
|
These are also counted in num.query.tcp, because TLS uses TCP.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2018-06-28 04:15:47 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B num.query.tls.resume
|
|
|
|
|
Number of TLS session resumptions, these are queries over TLS towards the
|
|
|
|
|
Unbound server where the client negotiated a TLS session resumption key.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2019-01-23 05:19:04 -05:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B num.query.https
|
2021-12-13 06:46:08 -05:00
|
|
|
Number of queries that were made using HTTPS towards the Unbound server.
|
2020-05-08 06:14:17 -04:00
|
|
|
These are also counted in num.query.tcp and num.query.tls, because HTTPS
|
|
|
|
|
uses TLS and TCP.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2020-05-08 06:14:17 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B num.query.quic
|
DNSoverQUIC (#871)
* - dnsoverquic, configure --with-libngtcp2 option.
* - dnsoverquic, create comm_point for doq and receive cmsg local address.
* - dnsoverquic, less obtrusive debug.
* - dnsoverquic, log and fix local port number. Neater subroutines and ifdefs.
* - dnsoverquic, add testcode/doqclient.
* - dnsoverquic, review fixes on doqclient.
* - dnsoverquic, fix unit test testbound link.
* - dnsoverquic, parse query in doqclient.
* - dnsoverquic, link with libngtcp2_crypto_openssl and code for doqclient.
* - dnsoverquic, random routine for doqclient and fix ngaddr allocation, and
check ub_initstate return.
* - dnsoverquic, fix doqclient free of allocated ngaddr addresses.
* - dnsoverquic, enable debug output with -v for doqclient.
* - dnsoverquic, create and set TLS object and TLS context in doqclient.
* - dnsoverquic, work on quic tls context in doqclient.
* - dnsoverquic, set default dnsoverquic port to the standardized 853 port.
* - dnsoverquic, remove debug comment.
* - dnsoverquic, dns-over-quic quic-port: 853 config option.
* - dnsoverquic, log type of interface created at start of unbound.
* - dnsoverquic, log type of no tls https as https when interface is created.
* - dnsoverquic, setup client quic tls methods.
* - dnsoverquic, event work in doqclient.
* - dnsoverquic, explain in documentation that QUIC uses UDP.
* - dnsoverquic, make doqclient exit.
* - dnsoverquic, doqclient cleanup run routine.
* - dnsoverquic, doqclient code nicer.
* - dnsoverquic, doqclient read and timer.
* - dnsoverquic, doqclient write work.
* - dnsoverquic, review fixes.
* - dnsoverquic, detect openssl quic support at configure time.
* - dnsoverquic, do not allow QUIC on port 53 to stop confusion of DoQ and DNS.
* - dnsoverquic, in doqclient, when idle close is returned, drop the connection
without calling ngtcp2_conn_write_connection_close.
* - dnsoverquic, in doqclient, log callbacks.
* - dnsoverquic, in doqclient add extend_max_local_streams_bidi callback.
* - dnsoverquic, in doqclient add client query lists.
* - dnsoverquic, in doqclient, code cleaner, log text nicer.
* - dnsoverquic, in doqclient, work on write_streams.
* - dnsoverquic, in doqclient, use signed int for stream_id, work on the
ngtcp2_recv_stream_data callback.
* - dnsoverquic, in doqclient, print result and fixes for recv data.
* - dnsoverquic, in doqclient, add the event callbacks to fptr wlist.
* - dnsoverquic, in doqclient, when already expired, use zero timeout timer.
* - dnsoverquic, in doqclient, ignore unused return codes from
ngtcp2_conn_writev_stream.
* - dnsoverquic, add doqclient event functions to the unbound-dnstap-socket
test tool for linking.
* - dnsoverquic, in doqclient, fix multiple operands for the commandline.
neater dns message output.
* - dnsoverquic, in doqclient, store packet when write blocks and try later.
* - dnsoverquic, in doqclient, limit number of packets and number of bytes sent.
* - dnsoverquic, in doqclient, better size estimate for outgoing packet.
* - dnsoverquic, in doqclient, fix that already written next packet is not
counted for data length to send.
* - dnsoverquic, in doqclient, early data transmission and session resumption.
* - dnsoverquic, send version negotiation packet.
* - dnsoverquic, send retry and accept the connection.
* - dnsoverquic, storage structures.
* - dnsoverquic, doq connection setup.
* - dnsoverquic, neater code layout for new conn. Fix verbosity of log print.
* - dnsoverquic, doq conn callback functions.
* - dnsoverquic, doq_fill_rand routine in header file.
* - dnsoverquic, keep track of connection ids.
* - dnsoverquic, get_new_connection_id callback.
* - dnsoverquic, create doq_conid tree.
* - dnsoverquic, settings for server connection.
* - dnsoverquic, tls context.
* - dnsoverquic, sendmsg error handling.
* - dnsoverquic, neat code.
* - dnsoverquic, track doq connection last error.
* - dnsoverquic, neater packet address parameters.
* - dnsoverquic, fix uninitialized bytes in msg control in doq sendmsg, and
fix tree cleanup of conid tree.
* - dnsoverquic, better usage text for doqclient.
* - dnsoverquic, neat code.
* - dnsoverquic, connection receive packet handling.
* - dnsoverquic, debug output.
* - dnsoverquic, debug switched meaning of scid and dcid gives
ERR_TRANSPORT_PARAM.
* - dnsoverquic, remove debug output.
* - dnsoverquic, connection delete routine and error from connection read in
more detail with less clutter.
* - dnsoverquic, write to stream, and receive stream data, log packet.
* - dnsoverquic, alpn set up.
* - dnsoverquic, connection close.
* - dnsoverquic, doq_table and locks.
* - dnsoverquic, fix tests.
* - dnsoverquic, better locking.
* - dnsoverquic, doq_stream.
* - dnsoverquic, remove compile warning.
* - dnsoverquic, doq_stream receive data.
* - dnsoverquic, fixes for locks and keep length bytes allocated.
* - dnsoverquic, lock connection on initial insertion.
* - dnsoverquic, reply information, and reply buffer.
* - dnsoverquic, reply info from cache, local-zone and recursion lookups.
* - dnsoverquic, spelling in comment about buffer storage.
* - dnsoverquic, stream write list and doqclient fixes to exit and printout.
* - dnsoverquic, doqclient -q option for short printout.
* - dnsoverquic, unit test with local data reply.
* - dnsoverquic, write connection and write event is set.
* - dnsoverquic, neater logging for write event connection stream writes.
* - dnsoverquic, log remote connection when the streams are written for it.
* - dnsoverquic, better threaded use, threads can write to doq connections at
the same time.
* - dnsoverquic, unit test for the calculation of connection size with a query.
* - dnsoverquic, use less memory per connection.
* - dnsoverquic, remove unit test output.
* - dnsoverquic, add MSG_DONTWAIT so that there is no mistakenly blocking
socket operations.
* - dnsoverquic, doqclient logs address on connection failures.
* - dnsoverquic, compat code for clock get time routine.
* - dnsoverquic, use skip_test for doq unit test.
* - dnsoverquic, fixes for proxyprotocol, use remote_addr and set proxyprotocol
disabled on the doq connection.
* - dnsoverquic, doqclient sets log identity to its name, instead of "unbound".
* - dnsoverquic, handle blocked udp packet writes.
* - dnsoverquic, fix function documentation for verbose_print_addr from
services/listen_dnsport.c.
* - dnsoverquic, fix doq_conn lock protection. The checklock allows to set
the output file name, and doqclient uses that. Print place of lock_protect.
* - dnsoverquic, neater buffer clear when write of blocked packet fails, make
sure that memory area does not overlap for blocked packet addresses when
write of blocked packet fails, and size blocked packet buffer to the pkt buf.
* - dnsoverquic, move lock check after the test to test script in doq test.
* - dnsoverquic, the doq test uses valgrind when enabled.
* - dnsoverquic, git ignore the doqclient test.
* - dnsoverquic, limit the buffer for packets to max packet size with some more.
* - dnsoverquic, spelling fix.
* - dnsoverquic, timer work, structure and adds and deletes.
* - dnsoverquic, timer_tree uses table.lock.
* - dnsoverquic, fix timer tree remove and spelling in header file comment.
* - dnsoverquic, fix testbound for timer compare function linkage.
* - dnsoverquic, timer set add debug output.
* - dnsoverquic, doq_conn_check_timer function.
* - dnsoverquic, doq_done_setup_timer_and_write function.
* - dnsoverquic, fix that doq conn is not deleted whilst editing write and timer.
* - dnsoverquic, Fix #861 make ERROR netevent.h:1073:32: error: field 'blocked_pkt_pi' has incomplete type
* - dnsoverquic, timer element has timeout setup when socket callback complete.
* - dnsoverquic, fix unit test compile.
* - dnsoverquic, timer callback routine, handle timeout and close and delete the
connection if necessary.
* - dnsoverquic, timer pickup stops at current time.
* - dnsoverquic, timer comparable with the event base time.
* - dnsoverquic, erase marked time when timer disabled.
* - dnsoverquic, fix timer to set correctly and lock popped write connection
early, before it is modified.
* - dnsoverquic, fix to unlock connection lock when it is unlinked and deleted.
* - dnsoverquic, fix to unlock connection lock when it is deleted because it is
a duplicate connection.
* - dnsoverquic, fix that doq timer is not disabled when not set.
* - dnsoverquic, quic-size: 8m maximum number of bytes for QUIC buffers.
* - dnsoverquic, flex and bison.
* - dnsoverquic, quic-size turn away new connections when full.
* - dnsoverquic, doqclient outputs stream reset information.
* - dnsoverquic, detect stream close and reset.
* - dnsoverquic, free stream buffers when data is acked and stream is closed.
* - dnsoverquic, delete stream when closed. Unlink it. Allow stream_id 4 as first.
* - dnsoverquic, stats output for mem.quic and num.query.quic.
* - dnsoverquic, review fix.
* - dnsoverquic, fix when compiled without ngtcp2.
* - dnsoverquic, fix to detect ngtcp2_crypto_quictls for openssl crypto, after
change in libngtcp2.
* - dnsoverquic, fix for newer ngtcp2 versions. detect ngtcp2_ccerr_default,
ngtcp2/ngtcp2_crypto_quictls.h, struct ngtcp2_pkt_hd.tokenlen,
struct ngtcp2_settings.tokenlen and struct ngtcp2_version_cid.
* - dnsoverquic, fix for newer ngtcp2 version, detect number of arguments for
ngtcp2_conn_shutdown_stream.
* - dnsoverquic, fix for newer ngtcp2.
* - dnsoverquic, use the functions from util/timeval_func.h.
* - dnsoverquic, fix in doqclient only write transport parameters once.
* - dnsoverquic, debug log output removed.
* - dnsoverquic, fix in doqclient to work with renamed NGTCP2_CC_ALGO_BBR_V2
from ngtcp2.
* - dnsoverquic, fix to check in doq_server_socket_create that tls-service-key
and tls-service-pem have a value.
* - dnsoverquic, fix to error when doq_server_socket_create fails.
* - dnsoverquic, improve linebreaks in configparser additions.
* - dnsoverquic, fix port from interface pickup after main branch change.
* Fix getting user data from SSL, fix calloc warning.
* Fix fwrite return value check in doqclient
* - timeval_substruct from timeval_func.h
- lock_protect also for HAVE_NGTCP2_CCERR_DEFAULT
- fix doq logging for inet_ntop failures
* - memset for consistency
- no value returned from msghdr_get_ecn when S_SPLINT_S is defined
* - dnsoverquic, rerun autoconf.
---------
Co-authored-by: Yorgos Thessalonikefs <yorgos@nlnetlabs.nl>
2024-10-09 04:32:03 -04:00
|
|
|
Number of queries that were made using QUIC towards the Unbound server.
|
2025-05-20 06:20:20 -04:00
|
|
|
These are also counted in num.query.tls, because TLS is used for these
|
|
|
|
|
queries.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
DNSoverQUIC (#871)
* - dnsoverquic, configure --with-libngtcp2 option.
* - dnsoverquic, create comm_point for doq and receive cmsg local address.
* - dnsoverquic, less obtrusive debug.
* - dnsoverquic, log and fix local port number. Neater subroutines and ifdefs.
* - dnsoverquic, add testcode/doqclient.
* - dnsoverquic, review fixes on doqclient.
* - dnsoverquic, fix unit test testbound link.
* - dnsoverquic, parse query in doqclient.
* - dnsoverquic, link with libngtcp2_crypto_openssl and code for doqclient.
* - dnsoverquic, random routine for doqclient and fix ngaddr allocation, and
check ub_initstate return.
* - dnsoverquic, fix doqclient free of allocated ngaddr addresses.
* - dnsoverquic, enable debug output with -v for doqclient.
* - dnsoverquic, create and set TLS object and TLS context in doqclient.
* - dnsoverquic, work on quic tls context in doqclient.
* - dnsoverquic, set default dnsoverquic port to the standardized 853 port.
* - dnsoverquic, remove debug comment.
* - dnsoverquic, dns-over-quic quic-port: 853 config option.
* - dnsoverquic, log type of interface created at start of unbound.
* - dnsoverquic, log type of no tls https as https when interface is created.
* - dnsoverquic, setup client quic tls methods.
* - dnsoverquic, event work in doqclient.
* - dnsoverquic, explain in documentation that QUIC uses UDP.
* - dnsoverquic, make doqclient exit.
* - dnsoverquic, doqclient cleanup run routine.
* - dnsoverquic, doqclient code nicer.
* - dnsoverquic, doqclient read and timer.
* - dnsoverquic, doqclient write work.
* - dnsoverquic, review fixes.
* - dnsoverquic, detect openssl quic support at configure time.
* - dnsoverquic, do not allow QUIC on port 53 to stop confusion of DoQ and DNS.
* - dnsoverquic, in doqclient, when idle close is returned, drop the connection
without calling ngtcp2_conn_write_connection_close.
* - dnsoverquic, in doqclient, log callbacks.
* - dnsoverquic, in doqclient add extend_max_local_streams_bidi callback.
* - dnsoverquic, in doqclient add client query lists.
* - dnsoverquic, in doqclient, code cleaner, log text nicer.
* - dnsoverquic, in doqclient, work on write_streams.
* - dnsoverquic, in doqclient, use signed int for stream_id, work on the
ngtcp2_recv_stream_data callback.
* - dnsoverquic, in doqclient, print result and fixes for recv data.
* - dnsoverquic, in doqclient, add the event callbacks to fptr wlist.
* - dnsoverquic, in doqclient, when already expired, use zero timeout timer.
* - dnsoverquic, in doqclient, ignore unused return codes from
ngtcp2_conn_writev_stream.
* - dnsoverquic, add doqclient event functions to the unbound-dnstap-socket
test tool for linking.
* - dnsoverquic, in doqclient, fix multiple operands for the commandline.
neater dns message output.
* - dnsoverquic, in doqclient, store packet when write blocks and try later.
* - dnsoverquic, in doqclient, limit number of packets and number of bytes sent.
* - dnsoverquic, in doqclient, better size estimate for outgoing packet.
* - dnsoverquic, in doqclient, fix that already written next packet is not
counted for data length to send.
* - dnsoverquic, in doqclient, early data transmission and session resumption.
* - dnsoverquic, send version negotiation packet.
* - dnsoverquic, send retry and accept the connection.
* - dnsoverquic, storage structures.
* - dnsoverquic, doq connection setup.
* - dnsoverquic, neater code layout for new conn. Fix verbosity of log print.
* - dnsoverquic, doq conn callback functions.
* - dnsoverquic, doq_fill_rand routine in header file.
* - dnsoverquic, keep track of connection ids.
* - dnsoverquic, get_new_connection_id callback.
* - dnsoverquic, create doq_conid tree.
* - dnsoverquic, settings for server connection.
* - dnsoverquic, tls context.
* - dnsoverquic, sendmsg error handling.
* - dnsoverquic, neat code.
* - dnsoverquic, track doq connection last error.
* - dnsoverquic, neater packet address parameters.
* - dnsoverquic, fix uninitialized bytes in msg control in doq sendmsg, and
fix tree cleanup of conid tree.
* - dnsoverquic, better usage text for doqclient.
* - dnsoverquic, neat code.
* - dnsoverquic, connection receive packet handling.
* - dnsoverquic, debug output.
* - dnsoverquic, debug switched meaning of scid and dcid gives
ERR_TRANSPORT_PARAM.
* - dnsoverquic, remove debug output.
* - dnsoverquic, connection delete routine and error from connection read in
more detail with less clutter.
* - dnsoverquic, write to stream, and receive stream data, log packet.
* - dnsoverquic, alpn set up.
* - dnsoverquic, connection close.
* - dnsoverquic, doq_table and locks.
* - dnsoverquic, fix tests.
* - dnsoverquic, better locking.
* - dnsoverquic, doq_stream.
* - dnsoverquic, remove compile warning.
* - dnsoverquic, doq_stream receive data.
* - dnsoverquic, fixes for locks and keep length bytes allocated.
* - dnsoverquic, lock connection on initial insertion.
* - dnsoverquic, reply information, and reply buffer.
* - dnsoverquic, reply info from cache, local-zone and recursion lookups.
* - dnsoverquic, spelling in comment about buffer storage.
* - dnsoverquic, stream write list and doqclient fixes to exit and printout.
* - dnsoverquic, doqclient -q option for short printout.
* - dnsoverquic, unit test with local data reply.
* - dnsoverquic, write connection and write event is set.
* - dnsoverquic, neater logging for write event connection stream writes.
* - dnsoverquic, log remote connection when the streams are written for it.
* - dnsoverquic, better threaded use, threads can write to doq connections at
the same time.
* - dnsoverquic, unit test for the calculation of connection size with a query.
* - dnsoverquic, use less memory per connection.
* - dnsoverquic, remove unit test output.
* - dnsoverquic, add MSG_DONTWAIT so that there is no mistakenly blocking
socket operations.
* - dnsoverquic, doqclient logs address on connection failures.
* - dnsoverquic, compat code for clock get time routine.
* - dnsoverquic, use skip_test for doq unit test.
* - dnsoverquic, fixes for proxyprotocol, use remote_addr and set proxyprotocol
disabled on the doq connection.
* - dnsoverquic, doqclient sets log identity to its name, instead of "unbound".
* - dnsoverquic, handle blocked udp packet writes.
* - dnsoverquic, fix function documentation for verbose_print_addr from
services/listen_dnsport.c.
* - dnsoverquic, fix doq_conn lock protection. The checklock allows to set
the output file name, and doqclient uses that. Print place of lock_protect.
* - dnsoverquic, neater buffer clear when write of blocked packet fails, make
sure that memory area does not overlap for blocked packet addresses when
write of blocked packet fails, and size blocked packet buffer to the pkt buf.
* - dnsoverquic, move lock check after the test to test script in doq test.
* - dnsoverquic, the doq test uses valgrind when enabled.
* - dnsoverquic, git ignore the doqclient test.
* - dnsoverquic, limit the buffer for packets to max packet size with some more.
* - dnsoverquic, spelling fix.
* - dnsoverquic, timer work, structure and adds and deletes.
* - dnsoverquic, timer_tree uses table.lock.
* - dnsoverquic, fix timer tree remove and spelling in header file comment.
* - dnsoverquic, fix testbound for timer compare function linkage.
* - dnsoverquic, timer set add debug output.
* - dnsoverquic, doq_conn_check_timer function.
* - dnsoverquic, doq_done_setup_timer_and_write function.
* - dnsoverquic, fix that doq conn is not deleted whilst editing write and timer.
* - dnsoverquic, Fix #861 make ERROR netevent.h:1073:32: error: field 'blocked_pkt_pi' has incomplete type
* - dnsoverquic, timer element has timeout setup when socket callback complete.
* - dnsoverquic, fix unit test compile.
* - dnsoverquic, timer callback routine, handle timeout and close and delete the
connection if necessary.
* - dnsoverquic, timer pickup stops at current time.
* - dnsoverquic, timer comparable with the event base time.
* - dnsoverquic, erase marked time when timer disabled.
* - dnsoverquic, fix timer to set correctly and lock popped write connection
early, before it is modified.
* - dnsoverquic, fix to unlock connection lock when it is unlinked and deleted.
* - dnsoverquic, fix to unlock connection lock when it is deleted because it is
a duplicate connection.
* - dnsoverquic, fix that doq timer is not disabled when not set.
* - dnsoverquic, quic-size: 8m maximum number of bytes for QUIC buffers.
* - dnsoverquic, flex and bison.
* - dnsoverquic, quic-size turn away new connections when full.
* - dnsoverquic, doqclient outputs stream reset information.
* - dnsoverquic, detect stream close and reset.
* - dnsoverquic, free stream buffers when data is acked and stream is closed.
* - dnsoverquic, delete stream when closed. Unlink it. Allow stream_id 4 as first.
* - dnsoverquic, stats output for mem.quic and num.query.quic.
* - dnsoverquic, review fix.
* - dnsoverquic, fix when compiled without ngtcp2.
* - dnsoverquic, fix to detect ngtcp2_crypto_quictls for openssl crypto, after
change in libngtcp2.
* - dnsoverquic, fix for newer ngtcp2 versions. detect ngtcp2_ccerr_default,
ngtcp2/ngtcp2_crypto_quictls.h, struct ngtcp2_pkt_hd.tokenlen,
struct ngtcp2_settings.tokenlen and struct ngtcp2_version_cid.
* - dnsoverquic, fix for newer ngtcp2 version, detect number of arguments for
ngtcp2_conn_shutdown_stream.
* - dnsoverquic, fix for newer ngtcp2.
* - dnsoverquic, use the functions from util/timeval_func.h.
* - dnsoverquic, fix in doqclient only write transport parameters once.
* - dnsoverquic, debug log output removed.
* - dnsoverquic, fix in doqclient to work with renamed NGTCP2_CC_ALGO_BBR_V2
from ngtcp2.
* - dnsoverquic, fix to check in doq_server_socket_create that tls-service-key
and tls-service-pem have a value.
* - dnsoverquic, fix to error when doq_server_socket_create fails.
* - dnsoverquic, improve linebreaks in configparser additions.
* - dnsoverquic, fix port from interface pickup after main branch change.
* Fix getting user data from SSL, fix calloc warning.
* Fix fwrite return value check in doqclient
* - timeval_substruct from timeval_func.h
- lock_protect also for HAVE_NGTCP2_CCERR_DEFAULT
- fix doq logging for inet_ntop failures
* - memset for consistency
- no value returned from msghdr_get_ecn when S_SPLINT_S is defined
* - dnsoverquic, rerun autoconf.
---------
Co-authored-by: Yorgos Thessalonikefs <yorgos@nlnetlabs.nl>
2024-10-09 04:32:03 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B num.query.ipv6
|
2021-12-13 06:46:08 -05:00
|
|
|
Number of queries that were made using IPv6 towards the Unbound server.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-12-17 09:50:03 -05:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B num.query.flags.RD
|
2008-09-18 05:44:37 -04:00
|
|
|
The number of queries that had the RD flag set in the header.
|
|
|
|
|
Also printed for flags QR, AA, TC, RA, Z, AD, CD.
|
2025-05-20 06:20:20 -04:00
|
|
|
Note that queries with flags QR, AA or TC may have been rejected because of
|
|
|
|
|
that.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-09-18 05:44:37 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B num.query.edns.present
|
2008-09-18 05:44:37 -04:00
|
|
|
number of queries that had an EDNS OPT record present.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-09-18 05:44:37 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B num.query.edns.DO
|
|
|
|
|
number of queries that had an EDNS OPT record with the DO (DNSSEC OK) bit
|
|
|
|
|
set.
|
2008-09-18 08:11:20 -04:00
|
|
|
These queries are also included in the num.query.edns.present number.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B num.query.ratelimited
|
|
|
|
|
The number of queries that are turned away from being send to nameserver
|
|
|
|
|
due to ratelimiting.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B num.query.dnscrypt.shared_secret.cachemiss
|
|
|
|
|
The number of dnscrypt queries that did not find a shared secret in the
|
|
|
|
|
cache.
|
|
|
|
|
This can be use to compute the shared secret hitrate.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B num.query.dnscrypt.replay
|
|
|
|
|
The number of dnscrypt queries that found a nonce hit in the nonce cache
|
|
|
|
|
and hence are considered a query replay.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B num.answer.rcode.NXDOMAIN
|
|
|
|
|
The number of answers to queries, from cache or from recursion, that had
|
|
|
|
|
the return code NXDOMAIN.
|
|
|
|
|
Also printed for the other return codes.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B num.answer.rcode.nodata
|
2008-09-18 05:44:37 -04:00
|
|
|
The number of answers to queries that had the pseudo return code nodata.
|
2025-05-20 06:20:20 -04:00
|
|
|
This means the actual return code was NOERROR, but additionally, no data
|
|
|
|
|
was carried in the answer (making what is called a NOERROR/NODATA answer).
|
2008-09-18 08:11:20 -04:00
|
|
|
These queries are also included in the num.answer.rcode.NOERROR number.
|
2008-09-18 05:44:37 -04:00
|
|
|
Common for AAAA lookups when an A record exists, and no AAAA.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-09-18 05:44:37 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B num.answer.secure
|
|
|
|
|
Number of answers that were secure.
|
|
|
|
|
The answer validated correctly.
|
2008-09-18 05:44:37 -04:00
|
|
|
The AD bit might have been set in some of these answers, where the client
|
|
|
|
|
signalled (with DO or AD bit in the query) that they were ready to accept
|
|
|
|
|
the AD bit in the answer.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B num.answer.bogus
|
|
|
|
|
Number of answers that were bogus.
|
|
|
|
|
These answers resulted in SERVFAIL to the client because the answer failed
|
|
|
|
|
validation.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B num.rrset.bogus
|
|
|
|
|
The number of rrsets marked bogus by the validator.
|
|
|
|
|
Increased for every RRset inspection that fails.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
2025-07-12 11:37:54 -04:00
|
|
|
.B num.valops
|
|
|
|
|
The number of validation operations performed by the validator.
|
|
|
|
|
Increased for every RRSIG verification operation regardless of the
|
|
|
|
|
validation result.
|
|
|
|
|
The RRSIG and key combination needs to first pass some sanity checks before
|
|
|
|
|
Unbound even performs the verification, e.g., length/protocol checks.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B unwanted.queries
|
2008-09-18 05:44:37 -04:00
|
|
|
Number of queries that were refused or dropped because they failed the
|
|
|
|
|
access control settings.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2008-09-18 05:44:37 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B unwanted.replies
|
|
|
|
|
Replies that were unwanted or unsolicited.
|
|
|
|
|
Could have been random traffic, delayed duplicates, very late answers, or
|
|
|
|
|
could be spoofing attempts.
|
2008-09-18 05:44:37 -04:00
|
|
|
Some low level of late answers and delayed duplicates are to be expected
|
2025-05-20 06:20:20 -04:00
|
|
|
with the UDP protocol.
|
|
|
|
|
Very high values could indicate a threat (spoofing).
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2014-08-01 09:24:46 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B msg.cache.count
|
2014-08-01 09:24:46 -04:00
|
|
|
The number of items (DNS replies) in the message cache.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B rrset.cache.count
|
|
|
|
|
The number of RRsets in the rrset cache.
|
|
|
|
|
This includes rrsets used by the messages in the message cache, but also
|
|
|
|
|
delegation information.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B infra.cache.count
|
|
|
|
|
The number of items in the infra cache.
|
|
|
|
|
These are IP addresses with their timing and protocol support information.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B key.cache.count
|
|
|
|
|
The number of items in the key cache.
|
|
|
|
|
These are DNSSEC keys, one item per delegation point, and their validation
|
|
|
|
|
status.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B msg.cache.max_collisions
|
|
|
|
|
The maximum number of hash table collisions in the msg cache.
|
|
|
|
|
This is the number of hashes that are identical when a new element is
|
|
|
|
|
inserted in the hash table.
|
|
|
|
|
If the value is very large, like hundreds, something is wrong with the
|
|
|
|
|
performance of the hash table, hash values are incorrect or malicious.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B rrset.cache.max_collisions
|
|
|
|
|
The maximum number of hash table collisions in the rrset cache.
|
|
|
|
|
This is the number of hashes that are identical when a new element is
|
|
|
|
|
inserted in the hash table.
|
|
|
|
|
If the value is very large, like hundreds, something is wrong with the
|
|
|
|
|
performance of the hash table, hash values are incorrect or malicious.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B dnscrypt_shared_secret.cache.count
|
|
|
|
|
The number of items in the shared secret cache.
|
|
|
|
|
These are precomputed shared secrets for a given client public key/server
|
|
|
|
|
secret key pair.
|
|
|
|
|
Shared secrets are CPU intensive and this cache allows Unbound to avoid
|
|
|
|
|
recomputing the shared secret when multiple dnscrypt queries are sent from
|
|
|
|
|
the same client.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B dnscrypt_nonce.cache.count
|
|
|
|
|
The number of items in the client nonce cache.
|
|
|
|
|
This cache is used to prevent dnscrypt queries replay.
|
|
|
|
|
The client nonce must be unique for each client public key/server secret
|
|
|
|
|
key pair.
|
|
|
|
|
This cache should be able to host QPS * \fIreplay window\fP interval keys to
|
|
|
|
|
prevent replay of a query during \fIreplay window\fP seconds.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B num.query.authzone.up
|
2018-04-09 06:15:06 -04:00
|
|
|
The number of queries answered from auth\-zone data, upstream queries.
|
2025-05-20 06:20:20 -04:00
|
|
|
These queries would otherwise have been sent (with fallback enabled) to the
|
|
|
|
|
internet, but are now answered from the auth zone.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2018-04-09 06:15:06 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B num.query.authzone.down
|
2018-04-09 06:15:06 -04:00
|
|
|
The number of queries for downstream answered from auth\-zone data.
|
2025-05-20 06:20:20 -04:00
|
|
|
These queries are from downstream clients, and have had an answer from the
|
|
|
|
|
data in the auth zone.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2018-04-10 07:39:23 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B num.query.aggressive.NOERROR
|
2018-04-10 07:39:23 -04:00
|
|
|
The number of queries answered using cached NSEC records with NODATA RCODE.
|
|
|
|
|
These queries would otherwise have been sent to the internet, but are now
|
|
|
|
|
answered using cached data.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
2018-04-10 07:39:23 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B num.query.aggressive.NXDOMAIN
|
|
|
|
|
The number of queries answered using cached NSEC records with NXDOMAIN
|
|
|
|
|
RCODE.
|
2018-04-10 07:39:23 -04:00
|
|
|
These queries would otherwise have been sent to the internet, but are now
|
|
|
|
|
answered using cached data.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B num.query.subnet
|
|
|
|
|
Number of queries that got an answer that contained EDNS client subnet
|
|
|
|
|
data.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B num.query.subnet_cache
|
|
|
|
|
Number of queries answered from the edns client subnet cache.
|
|
|
|
|
These are counted as cachemiss by the main counters, but hit the client
|
|
|
|
|
subnet specific cache after getting processed by the edns client subnet
|
|
|
|
|
module.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B num.query.cachedb
|
2023-05-30 11:49:50 -04:00
|
|
|
Number of queries answered from the external cache of cachedb.
|
|
|
|
|
These are counted as cachemiss by the main counters, but hit the cachedb
|
|
|
|
|
external cache after getting processed by the cachedb module.
|
2025-05-20 06:20:20 -04:00
|
|
|
.UNINDENT
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B num.rpz.action.<rpz_action>
|
|
|
|
|
Number of queries answered using configured RPZ policy, per RPZ action
|
|
|
|
|
type.
|
|
|
|
|
Possible actions are: nxdomain, nodata, passthru, drop, tcp\-only,
|
|
|
|
|
local\-data, disabled, and cname\-override.
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.SH FILES
|
|
|
|
|
.INDENT 0.0
|
|
|
|
|
.TP
|
|
|
|
|
.B @ub_conf_file@
|
2021-12-13 06:46:08 -05:00
|
|
|
Unbound configuration file.
|
2008-09-11 10:14:12 -04:00
|
|
|
.TP
|
2025-05-20 06:20:20 -04:00
|
|
|
.B @UNBOUND_RUN_DIR@
|
|
|
|
|
directory with private keys (\fBunbound_server.key\fP and
|
|
|
|
|
\fBunbound_control.key\fP) and self\-signed certificates
|
|
|
|
|
(\fBunbound_server.pem\fP and \fBunbound_control.pem\fP).
|
|
|
|
|
.UNINDENT
|
|
|
|
|
.SH SEE ALSO
|
|
|
|
|
.sp
|
|
|
|
|
\fI\%unbound.conf(5)\fP,
|
|
|
|
|
\fI\%unbound(8)\fP\&.
|
|
|
|
|
.SH AUTHOR
|
|
|
|
|
Unbound developers are mentioned in the CREDITS file in the distribution.
|
|
|
|
|
.SH COPYRIGHT
|
|
|
|
|
1999-2025, NLnet Labs
|
|
|
|
|
.\" Generated by docutils manpage writer.
|
|
|
|
|
.
|