NAME
unwind.conf
—
validating DNS resolver configuration
file
DESCRIPTION
The unwind(8) daemon is a validating DNS resolver.
The unwind.conf
config file is divided
into the following main sections:
- Macros
- User-defined variables may be defined and used later, simplifying the configuration file.
- Global Configuration
- Global settings for unwind(8).
Additional configuration files can be included with the
include
keyword.
MACROS
Macros can be defined that will later be expanded in context.
Macro names must start with a letter, digit, or underscore, and may contain
any of those characters. Macro names may not be reserved words (for example,
forwarder
, port
, or
DoT
). Macros are not expanded inside quotes.
For example:
fwd1=192.0.2.53 fwd2=192.0.2.153 forwarder { $fwd1 $fwd2 }
GLOBAL CONFIGURATION
block list
file [log
]- A file containing domains to block, one per line. If a domain from this
list is queried
unwind
answers with a return code ofrefused
. Withlog
blocked queries are logged. forwarder
{address [port
number] [[authentication name
name]DoT
] ...}- A list of addresses of DNS name servers to forward queries to.
port
defaults to 53. IfDoT
is specified, use DNS over TLS when sending queries to the server at address. The defaultport
is 853. name validates the certificate of the DNS over TLS server. preference
{type ...}- A list of DNS name server types to specify the order in which name servers
are picked when measured round-trip time medians are equal. Additionally,
the first mentioned type gets a time bonus. Validating name servers are
always picked over non-validating name servers. DNS name server types are:
stub
- Name servers learned via DHCP, queried using the libc functions. See asr_run(3). Will never validate. Useful when running behind broken middle boxes that do not like edns0.
dhcp
- Name servers learned via DHCP or SLAAC.
oDoT-dhcp
- Name servers learned via DHCP or SLAAC.
unwind
tries to opportunistically use DNS over TLS. DoT
- DNS over TLS name servers configured in
unwind.conf
. forwarder
- Name servers configured in
unwind.conf
. oDoT-forwarder
- Name servers configured in
unwind.conf
.unwind
tries to opportunistically use DNS over TLS. recursor
unwind
itself recursively resolves names.
The default preference is
DoT forwarder recursor dhcp stub
. force
[accept bogus
] type {name ...}- Force resolving of name and its subdomains by the
given resolver type. If
accept bogus
is specified validation is not enforced.
FILES
- /etc/unwind.conf
- The default unwind(8) configuration file.
SEE ALSO
HISTORY
The unwind.conf
file format first appeared
in OpenBSD 6.5.