2020-06-03 12:59:42 +00:00
|
|
|
cdist-type__unbound(7)
|
2021-05-11 10:00:02 +00:00
|
|
|
=======================
|
2020-06-03 12:58:43 +00:00
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
2021-05-11 10:00:02 +00:00
|
|
|
cdist-type__unbound - configure an instance of unbound, a DNS validating resolver.
|
2020-06-03 12:58:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
2021-05-11 10:00:02 +00:00
|
|
|
This type writes the configuration and OpenRC init scripts to run an instance
|
|
|
|
of unbound. The most commonly used options for unbound are configurable through
|
|
|
|
flags.
|
|
|
|
|
|
|
|
Note that this type is currently only implemented (and tested) on Alpine Linux.
|
|
|
|
Please contribute other implementations if you can.
|
2020-06-03 12:58:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
OPTIONAL PARAMETERS
|
|
|
|
-------------------
|
2021-05-11 10:00:02 +00:00
|
|
|
verbosity
|
|
|
|
Control the `unbound.conf(5)` verbosity parameter.
|
2020-06-03 12:58:43 +00:00
|
|
|
|
2021-05-11 10:00:02 +00:00
|
|
|
port
|
|
|
|
Control the `unbound.conf(5)` port parameter.
|
2020-06-03 12:58:43 +00:00
|
|
|
|
2021-05-11 10:00:02 +00:00
|
|
|
control-port
|
|
|
|
Control the `unbound.conf(5)` control-port parameter.
|
2020-07-10 08:41:20 +00:00
|
|
|
|
2021-01-04 08:46:10 +00:00
|
|
|
dns64-prefix
|
2021-05-11 10:00:02 +00:00
|
|
|
Control the `unbound.conf(5)` dns64-prefix parameter.
|
|
|
|
|
|
|
|
OPTIONAL MULTIPLE PARAMETERS
|
|
|
|
----------------------------
|
|
|
|
interface
|
|
|
|
Control the `unbound.conf(5)` interface parameter. Can be
|
|
|
|
given multiple times, will generate multiple `interface:
|
|
|
|
xxx` clauses.
|
|
|
|
|
|
|
|
access-control
|
|
|
|
Control the `unbound.conf(5)` access-control parameter. Can be given
|
|
|
|
multiple times, will generate multiple `access-control` clauses. The format
|
|
|
|
is an IP block followed by an access-control keyword.
|
|
|
|
|
|
|
|
control-interface
|
|
|
|
Control the `unbound.conf(5)` control-interface parameter. Can be given
|
|
|
|
mutltiple times, will generate multiple `control-interface` clauses. Note
|
|
|
|
that without the `enable-rc` boolean flags, remote control will not be
|
|
|
|
enabled. Note that if at least one control interfaces is not a local socket,
|
|
|
|
then you should enable the `control-use-certs` boolean flag to generate and
|
|
|
|
configure TLS certificates for use between `unbound(8)` and
|
|
|
|
`unbound-control(8)`
|
|
|
|
|
|
|
|
forward-zone
|
|
|
|
Define a forward zone. Each zone is comprised of a name, which defines for
|
|
|
|
what domains this zone applies, and at least one DNS server to which the
|
|
|
|
queries should be forwarded. The format is a comma-separated list of values
|
|
|
|
where the first element is the name of the zone, and the following elements
|
|
|
|
are the IP addresses of the DNS servers; e.g. `example.com,1.2.3.4,4.3.2.1`
|
2021-01-04 08:43:37 +00:00
|
|
|
|
2021-05-12 12:48:57 +00:00
|
|
|
local-data
|
|
|
|
Control the `unbound.conf(5)` local-data parameter. Note that no local-zone
|
|
|
|
is defined, so the unbound default is to treat this data as a transparent
|
|
|
|
local zone.
|
|
|
|
|
2020-06-03 12:58:43 +00:00
|
|
|
BOOLEAN PARAMETERS
|
|
|
|
------------------
|
2021-05-11 10:00:02 +00:00
|
|
|
ip-transparent
|
|
|
|
Control the `unbound.conf(5)` ip-transparent parameter.
|
2020-06-03 12:58:43 +00:00
|
|
|
|
2021-05-11 10:00:02 +00:00
|
|
|
dns64
|
|
|
|
Enables the addition of the DNS64 module.
|
2020-06-03 12:58:43 +00:00
|
|
|
|
2021-01-04 08:46:10 +00:00
|
|
|
enable-rc
|
2021-05-11 10:00:02 +00:00
|
|
|
Enable remote control.
|
|
|
|
|
|
|
|
control-use-certs
|
|
|
|
Enable the generation using `unbound-control-setup(8)` of TLS certificates
|
|
|
|
for the interaction between `unbound(8)` and `unbound-control(8)`, as well as
|
|
|
|
their inclusion in the configuration file.
|
|
|
|
|
2021-05-12 12:48:57 +00:00
|
|
|
disable-ip4
|
|
|
|
Disable answering queries over IPv4.
|
|
|
|
|
|
|
|
disable-ip6
|
|
|
|
Disable answering queries over IPv6.
|
2020-06-07 06:46:18 +00:00
|
|
|
|
2020-06-03 12:58:43 +00:00
|
|
|
EXAMPLES
|
|
|
|
--------
|
|
|
|
|
|
|
|
.. code-block:: sh
|
|
|
|
|
2021-05-12 12:21:03 +00:00
|
|
|
# Setup two resolvers, one with dns64, the other without.
|
|
|
|
__unbound unbound \
|
|
|
|
--dns64 \
|
|
|
|
--ip-transparent \
|
|
|
|
--interface "$address" \
|
|
|
|
--access-control "$address/64 allow" \
|
|
|
|
--enable-rc \
|
|
|
|
--control-interface "/var/run/unbound_control.sock"
|
|
|
|
|
|
|
|
__unbound unbound6only \
|
|
|
|
--ip-transparent \
|
|
|
|
--interface "$addresstwo" \
|
|
|
|
--access-control "$addresstwo/64 allow" \
|
|
|
|
--forward-zone "example.com,1.1.1.1,2.2.2.2"
|
2021-05-11 10:00:02 +00:00
|
|
|
|
2020-06-03 12:58:43 +00:00
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
2021-05-11 10:00:02 +00:00
|
|
|
`unbound(8)`
|
|
|
|
`unbound.conf(5)`
|
|
|
|
`unbound-control(8)`
|
2020-06-03 12:58:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
AUTHORS
|
|
|
|
-------
|
2021-05-11 10:00:02 +00:00
|
|
|
Joachim Desroches <joachim.desroches@epfl.ch>
|
2020-06-03 12:58:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
COPYING
|
|
|
|
-------
|
2021-05-11 10:00:02 +00:00
|
|
|
Copyright \(C) 2021 Joachim Desroches. You can redistribute it
|
2020-06-03 12:58:43 +00:00
|
|
|
and/or modify it under the terms of the GNU General Public License as
|
|
|
|
published by the Free Software Foundation, either version 3 of the
|
|
|
|
License, or (at your option) any later version.
|