2023-01-13 23:52:47 +00:00
.TH "unbound-control" "8" "Jan 12, 2023" "NLnet Labs" "unbound 1.17.1"
2012-07-04 14:24:26 +00:00
. \"
. \" unbound-control.8 -- unbound remote control manual
. \"
. \" Copyright (c) 2008, NLnet Labs. All rights reserved.
. \"
. \" See LICENSE for the license.
. \"
. \"
.SH "NAME"
.B unbound\-control,
.B unbound\-control\-setup
\- Unbound remote server control utility.
.SH "SYNOPSIS"
.B unbound\-control
2013-04-05 09:06:26 +00:00
.RB [ \- hq ]
2022-02-17 22:47:14 +00:00
.RB [ \- c
2012-07-04 14:24:26 +00:00
.IR cfgfile ]
2022-02-17 22:47:14 +00:00
.RB [ \- s
2012-07-04 14:24:26 +00:00
.IR server ]
.IR command
.SH "DESCRIPTION"
.B Unbound\-control
performs remote administration on the \fI unbound\fR (8) DNS server.
2022-02-17 22:47:14 +00:00
It reads the configuration file, contacts the Unbound server over SSL
2012-07-04 14:24:26 +00:00
sends the command and displays the result.
.P
The available options are:
.TP
.B \- h
Show the version and commandline option help.
.TP
.B \- c \fI cfgfile
The config file to read with settings. If not given the default
config file @ub_conf_file@ is used.
.TP
.B \- s \fI server[@port]
IPv4 or IPv6 address of the server to contact. If not given, the
address is read from the config file.
2013-04-05 09:06:26 +00:00
.TP
.B \- q
quiet, if the option is given it does not print anything if it works ok.
2012-07-04 14:24:26 +00:00
.SH "COMMANDS"
There are several commands that the server understands.
.TP
.B start
2022-02-17 22:47:14 +00:00
Start the server. Simply execs \fI unbound\fR (8). The Unbound executable
is searched for in the \fB PATH\fR set in the environment. It is started
2012-07-04 14:24:26 +00:00
with the config file specified using \fI \- c\fR or the default config file.
.TP
.B stop
Stop the server. The server daemon exits.
.TP
.B reload
Reload the server. This flushes the cache and reads the config file fresh.
.TP
2023-01-13 23:52:47 +00:00
.B reload_keep_cache
Reload the server but try to keep the RRset and message cache if
(re)configuration allows for it.
That means the caches sizes and the number of threads must not change between
reloads.
.TP
2012-07-04 14:24:26 +00:00
.B verbosity \fI number
Change verbosity value for logging. Same values as \fB verbosity\fR keyword in
\fI unbound.conf\fR (5). This new setting lasts until the server is issued
a reload (taken from config file again), or the next verbosity control command.
.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).
.TP
.B stats
2022-02-17 22:47:14 +00:00
Print statistics. Resets the internal counters to zero, this can be
controlled using the \fB statistics\- cumulative\fR config statement.
2012-07-04 14:24:26 +00:00
Statistics are printed with one [name]: [value] per line.
.TP
.B stats_noreset
Peek at statistics. Prints them like the \fB stats\fR command does, but does not
reset the internal counters to zero.
.TP
.B status
2022-02-17 22:47:14 +00:00
Display server status. Exit code 3 if not running (the connection to the
2012-07-04 14:24:26 +00:00
port is refused), 1 on error, 0 if running.
.TP
.B local_zone \fI name\fR \fI type
Add new local zone with name and type. Like \fB local\- zone\fR config statement.
If the zone already exists, the type is changed to the given argument.
.TP
.B local_zone_remove \fI name
Remove the local zone with the given name. Removes all local data inside
it. If the zone does not exist, the command succeeds.
.TP
.B local_data \fI RR data...
Add new local data, the given resource record. Like \fB local\- data\fR
config statement, except for when no covering zone exists. In that case
2022-02-17 22:47:14 +00:00
this remote control command creates a transparent zone with the same
2021-08-16 23:55:17 +00:00
name as this record.
2012-07-04 14:24:26 +00:00
.TP
.B local_data_remove \fI name
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),
2022-02-17 22:47:14 +00:00
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
2012-07-04 14:24:26 +00:00
result for that name.
.TP
2017-02-03 13:06:34 +00:00
.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.
.TP
.B local_zones_remove
Remove local zones read from stdin of unbound\- control. Input is one name per
line. For bulk removals.
.TP
.B local_datas
Add local data RRs read from stdin of unbound\- control. Input is one RR per
line. For bulk additions.
.TP
.B local_datas_remove
Remove local data RRs read from stdin of unbound\- control. Input is one name per
line. For bulk removals.
.TP
2012-07-04 14:24:26 +00:00
.B dump_cache
The contents of the cache is printed in a text format to stdout. You can
redirect it to a file to store the cache in a file.
.TP
.B load_cache
The contents of the cache is loaded from stdin. 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.
.TP
.B lookup \fI name
2022-02-17 22:47:14 +00:00
Print to stdout the name servers that would be used to look up the
2012-07-04 14:24:26 +00:00
name specified.
.TP
.B flush \fI name
Remove the name from the cache. Removes the types
2023-01-13 23:52:47 +00:00
A, AAAA, NS, SOA, CNAME, DNAME, MX, PTR, SRV, NAPTR, SVCB and HTTPS.
2022-02-17 22:47:14 +00:00
Because that is fast to do. Other record types can be removed using
.B flush_type
or
2012-07-04 14:24:26 +00:00
.B flush_zone\fR.
.TP
.B flush_type \fI name\fR \fI type
Remove the name, type information from the cache.
.TP
.B flush_zone \fI name
2022-02-17 22:47:14 +00:00
Remove all information at or below the name from the cache.
2012-07-04 14:24:26 +00:00
The rrsets and key entries are removed so that new lookups will be performed.
This needs to walk and inspect the entire cache, and is a slow operation.
2018-05-12 11:56:52 +00:00
The entries are set to expired in the implementation of this command (so,
with serve\- expired enabled, it'll serve that information but schedule a
prefetch for new information).
2012-07-04 14:24:26 +00:00
.TP
2013-04-05 09:06:26 +00:00
.B flush_bogus
Remove all bogus data from the cache.
.TP
2015-01-02 17:31:36 +00:00
.B flush_negative
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.
.TP
2012-07-04 14:24:26 +00:00
.B flush_stats
Reset statistics to zero.
.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.
Useful to make the server restart working on queries with new settings,
such as a higher verbosity level.
.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.
2015-01-02 17:31:36 +00:00
This prints the queries from the first thread, and not queries that are
being serviced from other threads.
2012-07-04 14:24:26 +00:00
.TP
.B flush_infra \fI all|IP
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.
.TP
.B dump_infra
Show the contents of the infra cache.
.TP
.B set_option \fI opt: val
Set the option to the given value without a reload. The cache is
therefore not flushed. The option must end with a ':' 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
2022-02-17 22:47:14 +00:00
in libunbound, where all values work because Unbound has not been initialized.
2012-07-04 14:24:26 +00:00
.IP
The values that work are: statistics\- interval, statistics\- cumulative,
do\- not\- query\- localhost, harden\- short\- bufsize, harden\- large\- queries,
harden\- glue, harden\- dnssec\- stripped, harden\- below\- nxdomain,
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,
2015-09-17 15:21:27 +00:00
keep\- missing, tcp\- upstream, ssl\- upstream, max\- udp\- size, ratelimit,
2018-05-12 11:49:30 +00:00
ip\- ratelimit, cache\- max\- ttl, cache\- min\- ttl, cache\- max\- negative\- ttl.
2012-07-04 14:24:26 +00:00
.TP
.B get_option \fI opt
Get the value of the option. Give the option name without a trailing ':'.
The value is printed. If the value is "", nothing is printed
and the connection closes. On error 'error ...' 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.
.TP
.B list_stubs
List the stub zones in use. These are printed one by one to the output.
This includes the root hints in use.
.TP
.B list_forwards
List the forward zones in use. These are printed zone by zone to the output.
.TP
2015-09-17 15:21:27 +00:00
.B list_insecure
List the zones with domain\- insecure.
.TP
2012-07-04 14:24:26 +00:00
.B list_local_zones
List the local zones in use. These are printed one per line with zone type.
.TP
.B list_local_data
List the local data RRs in use. The resource records are printed.
.TP
2014-05-14 18:43:20 +00:00
.B insecure_add \fI zone
Add a \fB domain\- insecure\fR for the given zone, like the statement in unbound.conf.
2022-02-17 22:47:14 +00:00
Adds to the running Unbound without affecting the cache contents (which may
2014-05-14 18:43:20 +00:00
still be bogus, use \fB flush_zone\fR to remove it), does not affect the config file.
.TP
.B insecure_remove \fI zone
Removes domain\- insecure for the given zone.
.TP
2012-07-04 14:24:26 +00:00
.B forward_add \fR [\fI+i\fR] \fI zone addr ...
2022-02-17 22:47:14 +00:00
Add a new forward zone to running Unbound. With +i option also adds a
2012-07-04 14:24:26 +00:00
\fI domain\- insecure\fR 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 \fI forward-zone\fR config
in unbound.conf.
.TP
.B forward_remove \fR [\fI+i\fR] \fI zone
2022-02-17 22:47:14 +00:00
Remove a forward zone from running Unbound. The +i also removes a
2012-07-04 14:24:26 +00:00
\fI domain\- insecure\fR for the zone.
.TP
.B stub_add \fR [\fI+ip\fR] \fI zone addr ...
2022-02-17 22:47:14 +00:00
Add a new stub zone to running Unbound. With +i option also adds a
2012-07-04 14:24:26 +00:00
\fI domain\- insecure\fR for the zone. With +p 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 \fI stub-zone\fR config in unbound.conf.
.TP
.B stub_remove \fR [\fI+i\fR] \fI zone
2022-02-17 22:47:14 +00:00
Remove a stub zone from running Unbound. The +i also removes a
2012-07-04 14:24:26 +00:00
\fI domain\- insecure\fR for the zone.
.TP
.B forward \fR [\fIoff\fR | \fI addr ...\fR ]
Setup forwarding mode. Configures if the server should ask other upstream
2022-02-17 22:47:14 +00:00
nameservers, should go to the internet root nameservers itself, or show
2012-07-04 14:24:26 +00:00
the current config. You could pass the nameservers after a DHCP update.
.IP
Without arguments the current list of addresses used to forward all queries
to is printed. On startup this is from the forward\- zone "." configuration.
Afterwards it shows the status. It prints off when no forwarding is used.
.IP
If \fI off\fR 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.
.IP
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 '@port' the
port number can be set explicitly (default port is 53 (DNS)).
.IP
By default the forwarder information from the config file for the root "." 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.
2015-09-17 15:21:27 +00:00
.TP
.B ratelimit_list \fR [\fI+a\fR]
List the domains that are ratelimited. Printed one per line with current
estimated qps and qps limit from config. With +a 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.
2017-02-03 13:06:34 +00:00
.TP
2018-05-12 11:49:30 +00:00
.B ip_ratelimit_list \fR [\fI+a\fR]
List the ip addresses that are ratelimited. Printed one per line with current
estimated qps and qps limit from config. With +a it prints all ips, not
just the ratelimited ips, with their estimated qps. The ratelimited
ips are dropped before checking the cache.
.TP
2018-05-12 11:56:52 +00:00
.B list_auth_zones
2022-06-08 14:43:13 +00:00
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.
2018-05-12 11:56:52 +00:00
.TP
2018-09-10 16:32:55 +00:00
.B auth_zone_reload \fI zone\fR
2022-06-08 14:43:13 +00:00
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 for-upstream yes and that can be cleared with
\fB flush_zone\fR \fI zone\fR .
2018-09-10 16:32:55 +00:00
.TP
.B auth_zone_transfer \fI zone\fR
2022-06-08 14:43:13 +00:00
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.
2018-09-10 16:32:55 +00:00
.TP
2021-02-09 20:59:02 +00:00
.B rpz_enable \fI zone\fR
Enable the RPZ zone if it had previously been disabled.
.TP
2021-08-16 23:55:17 +00:00
.B rpz_disable \fI zone\fR
2021-02-09 20:59:02 +00:00
Disable the RPZ zone.
.TP
2017-02-03 13:06:34 +00:00
.B view_list_local_zones \fI view\fR
\fI list_local_zones\fR for given view.
.TP
.B view_local_zone \fI view\fR \fI name\fR \fI type
\fI local_zone\fR for given view.
.TP
.B view_local_zone_remove \fI view\fR \fI name
\fI local_zone_remove\fR for given view.
.TP
2018-05-12 11:49:30 +00:00
.B view_list_local_data \fI view\fR
\fI list_local_data\fR for given view.
.TP
2017-02-03 13:06:34 +00:00
.B view_local_data \fI view\fR \fI RR data...
\fI local_data\fR for given view.
.TP
.B view_local_data_remove \fI view\fR \fI name
\fI local_data_remove\fR for given view.
2019-02-06 12:31:02 +00:00
.TP
2020-05-21 05:01:52 +00:00
.B view_local_datas_remove \fI view\fR
Remove a list of \fI local_data\fR for given view from stdin. Like local_datas_remove.
.TP
2019-02-06 12:31:02 +00:00
.B view_local_datas \fI view\fR
Add a list of \fI local_data\fR for given view from stdin. Like local_datas.
2012-07-04 14:24:26 +00:00
.SH "EXIT CODE"
The unbound\- control program exits with status code 1 on error, 0 on success.
.SH "SET UP"
2022-02-17 22:47:14 +00:00
The setup requires a self\- signed certificate and private keys for both
2012-07-04 14:24:26 +00:00
the server and client. The script \fI unbound\- control\- setup\fR generates
these in the default run directory, or with \- d in another directory.
If you change the access control permissions on the key files you can decide
who can use unbound\- control, by default owner and group but not all users.
Run the script under the same username as you have configured in unbound.conf
or as root, so that the daemon is permitted to read the files, for example with:
.nf
sudo \- u unbound unbound\- control\- setup
.fi
If you have not configured
a username in unbound.conf, the keys need read permission for the user
credentials under which the daemon is started.
The script preserves private keys present in the directory.
2022-02-17 22:47:14 +00:00
After running the script as root, turn on \fB control\- enable\fR in
2012-07-04 14:24:26 +00:00
\fI unbound.conf\fR .
.SH "STATISTIC COUNTERS"
The \fI stats\fR command shows a number of statistic counters.
.TP
.I threadX.num.queries
number of queries received by thread
.TP
2018-05-12 11:49:30 +00:00
.I threadX.num.queries_ip_ratelimited
number of queries rate limited by thread
.TP
2012-07-04 14:24:26 +00:00
.I threadX.num.cachehits
number of queries that were successfully answered using a cache lookup
.TP
.I threadX.num.cachemiss
number of queries that needed recursive processing
.TP
2018-05-12 11:55:57 +00:00
.I threadX.num.dnscrypt.crypted
number of queries that were encrypted and successfully decapsulated by dnscrypt.
.TP
.I threadX.num.dnscrypt.cert
number of queries that were requesting dnscrypt certificates.
.TP
.I threadX.num.dnscrypt.cleartext
number of queries received on dnscrypt port that were cleartext and not a
request for certificates.
.TP
.I threadX.num.dnscrypt.malformed
number of request that were neither cleartext, not valid dnscrypt messages.
.TP
2012-07-04 14:24:26 +00:00
.I 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.
Not part of the recursivereplies (or the histogram thereof) or cachemiss,
as a cache response was sent.
.TP
2020-05-21 05:01:52 +00:00
.I threadX.num.expired
number of replies that served an expired cache entry.
2017-02-03 13:06:34 +00:00
.TP
2012-07-04 14:24:26 +00:00
.I 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.
.TP
.I threadX.requestlist.avg
The average number of requests in the internal recursive processing request list on insert of a new incoming recursive processing query.
.TP
.I threadX.requestlist.max
Maximum size attained by the internal recursive processing request list.
.TP
.I 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.
.TP
.I 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.
.TP
.I threadX.requestlist.current.all
Current size of the request list, includes internally generated queries (such
as priming queries and glue lookups).
.TP
.I threadX.requestlist.current.user
Current size of the request list, only the requests from client queries.
.TP
.I 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.
.TP
.I threadX.recursion.time.median
The median of the time it took to answer queries that needed recursive
2022-02-17 22:47:14 +00: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
2012-07-04 14:24:26 +00:00
responsive servers), the average can be bigger than the median. This median
has been calculated by interpolation from a histogram.
.TP
2015-09-17 15:21:27 +00:00
.I 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.
.TP
2012-07-04 14:24:26 +00:00
.I total.num.queries
summed over threads.
.TP
.I total.num.cachehits
summed over threads.
.TP
.I total.num.cachemiss
summed over threads.
.TP
2018-05-12 11:55:57 +00:00
.I total.num.dnscrypt.crypted
summed over threads.
.TP
.I total.num.dnscrypt.cert
summed over threads.
.TP
.I total.num.dnscrypt.cleartext
summed over threads.
.TP
.I total.num.dnscrypt.malformed
summed over threads.
.TP
2012-07-04 14:24:26 +00:00
.I total.num.prefetch
summed over threads.
.TP
2020-05-21 05:01:52 +00:00
.I total.num.expired
2017-02-03 13:06:34 +00:00
summed over threads.
.TP
2012-07-04 14:24:26 +00:00
.I total.num.recursivereplies
summed over threads.
.TP
.I total.requestlist.avg
averaged over threads.
.TP
.I total.requestlist.max
the maximum of the thread requestlist.max values.
.TP
.I total.requestlist.overwritten
summed over threads.
.TP
.I total.requestlist.exceeded
summed over threads.
.TP
.I total.requestlist.current.all
summed over threads.
.TP
.I total.recursion.time.median
averaged over threads.
.TP
2015-09-17 15:21:27 +00:00
.I total.tcpusage
summed over threads.
.TP
2012-07-04 14:24:26 +00:00
.I time.now
current time in seconds since 1970.
.TP
.I time.up
uptime since server boot in seconds.
.TP
.I time.elapsed
time since last statistics printout, in seconds.
.SH EXTENDED STATISTICS
.TP
.I mem.cache.rrset
Memory in bytes in use by the RRset cache.
.TP
.I mem.cache.message
Memory in bytes in use by the message cache.
.TP
2018-05-12 11:55:57 +00:00
.I mem.cache.dnscrypt_shared_secret
Memory in bytes in use by the dnscrypt shared secrets cache.
.TP
.I mem.cache.dnscrypt_nonce
Memory in bytes in use by the dnscrypt nonce cache.
.TP
2012-07-04 14:24:26 +00:00
.I mem.mod.iterator
Memory in bytes in use by the iterator module.
.TP
.I mem.mod.validator
Memory in bytes in use by the validator module. Includes the key cache and
negative cache.
.TP
2019-02-06 12:31:02 +00:00
.I 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.
.TP
2020-10-27 15:09:16 +00:00
.I mem.http.query_buffer
Memory in bytes used by the HTTP/2 query buffers. Containing (partial) DNS
queries waiting for request stream completion.
.TP
.I 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.
.TP
2012-07-04 14:24:26 +00:00
.I 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.
Times larger or equal to the lowerbound, and smaller than the upper bound.
There are 40 buckets, with bucket sizes doubling.
.TP
.I num.query.type.A
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.
.TP
.I num.query.type.other
Number of queries with query types 256\- 65535.
.TP
.I num.query.class.IN
The total number of queries over all threads with query class IN (internet).
Also printed for other classes (such as CH (CHAOS) sometimes used for
debugging), or NONE, ANY, used by dynamic update.
num.query.class.other is printed for classes 256\- 65535.
.TP
.I num.query.opcode.QUERY
The total number of queries over all threads with query opcode QUERY.
Also printed for other opcodes, UPDATE, ...
.TP
.I num.query.tcp
2022-02-17 22:47:14 +00:00
Number of queries that were made using TCP towards the Unbound server.
2012-07-04 14:24:26 +00:00
.TP
2015-01-02 17:31:36 +00:00
.I num.query.tcpout
2022-02-17 22:47:14 +00:00
Number of queries that the Unbound server made using TCP outgoing towards
2015-01-02 17:31:36 +00:00
other servers.
.TP
2022-07-13 13:02:01 +00:00
.I num.query.udpout
Number of queries that the Unbound server made using UDP outgoing towards
other servers.
.TP
2018-09-10 16:32:55 +00:00
.I num.query.tls
2022-02-17 22:47:14 +00:00
Number of queries that were made using TLS towards the Unbound server.
2018-09-10 16:32:55 +00:00
These are also counted in num.query.tcp, because TLS uses TCP.
.TP
2019-02-06 12:31:02 +00:00
.I num.query.tls.resume
Number of TLS session resumptions, these are queries over TLS towards
2022-02-17 22:47:14 +00:00
the Unbound server where the client negotiated a TLS session resumption key.
2019-02-06 12:31:02 +00:00
.TP
2020-10-27 15:09:16 +00:00
.I num.query.https
2022-02-17 22:47:14 +00:00
Number of queries that were made using HTTPS towards the Unbound server.
2020-10-27 15:09:16 +00:00
These are also counted in num.query.tcp and num.query.tls, because HTTPS
uses TLS and TCP.
.TP
2012-07-04 14:24:26 +00:00
.I num.query.ipv6
2022-02-17 22:47:14 +00:00
Number of queries that were made using IPv6 towards the Unbound server.
2012-07-04 14:24:26 +00:00
.TP
.I num.query.flags.RD
The number of queries that had the RD flag set in the header.
Also printed for flags QR, AA, TC, RA, Z, AD, CD.
2022-02-17 22:47:14 +00:00
Note that queries with flags QR, AA or TC may have been rejected
2012-07-04 14:24:26 +00:00
because of that.
.TP
.I num.query.edns.present
number of queries that had an EDNS OPT record present.
.TP
.I num.query.edns.DO
number of queries that had an EDNS OPT record with the DO (DNSSEC OK) bit set.
These queries are also included in the num.query.edns.present number.
.TP
2018-05-12 11:55:17 +00:00
.I num.query.ratelimited
The number of queries that are turned away from being send to nameserver due to
ratelimiting.
.TP
2018-05-12 11:55:57 +00:00
.I num.query.dnscrypt.shared_secret.cachemiss
The number of dnscrypt queries that did not find a shared secret in the cache.
The can be use to compute the shared secret hitrate.
.TP
.I 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.
.TP
2012-07-04 14:24:26 +00:00
.I 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.
.TP
.I num.answer.rcode.nodata
The number of answers to queries that had the pseudo return code nodata.
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).
These queries are also included in the num.answer.rcode.NOERROR number.
Common for AAAA lookups when an A record exists, and no AAAA.
.TP
.I num.answer.secure
2022-02-17 22:47:14 +00:00
Number of answers that were secure. The answer validated correctly.
2012-07-04 14:24:26 +00: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.
.TP
.I num.answer.bogus
Number of answers that were bogus. These answers resulted in SERVFAIL
to the client because the answer failed validation.
.TP
.I num.rrset.bogus
The number of rrsets marked bogus by the validator. Increased for every
RRset inspection that fails.
.TP
.I unwanted.queries
Number of queries that were refused or dropped because they failed the
access control settings.
.TP
.I unwanted.replies
Replies that were unwanted or unsolicited. Could have been random traffic,
delayed duplicates, very late answers, or could be spoofing attempts.
Some low level of late answers and delayed duplicates are to be expected
with the UDP protocol. Very high values could indicate a threat (spoofing).
2015-01-02 17:31:36 +00:00
.TP
.I msg.cache.count
The number of items (DNS replies) in the message cache.
.TP
.I 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.
.TP
.I infra.cache.count
The number of items in the infra cache. These are IP addresses with their
timing and protocol support information.
.TP
.I key.cache.count
The number of items in the key cache. These are DNSSEC keys, one item
per delegation point, and their validation status.
2018-05-12 11:55:57 +00:00
.TP
.I 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
2022-02-17 22:47:14 +00:00
are CPU intensive and this cache allows Unbound to avoid recomputing the
2018-05-12 11:55:57 +00:00
shared secret when multiple dnscrypt queries are sent from the same client.
.TP
.I 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 * `replay
window` interval keys to prevent replay of a query during `replay window`
seconds.
2018-05-12 11:56:52 +00:00
.TP
.I num.query.authzone.up
The number of queries answered from auth\- zone data, upstream queries.
These queries would otherwise have been sent (with fallback enabled) to
the internet, but are now answered from the auth zone.
.TP
.I num.query.authzone.down
The number of queries for downstream answered from auth\- zone data.
These queries are from downstream clients, and have had an answer from
the data in the auth zone.
.TP
.I num.query.aggressive.NOERROR
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.
.TP
.I num.query.aggressive.NXDOMAIN
The number of queries answered using cached NSEC records with NXDOMAIN RCODE.
These queries would otherwise have been sent to the internet, but are now
answered using cached data.
2018-09-10 16:32:55 +00:00
.TP
.I num.query.subnet
Number of queries that got an answer that contained EDNS client subnet data.
.TP
.I 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.
2020-05-21 05:01:52 +00:00
.TP
.I num.rpz.action.<rpz_action>
Number of queries answered using configured RPZ policy, per RPZ action type.
2021-12-03 05:35:06 +00:00
Possible actions are: nxdomain, nodata, passthru, drop, tcp\- only, local\- data,
disabled, and cname\- override.
2012-07-04 14:24:26 +00:00
.SH "FILES"
.TP
.I @ub_conf_file@
2022-02-17 22:47:14 +00:00
Unbound configuration file.
2012-07-04 14:24:26 +00:00
.TP
.I @UNBOUND_RUN_DIR@
directory with private keys (unbound_server.key and unbound_control.key) and
self\- signed certificates (unbound_server.pem and unbound_control.pem).
.SH "SEE ALSO"
2022-02-17 22:47:14 +00:00
\fI unbound.conf\fR (5),
2012-07-04 14:24:26 +00:00
\fI unbound\fR (8).