UNWIND.CONF(5) | File Formats Manual | UNWIND.CONF(5) |
unwind.conf
—
validating DNS resolver configuration file
The unwind(8) daemon is a validating DNS resolver.
The unwind.conf
config file is divided
into the following main sections:
Additional configuration files can be included with the
include
keyword.
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 }
block
list
file
[log
]unwind
answers with a return code
of REFUSED
. With log
blocked queries are logged.forwarder
{address [port
number] [[authentication name
name] DoT
] ...}port
defaults to 53. If
DoT
is specified, use DNS over TLS when sending
queries to the server at address. The default
port
is 853. name validates
the certificate of the DNS over TLS server.preference
{type ...}stub
autoconf
oDoT-autoconf
unwind
tries to opportunistically use DNS over TLS.DoT
unwind.conf
.forwarder
unwind.conf
.oDoT-forwarder
unwind.conf
.
unwind
tries to opportunistically use DNS over
TLS.recursor
unwind
itself recursively resolves names.The default preference is DoT oDoT-forwarder
forwarder recursor oDoT-autoconf autoconf stub
.
force
[accept bogus
] type
{name ...}accept
bogus
is specified, validation is not enforced.Block requests for domains in /etc/blocklist and log each blocked request:
block list "/etc/blocklist" log
Define a DNS over TLS (DoT) forwarder and make it the preferred resolver:
forwarder { 192.168.1.250 port 8080 authentication name "resolver.local" DoT } preference { DoT }
Where a domain requires a specific nameserver and it may only exist in a nameserver available on the local network, force unwind(8) to use a specific resolver type:
force autoconf { domain.local }
The unwind.conf
file format first appeared
in OpenBSD 6.5.
March 31, 2022 | OpenBSD-current |