|
|
182ead |
#
|
|
|
182ead |
# Example configuration file.
|
|
|
182ead |
#
|
|
|
182ead |
# See unbound.conf(5) man page
|
|
|
182ead |
#
|
|
|
182ead |
# this is a comment.
|
|
|
182ead |
|
|
|
182ead |
# Use this anywhere in the file to include other text into this file.
|
|
|
182ead |
#include: "otherfile.conf"
|
|
|
182ead |
|
|
|
182ead |
# Use this anywhere in the file to include other text, that explicitly starts a
|
|
|
182ead |
# clause, into this file. Text after this directive needs to start a clause.
|
|
|
182ead |
#include-toplevel: "otherfile.conf"
|
|
|
182ead |
|
|
|
182ead |
# The server clause sets the main parameters.
|
|
|
182ead |
server:
|
|
|
182ead |
# whitespace is not necessary, but looks cleaner.
|
|
|
182ead |
|
|
|
182ead |
# verbosity number, 0 is least verbose. 1 is default.
|
|
|
182ead |
verbosity: 1
|
|
|
182ead |
|
|
|
182ead |
# print statistics to the log (for every thread) every N seconds.
|
|
|
182ead |
# Set to "" or 0 to disable. Default is disabled.
|
|
|
182ead |
# Needs to be disabled for munin plugin
|
|
|
182ead |
statistics-interval: 0
|
|
|
182ead |
|
|
|
182ead |
# enable shm for stats, default no. if you enable also enable
|
|
|
182ead |
# statistics-interval, every time it also writes stats to the
|
|
|
182ead |
# shared memory segment keyed with shm-key.
|
|
|
182ead |
# shm-enable: no
|
|
|
182ead |
|
|
|
182ead |
# shm for stats uses this key, and key+1 for the shared mem segment.
|
|
|
182ead |
# shm-key: 11777
|
|
|
182ead |
|
|
|
182ead |
# enable cumulative statistics, without clearing them after printing.
|
|
|
182ead |
# Needs to be disabled for munin plugin
|
|
|
182ead |
statistics-cumulative: no
|
|
|
182ead |
|
|
|
182ead |
# enable extended statistics (query types, answer codes, status)
|
|
|
182ead |
# printed from unbound-control. default off, because of speed.
|
|
|
182ead |
# Needs to be enabled for munin plugin
|
|
|
182ead |
extended-statistics: yes
|
|
|
182ead |
|
|
|
182ead |
# number of threads to create. 1 disables threading.
|
|
|
182ead |
num-threads: 4
|
|
|
182ead |
|
|
|
182ead |
# specify the interfaces to answer queries from by ip-address.
|
|
|
182ead |
# The default is to listen to localhost (127.0.0.1 and ::1).
|
|
|
182ead |
# specify 0.0.0.0 and ::0 to bind to all available interfaces.
|
|
|
182ead |
# specify every interface[@port] on a new 'interface:' labelled line.
|
|
|
182ead |
# The listen interfaces are not changed on reload, only on restart.
|
|
|
182ead |
# interface: 0.0.0.0
|
|
|
182ead |
# interface: ::0
|
|
|
182ead |
# interface: 192.0.2.153
|
|
|
182ead |
# interface: 192.0.2.154
|
|
|
182ead |
# interface: 192.0.2.154@5003
|
|
|
182ead |
# interface: 2001:DB8::5
|
|
|
182ead |
#
|
|
|
182ead |
# for dns over tls and raw dns over port 80
|
|
|
182ead |
# interface: 0.0.0.0@443
|
|
|
182ead |
# interface: ::0@443
|
|
|
182ead |
# interface: 0.0.0.0@80
|
|
|
182ead |
# interface: ::0@80
|
|
|
182ead |
|
|
|
182ead |
# enable this feature to copy the source address of queries to reply.
|
|
|
182ead |
# Socket options are not supported on all platforms. experimental.
|
|
|
182ead |
# interface-automatic: yes
|
|
|
182ead |
#
|
|
|
182ead |
# NOTE: Enable this option when specifying interface 0.0.0.0 or ::0
|
|
|
182ead |
# NOTE: Disabled per Fedora policy not to listen to * on default install
|
|
|
182ead |
# NOTE: If deploying on non-default port, eg 80/443, this needs to be disabled
|
|
|
182ead |
interface-automatic: no
|
|
|
182ead |
|
|
|
182ead |
# port to answer queries from
|
|
|
182ead |
# port: 53
|
|
|
182ead |
|
|
|
182ead |
# specify the interfaces to send outgoing queries to authoritative
|
|
|
182ead |
# server from by ip-address. If none, the default (all) interface
|
|
|
182ead |
# is used. Specify every interface on a 'outgoing-interface:' line.
|
|
|
182ead |
# outgoing-interface: 192.0.2.153
|
|
|
182ead |
# outgoing-interface: 2001:DB8::5
|
|
|
182ead |
# outgoing-interface: 2001:DB8::6
|
|
|
182ead |
|
|
|
182ead |
# Specify a netblock to use remainder 64 bits as random bits for
|
|
|
182ead |
# upstream queries. Uses freebind option (Linux).
|
|
|
182ead |
# outgoing-interface: 2001:DB8::/64
|
|
|
182ead |
# Also (Linux:) ip -6 addr add 2001:db8::/64 dev lo
|
|
|
182ead |
# And: ip -6 route add local 2001:db8::/64 dev lo
|
|
|
182ead |
# And set prefer-ip6: yes to use the ip6 randomness from a netblock.
|
|
|
182ead |
# Set this to yes to prefer ipv6 upstream servers over ipv4.
|
|
|
182ead |
# prefer-ip6: no
|
|
|
182ead |
|
|
|
182ead |
# Prefer ipv4 upstream servers, even if ipv6 is available.
|
|
|
182ead |
# prefer-ip4: no
|
|
|
182ead |
|
|
|
182ead |
# number of ports to allocate per thread, determines the size of the
|
|
|
182ead |
# port range that can be open simultaneously. About double the
|
|
|
182ead |
# num-queries-per-thread, or, use as many as the OS will allow you.
|
|
|
182ead |
# outgoing-range: 4096
|
|
|
182ead |
|
|
|
182ead |
# permit unbound to use this port number or port range for
|
|
|
182ead |
# making outgoing queries, using an outgoing interface.
|
|
|
182ead |
# Only ephemeral ports are allowed by SElinux
|
|
|
182ead |
outgoing-port-permit: 32768-60999
|
|
|
182ead |
|
|
|
182ead |
# deny unbound the use this of port number or port range for
|
|
|
182ead |
# making outgoing queries, using an outgoing interface.
|
|
|
182ead |
# Use this to make sure unbound does not grab a UDP port that some
|
|
|
182ead |
# other server on this computer needs. The default is to avoid
|
|
|
182ead |
# IANA-assigned port numbers.
|
|
|
182ead |
# If multiple outgoing-port-permit and outgoing-port-avoid options
|
|
|
182ead |
# are present, they are processed in order.
|
|
|
182ead |
# Our SElinux policy does not allow non-ephemeral ports to be used
|
|
|
182ead |
outgoing-port-avoid: 0-32767
|
|
|
182ead |
outgoing-port-avoid: 61000-65535
|
|
|
182ead |
|
|
|
182ead |
# number of outgoing simultaneous tcp buffers to hold per thread.
|
|
|
182ead |
# outgoing-num-tcp: 10
|
|
|
182ead |
|
|
|
182ead |
# number of incoming simultaneous tcp buffers to hold per thread.
|
|
|
182ead |
# incoming-num-tcp: 10
|
|
|
182ead |
|
|
|
182ead |
# buffer size for UDP port 53 incoming (SO_RCVBUF socket option).
|
|
|
182ead |
# 0 is system default. Use 4m to catch query spikes for busy servers.
|
|
|
182ead |
# so-rcvbuf: 0
|
|
|
182ead |
|
|
|
182ead |
# buffer size for UDP port 53 outgoing (SO_SNDBUF socket option).
|
|
|
182ead |
# 0 is system default. Use 4m to handle spikes on very busy servers.
|
|
|
182ead |
# so-sndbuf: 0
|
|
|
182ead |
|
|
|
182ead |
# use SO_REUSEPORT to distribute queries over threads.
|
|
|
182ead |
# at extreme load it could be better to turn it off to distribute even.
|
|
|
182ead |
so-reuseport: yes
|
|
|
182ead |
|
|
|
182ead |
# use IP_TRANSPARENT so the interface: addresses can be non-local
|
|
|
182ead |
# and you can config non-existing IPs that are going to work later on
|
|
|
182ead |
# (uses IP_BINDANY on FreeBSD).
|
|
|
182ead |
ip-transparent: yes
|
|
|
182ead |
|
|
|
182ead |
# use IP_FREEBIND so the interface: addresses can be non-local
|
|
|
182ead |
# and you can bind to nonexisting IPs and interfaces that are down.
|
|
|
182ead |
# Linux only. On Linux you also have ip-transparent that is similar.
|
|
|
182ead |
# ip-freebind: no
|
|
|
182ead |
|
|
|
182ead |
# the value of the Differentiated Services Codepoint (DSCP)
|
|
|
182ead |
# in the differentiated services field (DS) of the outgoing
|
|
|
182ead |
# IP packets
|
|
|
182ead |
# ip-dscp: 0
|
|
|
182ead |
|
|
|
182ead |
# EDNS reassembly buffer to advertise to UDP peers (the actual buffer
|
|
|
182ead |
# is set with msg-buffer-size). 1472 can solve fragmentation (timeouts)
|
|
|
182ead |
# edns-buffer-size: 1232
|
|
|
182ead |
|
|
|
182ead |
# Maximum UDP response size (not applied to TCP response).
|
|
|
182ead |
# Suggested values are 512 to 4096. Default is 4096. 65536 disables it.
|
|
|
182ead |
# 3072 causes +dnssec any isc.org queries to need TC=1.
|
|
|
182ead |
# Helps mitigating DDOS
|
|
|
182ead |
max-udp-size: 3072
|
|
|
182ead |
|
|
|
182ead |
# max memory to use for stream(tcp and tls) waiting result buffers.
|
|
|
182ead |
# stream-wait-size: 4m
|
|
|
182ead |
|
|
|
182ead |
# buffer size for handling DNS data. No messages larger than this
|
|
|
182ead |
# size can be sent or received, by UDP or TCP. In bytes.
|
|
|
182ead |
# msg-buffer-size: 65552
|
|
|
182ead |
|
|
|
182ead |
# the amount of memory to use for the message cache.
|
|
|
182ead |
# plain value in bytes or you can append k, m or G. default is "4Mb".
|
|
|
182ead |
# msg-cache-size: 4m
|
|
|
182ead |
|
|
|
182ead |
# the number of slabs to use for the message cache.
|
|
|
182ead |
# the number of slabs must be a power of 2.
|
|
|
182ead |
# more slabs reduce lock contention, but fragment memory usage.
|
|
|
182ead |
# msg-cache-slabs: 4
|
|
|
182ead |
|
|
|
182ead |
# the number of queries that a thread gets to service.
|
|
|
182ead |
# num-queries-per-thread: 1024
|
|
|
182ead |
|
|
|
182ead |
# if very busy, 50% queries run to completion, 50% get timeout in msec
|
|
|
182ead |
# jostle-timeout: 200
|
|
|
182ead |
|
|
|
182ead |
# msec to wait before close of port on timeout UDP. 0 disables.
|
|
|
182ead |
# delay-close: 0
|
|
|
182ead |
|
|
|
182ead |
# perform connect for UDP sockets to mitigate ICMP side channel.
|
|
|
182ead |
# udp-connect: yes
|
|
|
182ead |
|
|
|
182ead |
# msec for waiting for an unknown server to reply. Increase if you
|
|
|
182ead |
# are behind a slow satellite link, to eg. 1128.
|
|
|
182ead |
# unknown-server-time-limit: 376
|
|
|
182ead |
|
|
|
182ead |
# the amount of memory to use for the RRset cache.
|
|
|
182ead |
# plain value in bytes or you can append k, m or G. default is "4Mb".
|
|
|
182ead |
# rrset-cache-size: 4m
|
|
|
182ead |
|
|
|
182ead |
# the number of slabs to use for the RRset cache.
|
|
|
182ead |
# the number of slabs must be a power of 2.
|
|
|
182ead |
# more slabs reduce lock contention, but fragment memory usage.
|
|
|
182ead |
# rrset-cache-slabs: 4
|
|
|
182ead |
|
|
|
182ead |
# the time to live (TTL) value lower bound, in seconds. Default 0.
|
|
|
182ead |
# If more than an hour could easily give trouble due to stale data.
|
|
|
182ead |
# cache-min-ttl: 0
|
|
|
182ead |
|
|
|
182ead |
# the time to live (TTL) value cap for RRsets and messages in the
|
|
|
182ead |
# cache. Items are not cached for longer. In seconds.
|
|
|
182ead |
# cache-max-ttl: 86400
|
|
|
182ead |
|
|
|
182ead |
# the time to live (TTL) value cap for negative responses in the cache
|
|
|
182ead |
# cache-max-negative-ttl: 3600
|
|
|
182ead |
|
|
|
182ead |
# the time to live (TTL) value for cached roundtrip times, lameness and
|
|
|
182ead |
# EDNS version information for hosts. In seconds.
|
|
|
182ead |
# infra-host-ttl: 900
|
|
|
182ead |
|
|
|
182ead |
# minimum wait time for responses, increase if uplink is long. In msec.
|
|
|
182ead |
# infra-cache-min-rtt: 50
|
|
|
182ead |
|
|
|
182ead |
# enable to make server probe down hosts more frequently.
|
|
|
182ead |
# infra-keep-probing: no
|
|
|
182ead |
|
|
|
182ead |
# the number of slabs to use for the Infrastructure cache.
|
|
|
182ead |
# the number of slabs must be a power of 2.
|
|
|
182ead |
# more slabs reduce lock contention, but fragment memory usage.
|
|
|
182ead |
# infra-cache-slabs: 4
|
|
|
182ead |
|
|
|
182ead |
# the maximum number of hosts that are cached (roundtrip, EDNS, lame).
|
|
|
182ead |
# infra-cache-numhosts: 10000
|
|
|
182ead |
|
|
|
182ead |
# define a number of tags here, use with local-zone, access-control.
|
|
|
182ead |
# repeat the define-tag statement to add additional tags.
|
|
|
182ead |
# define-tag: "tag1 tag2 tag3"
|
|
|
182ead |
|
|
|
182ead |
# Enable IPv4, "yes" or "no".
|
|
|
182ead |
# do-ip4: yes
|
|
|
182ead |
|
|
|
182ead |
# Enable IPv6, "yes" or "no".
|
|
|
182ead |
# do-ip6: yes
|
|
|
182ead |
|
|
|
182ead |
# Enable UDP, "yes" or "no".
|
|
|
182ead |
# NOTE: if setting up an unbound on tls443 for public use, you might want to
|
|
|
182ead |
# disable UDP to avoid being used in DNS amplification attacks.
|
|
|
182ead |
# do-udp: yes
|
|
|
182ead |
|
|
|
182ead |
# Enable TCP, "yes" or "no".
|
|
|
182ead |
# do-tcp: yes
|
|
|
182ead |
|
|
|
182ead |
# upstream connections use TCP only (and no UDP), "yes" or "no"
|
|
|
182ead |
# useful for tunneling scenarios, default no.
|
|
|
182ead |
# tcp-upstream: no
|
|
|
182ead |
|
|
|
182ead |
# upstream connections also use UDP (even if do-udp is no).
|
|
|
182ead |
# useful if if you want UDP upstream, but don't provide UDP downstream.
|
|
|
182ead |
# udp-upstream-without-downstream: no
|
|
|
182ead |
|
|
|
182ead |
# Maximum segment size (MSS) of TCP socket on which the server
|
|
|
182ead |
# responds to queries. Default is 0, system default MSS.
|
|
|
182ead |
# tcp-mss: 0
|
|
|
182ead |
|
|
|
182ead |
# Maximum segment size (MSS) of TCP socket for outgoing queries.
|
|
|
182ead |
# Default is 0, system default MSS.
|
|
|
182ead |
# outgoing-tcp-mss: 0
|
|
|
182ead |
|
|
|
182ead |
# Idle TCP timeout, connection closed in milliseconds
|
|
|
182ead |
# tcp-idle-timeout: 30000
|
|
|
182ead |
|
|
|
182ead |
# Enable EDNS TCP keepalive option.
|
|
|
182ead |
edns-tcp-keepalive: yes
|
|
|
182ead |
|
|
|
182ead |
# Timeout for EDNS TCP keepalive, in msec.
|
|
|
182ead |
# edns-tcp-keepalive-timeout: 120000
|
|
|
182ead |
|
|
|
182ead |
# Fedora note: do not activate this - can cause a crash
|
|
|
182ead |
# Use systemd socket activation for UDP, TCP, and control sockets.
|
|
|
182ead |
# use-systemd: no
|
|
|
182ead |
|
|
|
182ead |
# Detach from the terminal, run in background, "yes" or "no".
|
|
|
182ead |
# Set the value to "no" when unbound runs as systemd service.
|
|
|
182ead |
# do-daemonize: yes
|
|
|
182ead |
|
|
|
182ead |
# control which clients are allowed to make (recursive) queries
|
|
|
182ead |
# to this server. Specify classless netblocks with /size and action.
|
|
|
182ead |
# By default everything is refused, except for localhost.
|
|
|
182ead |
# Choose deny (drop message), refuse (polite error reply),
|
|
|
182ead |
# allow (recursive ok), allow_setrd (recursive ok, rd bit is forced on),
|
|
|
182ead |
# allow_snoop (recursive and nonrecursive ok)
|
|
|
182ead |
# deny_non_local (drop queries unless can be answered from local-data)
|
|
|
182ead |
# refuse_non_local (like deny_non_local but polite error reply).
|
|
|
182ead |
# access-control: 0.0.0.0/0 refuse
|
|
|
182ead |
# access-control: 127.0.0.0/8 allow
|
|
|
182ead |
# access-control: ::0/0 refuse
|
|
|
182ead |
# access-control: ::1 allow
|
|
|
182ead |
# access-control: ::ffff:127.0.0.1 allow
|
|
|
182ead |
|
|
|
182ead |
# tag access-control with list of tags (in "" with spaces between)
|
|
|
182ead |
# Clients using this access control element use localzones that
|
|
|
182ead |
# are tagged with one of these tags.
|
|
|
182ead |
# access-control-tag: 192.0.2.0/24 "tag2 tag3"
|
|
|
182ead |
|
|
|
182ead |
# set action for particular tag for given access control element
|
|
|
182ead |
# if you have multiple tag values, the tag used to lookup the action
|
|
|
182ead |
# is the first tag match between access-control-tag and local-zone-tag
|
|
|
182ead |
# where "first" comes from the order of the define-tag values.
|
|
|
182ead |
# access-control-tag-action: 192.0.2.0/24 tag3 refuse
|
|
|
182ead |
|
|
|
182ead |
# set redirect data for particular tag for access control element
|
|
|
182ead |
# access-control-tag-data: 192.0.2.0/24 tag2 "A 127.0.0.1"
|
|
|
182ead |
|
|
|
182ead |
# Set view for access control element
|
|
|
182ead |
# access-control-view: 192.0.2.0/24 viewname
|
|
|
182ead |
|
|
|
182ead |
# if given, a chroot(2) is done to the given directory.
|
|
|
182ead |
# i.e. you can chroot to the working directory, for example,
|
|
|
182ead |
# for extra security, but make sure all files are in that directory.
|
|
|
182ead |
#
|
|
|
182ead |
# If chroot is enabled, you should pass the configfile (from the
|
|
|
182ead |
# commandline) as a full path from the original root. After the
|
|
|
182ead |
# chroot has been performed the now defunct portion of the config
|
|
|
182ead |
# file path is removed to be able to reread the config after a reload.
|
|
|
182ead |
#
|
|
|
182ead |
# All other file paths (working dir, logfile, roothints, and
|
|
|
182ead |
# key files) can be specified in several ways:
|
|
|
182ead |
# o as an absolute path relative to the new root.
|
|
|
182ead |
# o as a relative path to the working directory.
|
|
|
182ead |
# o as an absolute path relative to the original root.
|
|
|
182ead |
# In the last case the path is adjusted to remove the unused portion.
|
|
|
182ead |
#
|
|
|
182ead |
# The pid file can be absolute and outside of the chroot, it is
|
|
|
182ead |
# written just prior to performing the chroot and dropping permissions.
|
|
|
182ead |
#
|
|
|
182ead |
# Additionally, unbound may need to access /dev/urandom (for entropy).
|
|
|
182ead |
# How to do this is specific to your OS.
|
|
|
182ead |
#
|
|
|
182ead |
# If you give "" no chroot is performed. The path must not end in a /.
|
|
|
182ead |
# chroot: "/var/lib/unbound"
|
|
|
182ead |
chroot: ""
|
|
|
182ead |
|
|
|
182ead |
# if given, user privileges are dropped (after binding port),
|
|
|
182ead |
# and the given username is assumed. Default is user "unbound".
|
|
|
182ead |
# If you give "" no privileges are dropped.
|
|
|
182ead |
username: "unbound"
|
|
|
182ead |
|
|
|
182ead |
# the working directory. The relative files in this config are
|
|
|
182ead |
# relative to this directory. If you give "" the working directory
|
|
|
182ead |
# is not changed.
|
|
|
182ead |
# If you give a server: directory: dir before include: file statements
|
|
|
182ead |
# then those includes can be relative to the working directory.
|
|
|
182ead |
directory: "/etc/unbound"
|
|
|
182ead |
|
|
|
182ead |
# the log file, "" means log to stderr.
|
|
|
182ead |
# Use of this option sets use-syslog to "no".
|
|
|
182ead |
# logfile: ""
|
|
|
182ead |
|
|
|
182ead |
# Log to syslog(3) if yes. The log facility LOG_DAEMON is used to
|
|
|
182ead |
# log to. If yes, it overrides the logfile.
|
|
|
182ead |
# use-syslog: yes
|
|
|
182ead |
|
|
|
182ead |
# Log identity to report. if empty, defaults to the name of argv[0]
|
|
|
182ead |
# (usually "unbound").
|
|
|
182ead |
# log-identity: ""
|
|
|
182ead |
|
|
|
182ead |
# print UTC timestamp in ascii to logfile, default is epoch in seconds.
|
|
|
182ead |
log-time-ascii: yes
|
|
|
182ead |
|
|
|
182ead |
# print one line with time, IP, name, type, class for every query.
|
|
|
182ead |
# log-queries: no
|
|
|
182ead |
|
|
|
182ead |
# print one line per reply, with time, IP, name, type, class, rcode,
|
|
|
182ead |
# timetoresolve, fromcache and responsesize.
|
|
|
182ead |
# log-replies: no
|
|
|
182ead |
|
|
|
182ead |
# log with tag 'query' and 'reply' instead of 'info' for
|
|
|
182ead |
# filtering log-queries and log-replies from the log.
|
|
|
182ead |
# log-tag-queryreply: no
|
|
|
182ead |
|
|
|
182ead |
# log the local-zone actions, like local-zone type inform is enabled
|
|
|
182ead |
# also for the other local zone types.
|
|
|
182ead |
# log-local-actions: no
|
|
|
182ead |
|
|
|
182ead |
# print log lines that say why queries return SERVFAIL to clients.
|
|
|
182ead |
# log-servfail: no
|
|
|
182ead |
|
|
|
182ead |
# the pid file. Can be an absolute path outside of chroot/work dir.
|
|
|
182ead |
pidfile: "/var/run/unbound/unbound.pid"
|
|
|
182ead |
|
|
|
182ead |
# file to read root hints from.
|
|
|
182ead |
# get one from https://www.internic.net/domain/named.cache
|
|
|
182ead |
# root-hints: ""
|
|
|
182ead |
|
|
|
182ead |
# enable to not answer id.server and hostname.bind queries.
|
|
|
182ead |
# hide-identity: no
|
|
|
182ead |
|
|
|
182ead |
# enable to not answer version.server and version.bind queries.
|
|
|
182ead |
# hide-version: no
|
|
|
182ead |
|
|
|
182ead |
# NSID identity (hex string, or "ascii_somestring"). default disabled.
|
|
|
182ead |
# nsid: "aabbccdd"
|
|
|
182ead |
|
|
|
182ead |
# enable to not answer trustanchor.unbound queries.
|
|
|
182ead |
# hide-trustanchor: no
|
|
|
182ead |
|
|
|
182ead |
# the identity to report. Leave "" or default to return hostname.
|
|
|
182ead |
# identity: ""
|
|
|
182ead |
|
|
|
182ead |
# the version to report. Leave "" or default to return package version.
|
|
|
182ead |
# version: ""
|
|
|
182ead |
|
|
|
182ead |
# the target fetch policy.
|
|
|
182ead |
# series of integers describing the policy per dependency depth.
|
|
|
182ead |
# The number of values in the list determines the maximum dependency
|
|
|
182ead |
# depth the recursor will pursue before giving up. Each integer means:
|
|
|
182ead |
# -1 : fetch all targets opportunistically,
|
|
|
182ead |
# 0: fetch on demand,
|
|
|
182ead |
# positive value: fetch that many targets opportunistically.
|
|
|
182ead |
# Enclose the list of numbers between quotes ("").
|
|
|
182ead |
# target-fetch-policy: "3 2 1 0 0"
|
|
|
182ead |
|
|
|
182ead |
# Harden against very small EDNS buffer sizes.
|
|
|
182ead |
# harden-short-bufsize: yes
|
|
|
182ead |
|
|
|
182ead |
# Harden against unseemly large queries.
|
|
|
182ead |
# harden-large-queries: no
|
|
|
182ead |
|
|
|
182ead |
# Harden against out of zone rrsets, to avoid spoofing attempts.
|
|
|
182ead |
harden-glue: yes
|
|
|
182ead |
|
|
|
182ead |
# Harden against receiving dnssec-stripped data. If you turn it
|
|
|
182ead |
# off, failing to validate dnskey data for a trustanchor will
|
|
|
182ead |
# trigger insecure mode for that zone (like without a trustanchor).
|
|
|
182ead |
# Default on, which insists on dnssec data for trust-anchored zones.
|
|
|
182ead |
harden-dnssec-stripped: yes
|
|
|
182ead |
|
|
|
182ead |
# Harden against queries that fall under dnssec-signed nxdomain names.
|
|
|
182ead |
harden-below-nxdomain: yes
|
|
|
182ead |
|
|
|
182ead |
# Harden the referral path by performing additional queries for
|
|
|
182ead |
# infrastructure data. Validates the replies (if possible).
|
|
|
182ead |
# Default off, because the lookups burden the server. Experimental
|
|
|
182ead |
# implementation of draft-wijngaards-dnsext-resolver-side-mitigation.
|
|
|
182ead |
harden-referral-path: yes
|
|
|
182ead |
|
|
|
182ead |
# Harden against algorithm downgrade when multiple algorithms are
|
|
|
182ead |
# advertised in the DS record. If no, allows the weakest algorithm
|
|
|
182ead |
# to validate the zone.
|
|
|
182ead |
# harden-algo-downgrade: no
|
|
|
182ead |
|
|
|
182ead |
# Sent minimum amount of information to upstream servers to enhance
|
|
|
182ead |
# privacy. Only sent minimum required labels of the QNAME and set QTYPE
|
|
|
182ead |
# to A when possible.
|
|
|
182ead |
qname-minimisation: yes
|
|
|
182ead |
|
|
|
182ead |
# QNAME minimisation in strict mode. Do not fall-back to sending full
|
|
|
182ead |
# QNAME to potentially broken nameservers. A lot of domains will not be
|
|
|
182ead |
# resolvable when this option in enabled.
|
|
|
182ead |
# This option only has effect when qname-minimisation is enabled.
|
|
|
182ead |
# qname-minimisation-strict: no
|
|
|
182ead |
|
|
|
182ead |
# Aggressive NSEC uses the DNSSEC NSEC chain to synthesize NXDOMAIN
|
|
|
182ead |
# and other denials, using information from previous NXDOMAINs answers.
|
|
|
182ead |
aggressive-nsec: yes
|
|
|
182ead |
|
|
|
182ead |
# Use 0x20-encoded random bits in the query to foil spoof attempts.
|
|
|
182ead |
# This feature is an experimental implementation of draft dns-0x20.
|
|
|
182ead |
# use-caps-for-id: no
|
|
|
182ead |
|
|
|
182ead |
# Domains (and domains in them) without support for dns-0x20 and
|
|
|
182ead |
# the fallback fails because they keep sending different answers.
|
|
|
182ead |
# caps-exempt: "licdn.com"
|
|
|
182ead |
# caps-exempt: "senderbase.org"
|
|
|
182ead |
|
|
|
182ead |
# Enforce privacy of these addresses. Strips them away from answers.
|
|
|
182ead |
# It may cause DNSSEC validation to additionally mark it as bogus.
|
|
|
182ead |
# Protects against 'DNS Rebinding' (uses browser as network proxy).
|
|
|
182ead |
# Only 'private-domain' and 'local-data' names are allowed to have
|
|
|
182ead |
# these private addresses. No default.
|
|
|
182ead |
# private-address: 10.0.0.0/8
|
|
|
182ead |
# private-address: 172.16.0.0/12
|
|
|
182ead |
# private-address: 192.168.0.0/16
|
|
|
182ead |
# private-address: 169.254.0.0/16
|
|
|
182ead |
# private-address: fd00::/8
|
|
|
182ead |
# private-address: fe80::/10
|
|
|
182ead |
# private-address: ::ffff:0:0/96
|
|
|
182ead |
|
|
|
182ead |
# Allow the domain (and its subdomains) to contain private addresses.
|
|
|
182ead |
# local-data statements are allowed to contain private addresses too.
|
|
|
182ead |
# private-domain: "example.com"
|
|
|
182ead |
|
|
|
182ead |
# If nonzero, unwanted replies are not only reported in statistics,
|
|
|
182ead |
# but also a running total is kept per thread. If it reaches the
|
|
|
182ead |
# threshold, a warning is printed and a defensive action is taken,
|
|
|
182ead |
# the cache is cleared to flush potential poison out of it.
|
|
|
182ead |
# A suggested value is 10000000, the default is 0 (turned off).
|
|
|
182ead |
unwanted-reply-threshold: 10000000
|
|
|
182ead |
|
|
|
182ead |
# Do not query the following addresses. No DNS queries are sent there.
|
|
|
182ead |
# List one address per entry. List classless netblocks with /size,
|
|
|
182ead |
# do-not-query-address: 127.0.0.1/8
|
|
|
182ead |
# do-not-query-address: ::1
|
|
|
182ead |
|
|
|
182ead |
# if yes, the above default do-not-query-address entries are present.
|
|
|
182ead |
# if no, localhost can be queried (for testing and debugging).
|
|
|
182ead |
# do-not-query-localhost: yes
|
|
|
182ead |
|
|
|
182ead |
# if yes, perform prefetching of almost expired message cache entries.
|
|
|
182ead |
prefetch: yes
|
|
|
182ead |
|
|
|
182ead |
# if yes, perform key lookups adjacent to normal lookups.
|
|
|
182ead |
prefetch-key: yes
|
|
|
182ead |
|
|
|
182ead |
# deny queries of type ANY with an empty response.
|
|
|
182ead |
deny-any: yes
|
|
|
182ead |
|
|
|
182ead |
# if yes, Unbound rotates RRSet order in response.
|
|
|
182ead |
rrset-roundrobin: yes
|
|
|
182ead |
|
|
|
182ead |
# if yes, Unbound doesn't insert authority/additional sections
|
|
|
182ead |
# into response messages when those sections are not required.
|
|
|
182ead |
minimal-responses: yes
|
|
|
182ead |
|
|
|
182ead |
# true to disable DNSSEC lameness check in iterator.
|
|
|
182ead |
# disable-dnssec-lame-check: no
|
|
|
182ead |
|
|
|
182ead |
# module configuration of the server. A string with identifiers
|
|
|
182ead |
# separated by spaces. Syntax: "[dns64] [validator] iterator"
|
|
|
182ead |
# most modules have to be listed at the beginning of the line,
|
|
|
182ead |
# except cachedb(just before iterator), and python (at the beginning,
|
|
|
182ead |
# or, just before the iterator).
|
|
|
182ead |
module-config: "ipsecmod validator iterator"
|
|
|
182ead |
|
|
|
182ead |
# File with trusted keys, kept uptodate using RFC5011 probes,
|
|
|
182ead |
# initial file like trust-anchor-file, then it stores metadata.
|
|
|
182ead |
# Use several entries, one per domain name, to track multiple zones.
|
|
|
182ead |
#
|
|
|
182ead |
# If you want to perform DNSSEC validation, run unbound-anchor before
|
|
|
182ead |
# you start unbound (i.e. in the system boot scripts). And enable:
|
|
|
182ead |
# Please note usage of unbound-anchor root anchor is at your own risk
|
|
|
182ead |
# and under the terms of our LICENSE (see that file in the source).
|
|
|
182ead |
# auto-trust-anchor-file: "/var/lib/unbound/root.key"
|
|
|
182ead |
|
|
|
182ead |
# trust anchor signaling sends a RFC8145 key tag query after priming.
|
|
|
182ead |
trust-anchor-signaling: yes
|
|
|
182ead |
|
|
|
182ead |
# Root key trust anchor sentinel (draft-ietf-dnsop-kskroll-sentinel)
|
|
|
182ead |
root-key-sentinel: yes
|
|
|
182ead |
|
|
|
182ead |
# File with trusted keys for validation. Specify more than one file
|
|
|
182ead |
# with several entries, one file per entry.
|
|
|
182ead |
# Zone file format, with DS and DNSKEY entries.
|
|
|
182ead |
# Note this gets out of date, use auto-trust-anchor-file please.
|
|
|
182ead |
# trust-anchor-file: ""
|
|
|
182ead |
|
|
|
182ead |
# Trusted key for validation. DS or DNSKEY. specify the RR on a
|
|
|
182ead |
# single line, surrounded by "". TTL is ignored. class is IN default.
|
|
|
182ead |
# Note this gets out of date, use auto-trust-anchor-file please.
|
|
|
182ead |
# (These examples are from August 2007 and may not be valid anymore).
|
|
|
182ead |
# trust-anchor: "nlnetlabs.nl. DNSKEY 257 3 5 AQPzzTWMz8qSWIQlfRnPckx2BiVmkVN6LPupO3mbz7FhLSnm26n6iG9N Lby97Ji453aWZY3M5/xJBSOS2vWtco2t8C0+xeO1bc/d6ZTy32DHchpW 6rDH1vp86Ll+ha0tmwyy9QP7y2bVw5zSbFCrefk8qCUBgfHm9bHzMG1U BYtEIQ=="
|
|
|
182ead |
# trust-anchor: "jelte.nlnetlabs.nl. DS 42860 5 1 14D739EB566D2B1A5E216A0BA4D17FA9B038BE4A"
|
|
|
182ead |
|
|
|
182ead |
# File with trusted keys for validation. Specify more than one file
|
|
|
182ead |
# with several entries, one file per entry. Like trust-anchor-file
|
|
|
182ead |
# but has a different file format. Format is BIND-9 style format,
|
|
|
182ead |
# the trusted-keys { name flag proto algo "key"; }; clauses are read.
|
|
|
182ead |
# you need external update procedures to track changes in keys.
|
|
|
182ead |
# trusted-keys-file: ""
|
|
|
182ead |
#
|
|
|
182ead |
trusted-keys-file: /etc/unbound/keys.d/*.key
|
|
|
182ead |
auto-trust-anchor-file: "/var/lib/unbound/root.key"
|
|
|
182ead |
|
|
|
182ead |
# Ignore chain of trust. Domain is treated as insecure.
|
|
|
182ead |
# domain-insecure: "example.com"
|
|
|
182ead |
|
|
|
182ead |
# Override the date for validation with a specific fixed date.
|
|
|
182ead |
# Do not set this unless you are debugging signature inception
|
|
|
182ead |
# and expiration. "" or "0" turns the feature off. -1 ignores date.
|
|
|
182ead |
# val-override-date: ""
|
|
|
182ead |
|
|
|
182ead |
# The time to live for bogus data, rrsets and messages. This avoids
|
|
|
182ead |
# some of the revalidation, until the time interval expires. in secs.
|
|
|
182ead |
# val-bogus-ttl: 60
|
|
|
182ead |
|
|
|
182ead |
# The signature inception and expiration dates are allowed to be off
|
|
|
182ead |
# by 10% of the signature lifetime (expir-incep) from our local clock.
|
|
|
182ead |
# This leeway is capped with a minimum and a maximum. In seconds.
|
|
|
182ead |
# val-sig-skew-min: 3600
|
|
|
182ead |
# val-sig-skew-max: 86400
|
|
|
182ead |
|
|
|
182ead |
# Should additional section of secure message also be kept clean of
|
|
|
182ead |
# unsecure data. Useful to shield the users of this validator from
|
|
|
182ead |
# potential bogus data in the additional section. All unsigned data
|
|
|
182ead |
# in the additional section is removed from secure messages.
|
|
|
182ead |
val-clean-additional: yes
|
|
|
182ead |
|
|
|
182ead |
# Turn permissive mode on to permit bogus messages. Thus, messages
|
|
|
182ead |
# for which security checks failed will be returned to clients,
|
|
|
182ead |
# instead of SERVFAIL. It still performs the security checks, which
|
|
|
182ead |
# result in interesting log files and possibly the AD bit in
|
|
|
182ead |
# replies if the message is found secure. The default is off.
|
|
|
182ead |
# NOTE: TURNING THIS ON DISABLES ALL DNSSEC SECURITY
|
|
|
182ead |
val-permissive-mode: no
|
|
|
182ead |
|
|
|
182ead |
# Ignore the CD flag in incoming queries and refuse them bogus data.
|
|
|
182ead |
# Enable it if the only clients of unbound are legacy servers (w2008)
|
|
|
182ead |
# that set CD but cannot validate themselves.
|
|
|
182ead |
# ignore-cd-flag: no
|
|
|
182ead |
|
|
|
182ead |
# Serve expired responses from cache, with serve-expired-reply-ttl in
|
|
|
182ead |
# the response, and then attempt to fetch the data afresh.
|
|
|
182ead |
serve-expired: yes
|
|
|
182ead |
#
|
|
|
182ead |
# Limit serving of expired responses to configured seconds after
|
|
|
182ead |
# expiration. 0 disables the limit.
|
|
|
182ead |
serve-expired-ttl: 14400
|
|
|
182ead |
#
|
|
|
182ead |
# Set the TTL of expired records to the serve-expired-ttl value after a
|
|
|
182ead |
# failed attempt to retrieve the record from upstream. This makes sure
|
|
|
182ead |
# that the expired records will be served as long as there are queries
|
|
|
182ead |
# for it.
|
|
|
182ead |
# serve-expired-ttl-reset: no
|
|
|
182ead |
|
|
|
182ead |
# TTL value to use when replying with expired data.
|
|
|
182ead |
# serve-expired-reply-ttl: 30
|
|
|
182ead |
#
|
|
|
182ead |
# Time in milliseconds before replying to the client with expired data.
|
|
|
182ead |
# This essentially enables the serve-stale behavior as specified in
|
|
|
182ead |
# RFC 8767 that first tries to resolve before
|
|
|
182ead |
# immediately responding with expired data. 0 disables this behavior.
|
|
|
182ead |
# A recommended value is 1800.
|
|
|
182ead |
# serve-expired-client-timeout: 0
|
|
|
182ead |
|
|
|
182ead |
# Return the original TTL as received from the upstream name server rather
|
|
|
182ead |
# than the decrementing TTL as stored in the cache. Enabling this feature
|
|
|
182ead |
# does not impact cache expiry, it only changes the TTL unbound embeds in
|
|
|
182ead |
# responses to queries. Note that enabling this feature implicitly disables
|
|
|
182ead |
# enforcement of the configured minimum and maximum TTL.
|
|
|
182ead |
# serve-original-ttl: no
|
|
|
182ead |
|
|
|
182ead |
# Have the validator log failed validations for your diagnosis.
|
|
|
182ead |
# 0: off. 1: A line per failed user query. 2: With reason and bad IP.
|
|
|
182ead |
val-log-level: 1
|
|
|
182ead |
|
|
|
182ead |
# It is possible to configure NSEC3 maximum iteration counts per
|
|
|
182ead |
# keysize. Keep this table very short, as linear search is done.
|
|
|
182ead |
# A message with an NSEC3 with larger count is marked insecure.
|
|
|
182ead |
# List in ascending order the keysize and count values.
|
|
|
182ead |
# val-nsec3-keysize-iterations: "1024 150 2048 500 4096 2500"
|
|
|
182ead |
|
|
|
182ead |
# instruct the auto-trust-anchor-file probing to add anchors after ttl.
|
|
|
182ead |
# add-holddown: 2592000 # 30 days
|
|
|
182ead |
|
|
|
182ead |
# instruct the auto-trust-anchor-file probing to del anchors after ttl.
|
|
|
182ead |
# del-holddown: 2592000 # 30 days
|
|
|
182ead |
|
|
|
182ead |
# auto-trust-anchor-file probing removes missing anchors after ttl.
|
|
|
182ead |
# If the value 0 is given, missing anchors are not removed.
|
|
|
182ead |
# keep-missing: 31622400 # 366 days
|
|
|
182ead |
|
|
|
182ead |
# debug option that allows very small holddown times for key rollover,
|
|
|
182ead |
# otherwise the RFC mandates probe intervals must be at least 1 hour.
|
|
|
182ead |
# permit-small-holddown: no
|
|
|
182ead |
|
|
|
182ead |
# the amount of memory to use for the key cache.
|
|
|
182ead |
# plain value in bytes or you can append k, m or G. default is "4Mb".
|
|
|
182ead |
# key-cache-size: 4m
|
|
|
182ead |
|
|
|
182ead |
# the number of slabs to use for the key cache.
|
|
|
182ead |
# the number of slabs must be a power of 2.
|
|
|
182ead |
# more slabs reduce lock contention, but fragment memory usage.
|
|
|
182ead |
# key-cache-slabs: 4
|
|
|
182ead |
|
|
|
182ead |
# the amount of memory to use for the negative cache.
|
|
|
182ead |
# plain value in bytes or you can append k, m or G. default is "1Mb".
|
|
|
182ead |
# neg-cache-size: 1m
|
|
|
182ead |
|
|
|
182ead |
# By default, for a number of zones a small default 'nothing here'
|
|
|
182ead |
# reply is built-in. Query traffic is thus blocked. If you
|
|
|
182ead |
# wish to serve such zone you can unblock them by uncommenting one
|
|
|
182ead |
# of the nodefault statements below.
|
|
|
182ead |
# You may also have to use domain-insecure: zone to make DNSSEC work,
|
|
|
182ead |
# unless you have your own trust anchors for this zone.
|
|
|
182ead |
# local-zone: "localhost." nodefault
|
|
|
182ead |
# local-zone: "127.in-addr.arpa." nodefault
|
|
|
182ead |
# local-zone: "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa." nodefault
|
|
|
182ead |
# local-zone: "onion." nodefault
|
|
|
182ead |
# local-zone: "test." nodefault
|
|
|
182ead |
# local-zone: "invalid." nodefault
|
|
|
182ead |
# local-zone: "10.in-addr.arpa." nodefault
|
|
|
182ead |
# local-zone: "16.172.in-addr.arpa." nodefault
|
|
|
182ead |
# local-zone: "17.172.in-addr.arpa." nodefault
|
|
|
182ead |
# local-zone: "18.172.in-addr.arpa." nodefault
|
|
|
182ead |
# local-zone: "19.172.in-addr.arpa." nodefault
|
|
|
182ead |
# local-zone: "20.172.in-addr.arpa." nodefault
|
|
|
182ead |
# local-zone: "21.172.in-addr.arpa." nodefault
|
|
|
182ead |
# local-zone: "22.172.in-addr.arpa." nodefault
|
|
|
182ead |
# local-zone: "23.172.in-addr.arpa." nodefault
|
|
|
182ead |
# local-zone: "24.172.in-addr.arpa." nodefault
|
|
|
182ead |
# local-zone: "25.172.in-addr.arpa." nodefault
|
|
|
182ead |
# local-zone: "26.172.in-addr.arpa." nodefault
|
|
|
182ead |
# local-zone: "27.172.in-addr.arpa." nodefault
|
|
|
182ead |
# local-zone: "28.172.in-addr.arpa." nodefault
|
|
|
182ead |
# local-zone: "29.172.in-addr.arpa." nodefault
|
|
|
182ead |
# local-zone: "30.172.in-addr.arpa." nodefault
|
|
|
182ead |
# local-zone: "31.172.in-addr.arpa." nodefault
|
|
|
182ead |
# local-zone: "168.192.in-addr.arpa." nodefault
|
|
|
182ead |
# local-zone: "0.in-addr.arpa." nodefault
|
|
|
182ead |
# local-zone: "254.169.in-addr.arpa." nodefault
|
|
|
182ead |
# local-zone: "2.0.192.in-addr.arpa." nodefault
|
|
|
182ead |
# local-zone: "100.51.198.in-addr.arpa." nodefault
|
|
|
182ead |
# local-zone: "113.0.203.in-addr.arpa." nodefault
|
|
|
182ead |
# local-zone: "255.255.255.255.in-addr.arpa." nodefault
|
|
|
182ead |
# local-zone: "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa." nodefault
|
|
|
182ead |
# local-zone: "d.f.ip6.arpa." nodefault
|
|
|
182ead |
# local-zone: "8.e.f.ip6.arpa." nodefault
|
|
|
182ead |
# local-zone: "9.e.f.ip6.arpa." nodefault
|
|
|
182ead |
# local-zone: "a.e.f.ip6.arpa." nodefault
|
|
|
182ead |
# local-zone: "b.e.f.ip6.arpa." nodefault
|
|
|
182ead |
# local-zone: "8.b.d.0.1.0.0.2.ip6.arpa." nodefault
|
|
|
182ead |
# And for 64.100.in-addr.arpa. to 127.100.in-addr.arpa.
|
|
|
182ead |
|
|
|
182ead |
# Add example.com into ipset
|
|
|
182ead |
# local-zone: "example.com" ipset
|
|
|
182ead |
|
|
|
182ead |
# If unbound is running service for the local host then it is useful
|
|
|
182ead |
# to perform lan-wide lookups to the upstream, and unblock the
|
|
|
182ead |
# long list of local-zones above. If this unbound is a dns server
|
|
|
182ead |
# for a network of computers, disabled is better and stops information
|
|
|
182ead |
# leakage of local lan information.
|
|
|
182ead |
# unblock-lan-zones: no
|
|
|
182ead |
|
|
|
182ead |
# The insecure-lan-zones option disables validation for
|
|
|
182ead |
# these zones, as if they were all listed as domain-insecure.
|
|
|
182ead |
# insecure-lan-zones: no
|
|
|
182ead |
|
|
|
182ead |
# a number of locally served zones can be configured.
|
|
|
182ead |
# local-zone: <zone> <type>
|
|
|
182ead |
# local-data: "<resource record string>"
|
|
|
182ead |
# o deny serves local data (if any), else, drops queries.
|
|
|
182ead |
# o refuse serves local data (if any), else, replies with error.
|
|
|
182ead |
# o static serves local data, else, nxdomain or nodata answer.
|
|
|
182ead |
# o transparent gives local data, but resolves normally for other names
|
|
|
182ead |
# o redirect serves the zone data for any subdomain in the zone.
|
|
|
182ead |
# o nodefault can be used to normally resolve AS112 zones.
|
|
|
182ead |
# o typetransparent resolves normally for other types and other names
|
|
|
182ead |
# o inform acts like transparent, but logs client IP address
|
|
|
182ead |
# o inform_deny drops queries and logs client IP address
|
|
|
182ead |
# o inform_redirect redirects queries and logs client IP address
|
|
|
182ead |
# o always_transparent, always_refuse, always_nxdomain, always_nodata,
|
|
|
182ead |
# always_deny resolve in that way but ignore local data for
|
|
|
182ead |
# that name
|
|
|
182ead |
# o always_null returns 0.0.0.0 or ::0 for any name in the zone.
|
|
|
182ead |
# o noview breaks out of that view towards global local-zones.
|
|
|
182ead |
#
|
|
|
182ead |
# defaults are localhost address, reverse for 127.0.0.1 and ::1
|
|
|
182ead |
# and nxdomain for AS112 zones. If you configure one of these zones
|
|
|
182ead |
# the default content is omitted, or you can omit it with 'nodefault'.
|
|
|
182ead |
#
|
|
|
182ead |
# If you configure local-data without specifying local-zone, by
|
|
|
182ead |
# default a transparent local-zone is created for the data.
|
|
|
182ead |
#
|
|
|
182ead |
# You can add locally served data with
|
|
|
182ead |
# local-zone: "local." static
|
|
|
182ead |
# local-data: "mycomputer.local. IN A 192.0.2.51"
|
|
|
182ead |
# local-data: 'mytext.local TXT "content of text record"'
|
|
|
182ead |
#
|
|
|
182ead |
# You can override certain queries with
|
|
|
182ead |
# local-data: "adserver.example.com A 127.0.0.1"
|
|
|
182ead |
#
|
|
|
182ead |
# You can redirect a domain to a fixed address with
|
|
|
182ead |
# (this makes example.com, www.example.com, etc, all go to 192.0.2.3)
|
|
|
182ead |
# local-zone: "example.com" redirect
|
|
|
182ead |
# local-data: "example.com A 192.0.2.3"
|
|
|
182ead |
#
|
|
|
182ead |
# Shorthand to make PTR records, "IPv4 name" or "IPv6 name".
|
|
|
182ead |
# You can also add PTR records using local-data directly, but then
|
|
|
182ead |
# you need to do the reverse notation yourself.
|
|
|
182ead |
# local-data-ptr: "192.0.2.3 www.example.com"
|
|
|
182ead |
|
|
|
182ead |
include: /etc/unbound/local.d/*.conf
|
|
|
182ead |
|
|
|
182ead |
# tag a localzone with a list of tag names (in "" with spaces between)
|
|
|
182ead |
# local-zone-tag: "example.com" "tag2 tag3"
|
|
|
182ead |
|
|
|
182ead |
# add a netblock specific override to a localzone, with zone type
|
|
|
182ead |
# local-zone-override: "example.com" 192.0.2.0/24 refuse
|
|
|
182ead |
|
|
|
182ead |
# service clients over TLS (on the TCP sockets) with plain DNS inside
|
|
|
182ead |
# the TLS stream, and over HTTPS using HTTP/2 as specified in RFC8484.
|
|
|
182ead |
# Give the certificate to use and private key.
|
|
|
182ead |
# default is "" (disabled). requires restart to take effect.
|
|
|
182ead |
# tls-service-key: "/etc/unbound/unbound_server.key"
|
|
|
182ead |
# tls-service-pem: "/etc/unbound/unbound_server.pem"
|
|
|
182ead |
# tls-port: 853
|
|
|
182ead |
# https-port: 443
|
|
|
182ead |
|
|
|
182ead |
# cipher setting for TLSv1.2
|
|
|
182ead |
# tls-ciphers: "DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256"
|
|
|
182ead |
# cipher setting for TLSv1.3
|
|
|
182ead |
# tls-ciphersuites: "TLS_AES_128_GCM_SHA256:TLS_AES_128_CCM_8_SHA256:TLS_AES_128_CCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256"
|
|
|
182ead |
|
|
|
182ead |
# Pad responses to padded queries received over TLS
|
|
|
182ead |
# pad-responses: yes
|
|
|
182ead |
|
|
|
182ead |
# Padded responses will be padded to the closest multiple of this size.
|
|
|
182ead |
# pad-responses-block-size: 468
|
|
|
182ead |
|
|
|
182ead |
# Use the SNI extension for TLS connections. Default is yes.
|
|
|
182ead |
# Changing the value requires a reload.
|
|
|
182ead |
# tls-use-sni: yes
|
|
|
182ead |
|
|
|
182ead |
# Add the secret file for TLS Session Ticket.
|
|
|
182ead |
# Secret file must be 80 bytes of random data.
|
|
|
182ead |
# First key use to encrypt and decrypt TLS session tickets.
|
|
|
182ead |
# Other keys use to decrypt only.
|
|
|
182ead |
# requires restart to take effect.
|
|
|
182ead |
# tls-session-ticket-keys: "path/to/secret_file1"
|
|
|
182ead |
# tls-session-ticket-keys: "path/to/secret_file2"
|
|
|
182ead |
|
|
|
182ead |
# request upstream over TLS (with plain DNS inside the TLS stream).
|
|
|
182ead |
# Default is no. Can be turned on and off with unbound-control.
|
|
|
182ead |
# tls-upstream: no
|
|
|
182ead |
|
|
|
182ead |
# Certificates used to authenticate connections made upstream.
|
|
|
182ead |
# tls-cert-bundle: ""
|
|
|
182ead |
|
|
|
182ead |
# Add system certs to the cert bundle, from the Windows Cert Store
|
|
|
182ead |
# tls-win-cert: no
|
|
|
182ead |
|
|
|
182ead |
# Pad queries over TLS upstreams
|
|
|
182ead |
# pad-queries: yes
|
|
|
182ead |
|
|
|
182ead |
# Padded queries will be padded to the closest multiple of this size.
|
|
|
182ead |
# pad-queries-block-size: 128
|
|
|
182ead |
|
|
|
182ead |
# Also serve tls on these port numbers (eg. 443, ...), by listing
|
|
|
182ead |
# tls-additional-port: portno for each of the port numbers.
|
|
|
182ead |
|
|
|
182ead |
# HTTP endpoint to provide DNS-over-HTTPS service on.
|
|
|
182ead |
# http-endpoint: "/dns-query"
|
|
|
182ead |
|
|
|
182ead |
# HTTP/2 SETTINGS_MAX_CONCURRENT_STREAMS value to use.
|
|
|
182ead |
# http-max-streams: 100
|
|
|
182ead |
|
|
|
182ead |
# Maximum number of bytes used for all HTTP/2 query buffers.
|
|
|
182ead |
# http-query-buffer-size: 4m
|
|
|
182ead |
|
|
|
182ead |
# Maximum number of bytes used for all HTTP/2 response buffers.
|
|
|
182ead |
# http-response-buffer-size: 4m
|
|
|
182ead |
|
|
|
182ead |
# Set TCP_NODELAY socket option on sockets used for DNS-over-HTTPS
|
|
|
182ead |
# service.
|
|
|
182ead |
# http-nodelay: yes
|
|
|
182ead |
|
|
|
182ead |
# Disable TLS for DNS-over-HTTP downstream service.
|
|
|
182ead |
# http-notls-downstream: no
|
|
|
182ead |
|
|
|
182ead |
# DNS64 prefix. Must be specified when DNS64 is use.
|
|
|
182ead |
# Enable dns64 in module-config. Used to synthesize IPv6 from IPv4.
|
|
|
182ead |
# dns64-prefix: 64:ff9b::0/96
|
|
|
182ead |
|
|
|
182ead |
# DNS64 ignore AAAA records for these domains and use A instead.
|
|
|
182ead |
# dns64-ignore-aaaa: "example.com"
|
|
|
182ead |
|
|
|
182ead |
# ratelimit for uncached, new queries, this limits recursion effort.
|
|
|
182ead |
# ratelimiting is experimental, and may help against randomqueryflood.
|
|
|
182ead |
# if 0(default) it is disabled, otherwise state qps allowed per zone.
|
|
|
182ead |
# ratelimit: 0
|
|
|
182ead |
|
|
|
182ead |
# ratelimits are tracked in a cache, size in bytes of cache (or k,m).
|
|
|
182ead |
# ratelimit-size: 4m
|
|
|
182ead |
# ratelimit cache slabs, reduces lock contention if equal to cpucount.
|
|
|
182ead |
# ratelimit-slabs: 4
|
|
|
182ead |
|
|
|
182ead |
# 0 blocks when ratelimited, otherwise let 1/xth traffic through
|
|
|
182ead |
# ratelimit-factor: 10
|
|
|
182ead |
|
|
|
182ead |
# override the ratelimit for a specific domain name.
|
|
|
182ead |
# give this setting multiple times to have multiple overrides.
|
|
|
182ead |
# ratelimit-for-domain: example.com 1000
|
|
|
182ead |
# override the ratelimits for all domains below a domain name
|
|
|
182ead |
# can give this multiple times, the name closest to the zone is used.
|
|
|
182ead |
# ratelimit-below-domain: com 1000
|
|
|
182ead |
|
|
|
182ead |
# global query ratelimit for all ip addresses.
|
|
|
182ead |
# feature is experimental.
|
|
|
182ead |
# if 0(default) it is disabled, otherwise states qps allowed per ip address
|
|
|
182ead |
# ip-ratelimit: 0
|
|
|
182ead |
|
|
|
182ead |
# ip ratelimits are tracked in a cache, size in bytes of cache (or k,m).
|
|
|
182ead |
# ip-ratelimit-size: 4m
|
|
|
182ead |
# ip ratelimit cache slabs, reduces lock contention if equal to cpucount.
|
|
|
182ead |
# ip-ratelimit-slabs: 4
|
|
|
182ead |
|
|
|
182ead |
# 0 blocks when ip is ratelimited, otherwise let 1/xth traffic through
|
|
|
182ead |
# ip-ratelimit-factor: 10
|
|
|
182ead |
|
|
|
182ead |
# Limit the number of connections simultaneous from a netblock
|
|
|
182ead |
# tcp-connection-limit: 192.0.2.0/24 12
|
|
|
182ead |
|
|
|
182ead |
# select from the fastest servers this many times out of 1000. 0 means
|
|
|
182ead |
# the fast server select is disabled. prefetches are not sped up.
|
|
|
182ead |
# fast-server-permil: 0
|
|
|
182ead |
# the number of servers that will be used in the fast server selection.
|
|
|
182ead |
# fast-server-num: 3
|
|
|
182ead |
|
|
|
182ead |
# Specific options for ipsecmod. unbound needs to be configured with
|
|
|
182ead |
# --enable-ipsecmod for these to take effect.
|
|
|
182ead |
#
|
|
|
182ead |
# Enable or disable ipsecmod (it still needs to be defined in
|
|
|
182ead |
# module-config above). Can be used when ipsecmod needs to be
|
|
|
182ead |
# enabled/disabled via remote-control(below).
|
|
|
182ead |
# Fedora: module will be enabled on-demand by libreswan
|
|
|
182ead |
ipsecmod-enabled: no
|
|
|
182ead |
|
|
|
182ead |
# Path to executable external hook. It must be defined when ipsecmod is
|
|
|
182ead |
# listed in module-config (above).
|
|
|
182ead |
# ipsecmod-hook: "./my_executable"
|
|
|
182ead |
ipsecmod-hook:/usr/libexec/ipsec/_unbound-hook
|
|
|
182ead |
|
|
|
182ead |
# When enabled unbound will reply with SERVFAIL if the return value of
|
|
|
182ead |
# the ipsecmod-hook is not 0.
|
|
|
182ead |
# ipsecmod-strict: no
|
|
|
182ead |
#
|
|
|
182ead |
# Maximum time to live (TTL) for cached A/AAAA records with IPSECKEY.
|
|
|
182ead |
# ipsecmod-max-ttl: 3600
|
|
|
182ead |
#
|
|
|
182ead |
# Reply with A/AAAA even if the relevant IPSECKEY is bogus. Mainly used for
|
|
|
182ead |
# testing.
|
|
|
182ead |
# ipsecmod-ignore-bogus: no
|
|
|
182ead |
#
|
|
|
182ead |
# Domains for which ipsecmod will be triggered. If not defined (default)
|
|
|
182ead |
# all domains are treated as being allowed.
|
|
|
182ead |
# ipsecmod-allow: "example.com"
|
|
|
182ead |
# ipsecmod-allow: "nlnetlabs.nl"
|
|
|
182ead |
|
|
|
182ead |
# Python config section. To enable:
|
|
|
182ead |
# o use --with-pythonmodule to configure before compiling.
|
|
|
182ead |
# o list python in the module-config string (above) to enable.
|
|
|
182ead |
# It can be at the start, it gets validated results, or just before
|
|
|
182ead |
# the iterator and process before DNSSEC validation.
|
|
|
182ead |
# o and give a python-script to run.
|
|
|
182ead |
python:
|
|
|
182ead |
# Script file to load
|
|
|
182ead |
# python-script: "/etc/unbound/ubmodule-tst.py"
|
|
|
182ead |
|
|
|
182ead |
# Remote control config section.
|
|
|
182ead |
remote-control:
|
|
|
182ead |
# Enable remote control with unbound-control(8) here.
|
|
|
182ead |
# set up the keys and certificates with unbound-control-setup.
|
|
|
182ead |
# Note: required for unbound-munin package
|
|
|
182ead |
control-enable: yes
|
|
|
182ead |
|
|
|
182ead |
# Set to no and use an absolute path as control-interface to use
|
|
|
182ead |
# a unix local named pipe for unbound-control.
|
|
|
182ead |
# control-use-cert: yes
|
|
|
182ead |
|
|
|
182ead |
# what interfaces are listened to for remote control.
|
|
|
182ead |
# give 0.0.0.0 and ::0 to listen to all interfaces.
|
|
|
182ead |
# set to an absolute path to use a unix local name pipe, certificates
|
|
|
182ead |
# are not used for that, so key and cert files need not be present.
|
|
|
182ead |
# control-interface: 127.0.0.1
|
|
|
182ead |
# control-interface: ::1
|
|
|
182ead |
|
|
|
182ead |
# port number for remote control operations.
|
|
|
182ead |
# control-port: 8953
|
|
|
182ead |
|
|
|
182ead |
# for localhost, you can disable use of TLS by setting this to "no"
|
|
|
182ead |
# For local sockets this option is ignored, and TLS is not used.
|
|
|
182ead |
control-use-cert: "no"
|
|
|
182ead |
|
|
|
182ead |
# unbound server key file.
|
|
|
182ead |
server-key-file: "/etc/unbound/unbound_server.key"
|
|
|
182ead |
|
|
|
182ead |
# unbound server certificate file.
|
|
|
182ead |
server-cert-file: "/etc/unbound/unbound_server.pem"
|
|
|
182ead |
|
|
|
182ead |
# unbound-control key file.
|
|
|
182ead |
control-key-file: "/etc/unbound/unbound_control.key"
|
|
|
182ead |
|
|
|
182ead |
# unbound-control certificate file.
|
|
|
182ead |
control-cert-file: "/etc/unbound/unbound_control.pem"
|
|
|
182ead |
|
|
|
182ead |
# Stub and Forward zones
|
|
|
182ead |
include: /etc/unbound/conf.d/*.conf
|
|
|
182ead |
|
|
|
182ead |
# Stub zones.
|
|
|
182ead |
# Create entries like below, to make all queries for 'example.com' and
|
|
|
182ead |
# 'example.org' go to the given list of nameservers. list zero or more
|
|
|
182ead |
# nameservers by hostname or by ipaddress. If you set stub-prime to yes,
|
|
|
182ead |
# the list is treated as priming hints (default is no).
|
|
|
182ead |
# With stub-first yes, it attempts without the stub if it fails.
|
|
|
182ead |
# Consider adding domain-insecure: name and local-zone: name nodefault
|
|
|
182ead |
# to the server: section if the stub is a locally served zone.
|
|
|
182ead |
# stub-zone:
|
|
|
182ead |
# name: "example.com"
|
|
|
182ead |
# stub-addr: 192.0.2.68
|
|
|
182ead |
# stub-prime: no
|
|
|
182ead |
# stub-first: no
|
|
|
182ead |
# stub-tls-upstream: no
|
|
|
182ead |
# stub-no-cache: no
|
|
|
182ead |
# stub-zone:
|
|
|
182ead |
# name: "example.org"
|
|
|
182ead |
# stub-host: ns.example.com.
|
|
|
182ead |
|
|
|
182ead |
# You can now also dynamically create and delete stub-zone's using
|
|
|
182ead |
# unbound-control stub_add domain.com 1.2.3.4 5.6.7.8
|
|
|
182ead |
# unbound-control stub_remove domain.com 1.2.3.4 5.6.7.8
|
|
|
182ead |
|
|
|
182ead |
# Forward zones
|
|
|
182ead |
# Create entries like below, to make all queries for 'example.com' and
|
|
|
182ead |
# 'example.org' go to the given list of servers. These servers have to handle
|
|
|
182ead |
# recursion to other nameservers. List zero or more nameservers by hostname
|
|
|
182ead |
# or by ipaddress. Use an entry with name "." to forward all queries.
|
|
|
182ead |
# If you enable forward-first, it attempts without the forward if it fails.
|
|
|
182ead |
# forward-zone:
|
|
|
182ead |
# name: "example.com"
|
|
|
182ead |
# forward-addr: 192.0.2.68
|
|
|
182ead |
# forward-addr: 192.0.2.73@5355 # forward to port 5355.
|
|
|
182ead |
# forward-first: no
|
|
|
182ead |
# forward-tls-upstream: no
|
|
|
182ead |
# forward-no-cache: no
|
|
|
182ead |
# forward-zone:
|
|
|
182ead |
# name: "example.org"
|
|
|
182ead |
# forward-host: fwd.example.com
|
|
|
182ead |
#
|
|
|
182ead |
# You can now also dynamically create and delete forward-zone's using
|
|
|
182ead |
# unbound-control forward_add domain.com 1.2.3.4 5.6.7.8
|
|
|
182ead |
# unbound-control forward_remove domain.com 1.2.3.4 5.6.7.8
|
|
|
182ead |
|
|
|
182ead |
# Authority zones
|
|
|
182ead |
# The data for these zones is kept locally, from a file or downloaded.
|
|
|
182ead |
# The data can be served to downstream clients, or used instead of the
|
|
|
182ead |
# upstream (which saves a lookup to the upstream). The first example
|
|
|
182ead |
# has a copy of the root for local usage. The second serves example.org
|
|
|
182ead |
# authoritatively. zonefile: reads from file (and writes to it if you also
|
|
|
182ead |
# download it), master: fetches with AXFR and IXFR, or url to zonefile.
|
|
|
182ead |
# With allow-notify: you can give additional (apart from masters) sources of
|
|
|
182ead |
# notifies.
|
|
|
182ead |
auth-zone:
|
|
|
182ead |
name: "."
|
|
|
182ead |
for-downstream: no
|
|
|
182ead |
for-upstream: yes
|
|
|
182ead |
fallback-enabled: yes
|
|
|
182ead |
master: 199.9.14.201 # b.root-servers.net
|
|
|
182ead |
master: 192.33.4.12 # c.root-servers.net
|
|
|
182ead |
master: 199.7.91.13 # d.root-servers.net
|
|
|
182ead |
master: 192.5.5.241 # f.root-servers.net
|
|
|
182ead |
master: 192.112.36.4 # g.root-servers.net
|
|
|
182ead |
master: 193.0.14.129 # k.root-servers.net
|
|
|
182ead |
master: 192.0.47.132 # xfr.cjr.dns.icann.org
|
|
|
182ead |
master: 192.0.32.132 # xfr.lax.dns.icann.org
|
|
|
182ead |
master: 2001:500:200::b # b.root-servers.net
|
|
|
182ead |
master: 2001:500:2::c # c.root-servers.net
|
|
|
182ead |
master: 2001:500:2d::d # d.root-servers.net
|
|
|
182ead |
master: 2001:500:2f::f # f.root-servers.net
|
|
|
182ead |
master: 2001:500:12::d0d # g.root-servers.net
|
|
|
182ead |
master: 2001:7fd::1 # k.root-servers.net
|
|
|
182ead |
master: 2620:0:2830:202::132 # xfr.cjr.dns.icann.org
|
|
|
182ead |
master: 2620:0:2d0:202::132 # xfr.lax.dns.icann.org
|
|
|
182ead |
# auth-zone:
|
|
|
182ead |
# name: "example.org"
|
|
|
182ead |
# for-downstream: yes
|
|
|
182ead |
# for-upstream: yes
|
|
|
182ead |
# zonefile: "example.org.zone"
|
|
|
182ead |
|
|
|
182ead |
# Views
|
|
|
182ead |
# Create named views. Name must be unique. Map views to requests using
|
|
|
182ead |
# the access-control-view option. Views can contain zero or more local-zone
|
|
|
182ead |
# and local-data options. Options from matching views will override global
|
|
|
182ead |
# options. Global options will be used if no matching view is found.
|
|
|
182ead |
# With view-first yes, it will try to answer using the global local-zone and
|
|
|
182ead |
# local-data elements if there is no view specific match.
|
|
|
182ead |
# view:
|
|
|
182ead |
# name: "viewname"
|
|
|
182ead |
# local-zone: "example.com" redirect
|
|
|
182ead |
# local-data: "example.com A 192.0.2.3"
|
|
|
182ead |
# local-data-ptr: "192.0.2.3 www.example.com"
|
|
|
182ead |
# view-first: no
|
|
|
182ead |
# view:
|
|
|
182ead |
# name: "anotherview"
|
|
|
182ead |
# local-zone: "example.com" refuse
|
|
|
182ead |
|
|
|
182ead |
# Fedora: DNSCrypt support not enabled since it requires linking to
|
|
|
182ead |
# another crypto library
|
|
|
182ead |
#
|
|
|
182ead |
# DNSCrypt
|
|
|
182ead |
# Caveats:
|
|
|
182ead |
# 1. the keys/certs cannot be produced by unbound. You can use dnscrypt-wrapper
|
|
|
182ead |
# for this: https://github.com/cofyc/dnscrypt-wrapper/blob/master/README.md#usage
|
|
|
182ead |
# 2. dnscrypt channel attaches to an interface. you MUST set interfaces to
|
|
|
182ead |
# listen on `dnscrypt-port` with the follo0wing snippet:
|
|
|
182ead |
# server:
|
|
|
182ead |
# interface: 0.0.0.0@443
|
|
|
182ead |
# interface: ::0@443
|
|
|
182ead |
#
|
|
|
182ead |
# Finally, `dnscrypt` config has its own section.
|
|
|
182ead |
# dnscrypt:
|
|
|
182ead |
# dnscrypt-enable: yes
|
|
|
182ead |
# dnscrypt-port: 443
|
|
|
182ead |
# dnscrypt-provider: 2.dnscrypt-cert.example.com.
|
|
|
182ead |
# dnscrypt-secret-key: /path/unbound-conf/keys1/1.key
|
|
|
182ead |
# dnscrypt-secret-key: /path/unbound-conf/keys2/1.key
|
|
|
182ead |
# dnscrypt-provider-cert: /path/unbound-conf/keys1/1.cert
|
|
|
182ead |
# dnscrypt-provider-cert: /path/unbound-conf/keys2/1.cert
|
|
|
182ead |
|
|
|
182ead |
# CacheDB
|
|
|
182ead |
# Enable external backend DB as auxiliary cache. Specify the backend name
|
|
|
182ead |
# (default is "testframe", which has no use other than for debugging and
|
|
|
182ead |
# testing) and backend-specific options. The 'cachedb' module must be
|
|
|
182ead |
# included in module-config, just before the iterator module.
|
|
|
182ead |
# cachedb:
|
|
|
182ead |
# backend: "testframe"
|
|
|
182ead |
# # secret seed string to calculate hashed keys
|
|
|
182ead |
# secret-seed: "default"
|
|
|
182ead |
#
|
|
|
182ead |
# # For "redis" backend:
|
|
|
182ead |
# # redis server's IP address or host name
|
|
|
182ead |
# redis-server-host: 127.0.0.1
|
|
|
182ead |
# # redis server's TCP port
|
|
|
182ead |
# redis-server-port: 6379
|
|
|
182ead |
# # timeout (in ms) for communication with the redis server
|
|
|
182ead |
# redis-timeout: 100
|
|
|
182ead |
# # set timeout on redis records based on DNS response TTL
|
|
|
182ead |
# redis-expire-records: no
|
|
|
182ead |
|
|
|
182ead |
# IPSet
|
|
|
182ead |
# Add specify domain into set via ipset.
|
|
|
182ead |
# Note: To enable ipset unbound needs to run as root user.
|
|
|
182ead |
# ipset:
|
|
|
182ead |
# # set name for ip v4 addresses
|
|
|
182ead |
# name-v4: "list-v4"
|
|
|
182ead |
# # set name for ip v6 addresses
|
|
|
182ead |
# name-v6: "list-v6"
|
|
|
182ead |
#
|
|
|
182ead |
|
|
|
182ead |
# Dnstap logging support, if compiled in. To enable, set the dnstap-enable
|
|
|
182ead |
# to yes and also some of dnstap-log-..-messages to yes. And select an
|
|
|
182ead |
# upstream log destination, by socket path, TCP or TLS destination.
|
|
|
182ead |
# dnstap:
|
|
|
182ead |
# dnstap-enable: no
|
|
|
182ead |
# # if set to yes frame streams will be used in bidirectional mode
|
|
|
182ead |
# dnstap-bidirectional: yes
|
|
|
182ead |
# dnstap-socket-path: "/etc/unbound/dnstap.sock"
|
|
|
182ead |
# # if "" use the unix socket in dnstap-socket-path, otherwise,
|
|
|
182ead |
# # set it to "IPaddress[@port]" of the destination.
|
|
|
182ead |
# dnstap-ip: ""
|
|
|
182ead |
# # if set to yes if you want to use TLS to dnstap-ip, no for TCP.
|
|
|
182ead |
# dnstap-tls: yes
|
|
|
182ead |
# # name for authenticating the upstream server. or "" disabled.
|
|
|
182ead |
# dnstap-tls-server-name: ""
|
|
|
182ead |
# # if "", it uses the cert bundle from the main unbound config.
|
|
|
182ead |
# dnstap-tls-cert-bundle: ""
|
|
|
182ead |
# # key file for client authentication, or "" disabled.
|
|
|
182ead |
# dnstap-tls-client-key-file: ""
|
|
|
182ead |
# # cert file for client authentication, or "" disabled.
|
|
|
182ead |
# dnstap-tls-client-cert-file: ""
|
|
|
182ead |
# dnstap-send-identity: no
|
|
|
182ead |
# dnstap-send-version: no
|
|
|
182ead |
# # if "" it uses the hostname.
|
|
|
182ead |
# dnstap-identity: ""
|
|
|
182ead |
# # if "" it uses the package version.
|
|
|
182ead |
# dnstap-version: ""
|
|
|
182ead |
# dnstap-log-resolver-query-messages: no
|
|
|
182ead |
# dnstap-log-resolver-response-messages: no
|
|
|
182ead |
# dnstap-log-client-query-messages: no
|
|
|
182ead |
# dnstap-log-client-response-messages: no
|
|
|
182ead |
# dnstap-log-forwarder-query-messages: no
|
|
|
182ead |
# dnstap-log-forwarder-response-messages: no
|
|
|
182ead |
|
|
|
182ead |
# Response Policy Zones
|
|
|
182ead |
# RPZ policies. Applied in order of configuration. QNAME and Response IP
|
|
|
182ead |
# Address trigger are the only supported triggers. Supported actions are:
|
|
|
182ead |
# NXDOMAIN, NODATA, PASSTHRU, DROP and Local Data. Policies can be loaded from
|
|
|
182ead |
# file, using zone transfer, or using HTTP. The respip module needs to be added
|
|
|
182ead |
# to the module-config, e.g.: module-config: "respip validator iterator".
|
|
|
182ead |
# rpz:
|
|
|
182ead |
# name: "rpz.example.com"
|
|
|
182ead |
# zonefile: "rpz.example.com"
|
|
|
182ead |
# primary: 192.0.2.0
|
|
|
182ead |
# allow-notify: 192.0.2.0/32
|
|
|
182ead |
# url: http://www.example.com/rpz.example.org.zone
|
|
|
182ead |
# rpz-action-override: cname
|
|
|
182ead |
# rpz-cname-override: www.example.org
|
|
|
182ead |
# rpz-log: yes
|
|
|
182ead |
# rpz-log-name: "example policy"
|
|
|
182ead |
# tags: "example"
|