4fd01f
#
4fd01f
# See unbound.conf(5) man page.
4fd01f
#
4fd01f
# this is a comment.
4fd01f
4fd01f
#Use this to include other text into the file.
4fd01f
#include: "otherfile.conf"
4fd01f
4fd01f
# The server clause sets the main parameters.
4fd01f
server:
4fd01f
	# whitespace is not necessary, but looks cleaner.
4fd01f
4fd01f
	# verbosity number, 0 is least verbose. 1 is default.
4fd01f
	verbosity: 1
4fd01f
4fd01f
	# print statistics to the log (for every thread) every N seconds.
4fd01f
	# Set to "" or 0 to disable. Default is disabled.
4365f2
	# Needs to be disabled for munin plugin
4fd01f
	statistics-interval: 0
4fd01f
4365f2
	# enable shm for stats, default no.  if you enable also enable
4365f2
	# statistics-interval, every time it also writes stats to the
4365f2
	# shared memory segment keyed with shm-key.
4365f2
	# shm-enable: no
4365f2
4365f2
	# shm for stats uses this key, and key+1 for the shared mem segment.
4365f2
	# shm-key: 11777
4365f2
4fd01f
	# enable cumulative statistics, without clearing them after printing.
4365f2
	# Needs to be disabled for munin plugin
4fd01f
	statistics-cumulative: no
4fd01f
4fd01f
	# enable extended statistics (query types, answer codes, status)
4fd01f
	# printed from unbound-control. default off, because of speed.
4365f2
	# Needs to be enabled for munin plugin
4fd01f
	extended-statistics: yes
4fd01f
4fd01f
	# number of threads to create. 1 disables threading.
4365f2
	num-threads: 4
4fd01f
4fd01f
	# specify the interfaces to answer queries from by ip-address.
4fd01f
	# The default is to listen to localhost (127.0.0.1 and ::1).
4fd01f
	# specify 0.0.0.0 and ::0 to bind to all available interfaces.
4365f2
	# specify every interface[@port] on a new 'interface:' labelled line.
4fd01f
	# The listen interfaces are not changed on reload, only on restart.
4fd01f
	# interface: 0.0.0.0
4fd01f
	# interface: ::0
4fd01f
	# interface: 192.0.2.153
4fd01f
	# interface: 192.0.2.154
4365f2
	# interface: 192.0.2.154@5003
4fd01f
	# interface: 2001:DB8::5
4fd01f
	#
4fd01f
	# for dns over tls and raw dns over port 80
4fd01f
	# interface: 0.0.0.0@443
4fd01f
	# interface: ::0@443
4fd01f
	# interface: 0.0.0.0@80
4fd01f
	# interface: ::0@80
4fd01f
4fd01f
	# enable this feature to copy the source address of queries to reply.
4fd01f
	# Socket options are not supported on all platforms. experimental.
4fd01f
	# interface-automatic: yes
4fd01f
	#
4fd01f
	# NOTE: Enable this option when specifying interface 0.0.0.0 or ::0
4fd01f
	# NOTE: Disabled per Fedora policy not to listen to * on default install
4fd01f
	# NOTE: If deploying on non-default port, eg 80/443, this needs to be disabled
4fd01f
	interface-automatic: no
4fd01f
4fd01f
	# port to answer queries from
4fd01f
	# port: 53
4fd01f
4fd01f
	# specify the interfaces to send outgoing queries to authoritative
4fd01f
	# server from by ip-address. If none, the default (all) interface
4fd01f
	# is used. Specify every interface on a 'outgoing-interface:' line.
4fd01f
	# outgoing-interface: 192.0.2.153
4fd01f
	# outgoing-interface: 2001:DB8::5
4fd01f
	# outgoing-interface: 2001:DB8::6
4fd01f
4365f2
	# Specify a netblock to use remainder 64 bits as random bits for
4365f2
	# upstream queries.  Uses freebind option (Linux).
4365f2
	# outgoing-interface: 2001:DB8::/64
4365f2
	# Also (Linux:) ip -6 addr add 2001:db8::/64 dev lo
4365f2
	# And: ip -6 route add local 2001:db8::/64 dev lo
4365f2
	# And set prefer-ip6: yes to use the ip6 randomness from a netblock.
4365f2
	# Set this to yes to prefer ipv6 upstream servers over ipv4.
4365f2
	# prefer-ip6: no
4365f2
4fd01f
	# number of ports to allocate per thread, determines the size of the
4365f2
	# port range that can be open simultaneously.  About double the
4365f2
	# num-queries-per-thread, or, use as many as the OS will allow you.
4fd01f
	# outgoing-range: 4096
4fd01f
4fd01f
	# permit unbound to use this port number or port range for
4fd01f
	# making outgoing queries, using an outgoing interface.
4365f2
	# outgoing-port-permit: 32768-65535
4fd01f
4fd01f
	# deny unbound the use this of port number or port range for
4fd01f
	# making outgoing queries, using an outgoing interface.
4fd01f
	# Use this to make sure unbound does not grab a UDP port that some
4fd01f
	# other server on this computer needs. The default is to avoid
4fd01f
	# IANA-assigned port numbers.
4365f2
	# If multiple outgoing-port-permit and outgoing-port-avoid options
4365f2
	# are present, they are processed in order.
4365f2
	# outgoing-port-avoid: 0-32767
4fd01f
4fd01f
	# number of outgoing simultaneous tcp buffers to hold per thread.
4fd01f
	# outgoing-num-tcp: 10
4fd01f
4fd01f
	# number of incoming simultaneous tcp buffers to hold per thread.
4fd01f
	# incoming-num-tcp: 10
4fd01f
4fd01f
	# buffer size for UDP port 53 incoming (SO_RCVBUF socket option).
4fd01f
	# 0 is system default.  Use 4m to catch query spikes for busy servers.
4fd01f
	# so-rcvbuf: 0
4fd01f
4fd01f
	# buffer size for UDP port 53 outgoing (SO_SNDBUF socket option).
4fd01f
	# 0 is system default.  Use 4m to handle spikes on very busy servers.
4fd01f
	# so-sndbuf: 0
4fd01f
4365f2
	# use SO_REUSEPORT to distribute queries over threads.
4365f2
	so-reuseport: yes
4365f2
4365f2
	# use IP_TRANSPARENT so the interface: addresses can be non-local
4365f2
	# and you can config non-existing IPs that are going to work later on
4365f2
	# (uses IP_BINDANY on FreeBSD).
4365f2
	ip-transparent: yes
4365f2
4365f2
	# use IP_FREEBIND so the interface: addresses can be non-local
4365f2
	# and you can bind to nonexisting IPs and interfaces that are down.
4365f2
	# Linux only.  On Linux you also have ip-transparent that is similar.
4365f2
	# ip-freebind: no
4365f2
4fd01f
	# EDNS reassembly buffer to advertise to UDP peers (the actual buffer
4365f2
	# is set with msg-buffer-size). 1472 can solve fragmentation (timeouts).
4fd01f
	# edns-buffer-size: 4096
4fd01f
4365f2
	# Maximum UDP response size (not applied to TCP response).
4365f2
	# Suggested values are 512 to 4096. Default is 4096. 65536 disables it.
4365f2
	# 3072 causes +dnssec any isc.org queries to need TC=1.
4365f2
	# Helps mitigating DDOS
4365f2
	# max-udp-size: 3072
4365f2
4fd01f
	# buffer size for handling DNS data. No messages larger than this
4fd01f
	# size can be sent or received, by UDP or TCP. In bytes.
4fd01f
	# msg-buffer-size: 65552
4fd01f
4fd01f
	# the amount of memory to use for the message cache.
4fd01f
	# plain value in bytes or you can append k, m or G. default is "4Mb".
4fd01f
	# msg-cache-size: 4m
4fd01f
4fd01f
	# the number of slabs to use for the message cache.
4fd01f
	# the number of slabs must be a power of 2.
4fd01f
	# more slabs reduce lock contention, but fragment memory usage.
4fd01f
	# msg-cache-slabs: 4
4fd01f
4fd01f
	# the number of queries that a thread gets to service.
4fd01f
	# num-queries-per-thread: 1024
4fd01f
4fd01f
	# if very busy, 50% queries run to completion, 50% get timeout in msec
4fd01f
	# jostle-timeout: 200
4fd01f
4365f2
	# msec to wait before close of port on timeout UDP. 0 disables.
4365f2
	# delay-close: 0
4365f2
4fd01f
	# the amount of memory to use for the RRset cache.
4fd01f
	# plain value in bytes or you can append k, m or G. default is "4Mb".
4fd01f
	# rrset-cache-size: 4m
4fd01f
4fd01f
	# the number of slabs to use for the RRset cache.
4fd01f
	# the number of slabs must be a power of 2.
4fd01f
	# more slabs reduce lock contention, but fragment memory usage.
4fd01f
	# rrset-cache-slabs: 4
4fd01f
4fd01f
	# the time to live (TTL) value lower bound, in seconds. Default 0.
4fd01f
	# If more than an hour could easily give trouble due to stale data.
4fd01f
	# cache-min-ttl: 0
4fd01f
4fd01f
	# the time to live (TTL) value cap for RRsets and messages in the
4fd01f
	# cache. Items are not cached for longer. In seconds.
4fd01f
	# cache-max-ttl: 86400
4fd01f
0f4e4e
	# the time to live (TTL) value cap for negative responses in the cache
0f4e4e
	# cache-max-negative-ttl: 3600
0f4e4e
4365f2
	# the time to live (TTL) value for cached roundtrip times, lameness and
4365f2
	# EDNS version information for hosts. In seconds.
4fd01f
	# infra-host-ttl: 900
4fd01f
4365f2
	# minimum wait time for responses, increase if uplink is long. In msec.
4365f2
	# infra-cache-min-rtt: 50
4365f2
4fd01f
	# the number of slabs to use for the Infrastructure cache.
4fd01f
	# the number of slabs must be a power of 2.
4fd01f
	# more slabs reduce lock contention, but fragment memory usage.
4fd01f
	# infra-cache-slabs: 4
4fd01f
4fd01f
	# the maximum number of hosts that are cached (roundtrip, EDNS, lame).
4fd01f
	# infra-cache-numhosts: 10000
4fd01f
4365f2
	# define a number of tags here, use with local-zone, access-control.
4365f2
	# repeat the define-tag statement to add additional tags.
4365f2
	# define-tag: "tag1 tag2 tag3"
4365f2
4fd01f
	# Enable IPv4, "yes" or "no".
4fd01f
	# do-ip4: yes
4fd01f
4fd01f
	# Enable IPv6, "yes" or "no".
4fd01f
	# do-ip6: yes
4fd01f
4fd01f
	# Enable UDP, "yes" or "no".
4fd01f
	# NOTE: if setting up an unbound on tls443 for public use, you might want to
4fd01f
	# disable UDP to avoid being used in DNS amplification attacks.
4fd01f
	# do-udp: yes
4fd01f
4fd01f
	# Enable TCP, "yes" or "no".
4fd01f
	# do-tcp: yes
4fd01f
4fd01f
	# upstream connections use TCP only (and no UDP), "yes" or "no"
4fd01f
	# useful for tunneling scenarios, default no.
4fd01f
	# tcp-upstream: no
4fd01f
4365f2
	# Maximum segment size (MSS) of TCP socket on which the server
4365f2
	# responds to queries. Default is 0, system default MSS.
4365f2
	# tcp-mss: 0
4365f2
4365f2
	# Maximum segment size (MSS) of TCP socket for outgoing queries.
4365f2
	# Default is 0, system default MSS.
4365f2
	# outgoing-tcp-mss: 0
4365f2
4fd01f
	# Detach from the terminal, run in background, "yes" or "no".
4365f2
	# Set the value to "no" when unbound runs as systemd service.
4fd01f
	# do-daemonize: yes
4fd01f
4fd01f
	# control which clients are allowed to make (recursive) queries
4fd01f
	# to this server. Specify classless netblocks with /size and action.
4fd01f
	# By default everything is refused, except for localhost.
4fd01f
	# Choose deny (drop message), refuse (polite error reply),
4fd01f
	# allow (recursive ok), allow_snoop (recursive and nonrecursive ok)
4365f2
	# deny_non_local (drop queries unless can be answered from local-data)
4365f2
	# refuse_non_local (like deny_non_local but polite error reply).
4fd01f
	# access-control: 0.0.0.0/0 refuse
4fd01f
	# access-control: 127.0.0.0/8 allow
4fd01f
	# access-control: ::0/0 refuse
4fd01f
	# access-control: ::1 allow
4fd01f
	# access-control: ::ffff:127.0.0.1 allow
4fd01f
4365f2
	# tag access-control with list of tags (in "" with spaces between)
4365f2
	# Clients using this access control element use localzones that
4365f2
	# are tagged with one of these tags.
4365f2
	# access-control-tag: 192.0.2.0/24 "tag2 tag3"
4365f2
4365f2
	# set action for particular tag for given access control element
4365f2
	# if you have multiple tag values, the tag used to lookup the action
4365f2
	# is the first tag match between access-control-tag and local-zone-tag
4365f2
	# where "first" comes from the order of the define-tag values.
4365f2
	# access-control-tag-action: 192.0.2.0/24 tag3 refuse
4365f2
4365f2
	# set redirect data for particular tag for access control element
4365f2
	# access-control-tag-data: 192.0.2.0/24 tag2 "A 127.0.0.1"
4365f2
4365f2
	# Set view for access control element
4365f2
	# access-control-view: 192.0.2.0/24 viewname
4365f2
4fd01f
	# if given, a chroot(2) is done to the given directory.
4fd01f
	# i.e. you can chroot to the working directory, for example,
4fd01f
	# for extra security, but make sure all files are in that directory.
4fd01f
	#
4fd01f
	# If chroot is enabled, you should pass the configfile (from the
4fd01f
	# commandline) as a full path from the original root. After the
4fd01f
	# chroot has been performed the now defunct portion of the config
4fd01f
	# file path is removed to be able to reread the config after a reload.
4fd01f
	#
4fd01f
	# All other file paths (working dir, logfile, roothints, and
4fd01f
	# key files) can be specified in several ways:
4fd01f
	# 	o as an absolute path relative to the new root.
4fd01f
	# 	o as a relative path to the working directory.
4fd01f
	# 	o as an absolute path relative to the original root.
4fd01f
	# In the last case the path is adjusted to remove the unused portion.
4fd01f
	#
4fd01f
	# The pid file can be absolute and outside of the chroot, it is
4fd01f
	# written just prior to performing the chroot and dropping permissions.
4fd01f
	#
4fd01f
	# Additionally, unbound may need to access /dev/random (for entropy).
4fd01f
	# How to do this is specific to your OS.
4fd01f
	#
4fd01f
	# If you give "" no chroot is performed. The path must not end in a /.
4fd01f
	# chroot: "/var/lib/unbound"
4fd01f
	chroot: ""
4fd01f
4fd01f
	# if given, user privileges are dropped (after binding port),
4fd01f
	# and the given username is assumed. Default is user "unbound".
4fd01f
	# If you give "" no privileges are dropped.
4fd01f
	username: "unbound"
4fd01f
4fd01f
	# the working directory. The relative files in this config are
4fd01f
	# relative to this directory. If you give "" the working directory
4fd01f
	# is not changed.
4365f2
	# If you give a server: directory: dir before include: file statements
4365f2
	# then those includes can be relative to the working directory.
4fd01f
	directory: "/etc/unbound"
4fd01f
4fd01f
	# the log file, "" means log to stderr.
4fd01f
	# Use of this option sets use-syslog to "no".
4fd01f
	# logfile: ""
4fd01f
4fd01f
	# Log to syslog(3) if yes. The log facility LOG_DAEMON is used to
4fd01f
	# log to, with identity "unbound". If yes, it overrides the logfile.
4fd01f
	# use-syslog: yes
4365f2
 
4365f2
	# Log identity to report. if empty, defaults to the name of argv[0]
4365f2
	# (usually "unbound").
4365f2
	# log-identity: ""
4fd01f
4fd01f
	# print UTC timestamp in ascii to logfile, default is epoch in seconds.
4fd01f
	log-time-ascii: yes
4fd01f
4365f2
	# print one line with time, IP, name, type, class for every query.
4365f2
	# log-queries: no
4365f2
4365f2
	# print one line per reply, with time, IP, name, type, class, rcode,
4365f2
	# timetoresolve, fromcache and responsesize.
4365f2
	# log-replies: no
4365f2
4fd01f
	# the pid file. Can be an absolute path outside of chroot/work dir.
4fd01f
	pidfile: "/var/run/unbound/unbound.pid"
4fd01f
4fd01f
	# file to read root hints from.
4365f2
	# get one from https://www.internic.net/domain/named.cache
4fd01f
	# root-hints: ""
4fd01f
4fd01f
	# enable to not answer id.server and hostname.bind queries.
4fd01f
	# hide-identity: no
4fd01f
4fd01f
	# enable to not answer version.server and version.bind queries.
4fd01f
	# hide-version: no
4fd01f
4365f2
	# enable to not answer trustanchor.unbound queries.
4365f2
	# hide-trustanchor: no
4365f2
4fd01f
	# the identity to report. Leave "" or default to return hostname.
4fd01f
	# identity: ""
4fd01f
4fd01f
	# the version to report. Leave "" or default to return package version.
4fd01f
	# version: ""
4fd01f
4fd01f
	# the target fetch policy.
4fd01f
	# series of integers describing the policy per dependency depth.
4fd01f
	# The number of values in the list determines the maximum dependency
4fd01f
	# depth the recursor will pursue before giving up. Each integer means:
4fd01f
	# 	-1 : fetch all targets opportunistically,
4fd01f
	# 	0: fetch on demand,
4fd01f
	#	positive value: fetch that many targets opportunistically.
4fd01f
	# Enclose the list of numbers between quotes ("").
4fd01f
	# target-fetch-policy: "3 2 1 0 0"
4fd01f
4fd01f
	# Harden against very small EDNS buffer sizes.
4fd01f
	# harden-short-bufsize: no
4fd01f
4fd01f
	# Harden against unseemly large queries.
4fd01f
	# harden-large-queries: no
4fd01f
4fd01f
	# Harden against out of zone rrsets, to avoid spoofing attempts.
4fd01f
	harden-glue: yes
4fd01f
4fd01f
	# Harden against receiving dnssec-stripped data. If you turn it
4fd01f
	# off, failing to validate dnskey data for a trustanchor will
4fd01f
	# trigger insecure mode for that zone (like without a trustanchor).
4fd01f
	# Default on, which insists on dnssec data for trust-anchored zones.
4fd01f
	harden-dnssec-stripped: yes
4fd01f
4fd01f
	# Harden against queries that fall under dnssec-signed nxdomain names.
4fd01f
	harden-below-nxdomain: yes
4fd01f
4fd01f
	# Harden the referral path by performing additional queries for
4fd01f
	# infrastructure data.  Validates the replies (if possible).
4fd01f
	# Default off, because the lookups burden the server.  Experimental
4fd01f
	# implementation of draft-wijngaards-dnsext-resolver-side-mitigation.
4fd01f
	harden-referral-path: yes
4fd01f
4365f2
	# Harden against algorithm downgrade when multiple algorithms are
4365f2
	# advertised in the DS record.  If no, allows the weakest algorithm
4365f2
	# to validate the zone.
4365f2
	# harden-algo-downgrade: no
4365f2
4365f2
	# Sent minimum amount of information to upstream servers to enhance
4365f2
	# privacy. Only sent minimum required labels of the QNAME and set QTYPE
4365f2
	# to NS when possible.
4365f2
	# qname-minimisation: no
4365f2
4365f2
	# QNAME minimisation in strict mode. Do not fall-back to sending full
4365f2
	# QNAME to potentially broken nameservers. A lot of domains will not be
4365f2
	# resolvable when this option in enabled.
4365f2
	# This option only has effect when qname-minimisation is enabled.
4365f2
	# qname-minimisation-strict: no
4365f2
4fd01f
	# Use 0x20-encoded random bits in the query to foil spoof attempts.
4fd01f
	# This feature is an experimental implementation of draft dns-0x20.
4365f2
	# use-caps-for-id: no
4365f2
4365f2
	# Domains (and domains in them) without support for dns-0x20 and
4365f2
	# the fallback fails because they keep sending different answers.
4365f2
	# caps-whitelist: "licdn.com"
4365f2
	# caps-whitelist: "senderbase.org"
4fd01f
4fd01f
	# Enforce privacy of these addresses. Strips them away from answers.
4fd01f
	# It may cause DNSSEC validation to additionally mark it as bogus.
4fd01f
	# Protects against 'DNS Rebinding' (uses browser as network proxy).
4fd01f
	# Only 'private-domain' and 'local-data' names are allowed to have
4fd01f
	# these private addresses. No default.
4fd01f
	# private-address: 10.0.0.0/8
4fd01f
	# private-address: 172.16.0.0/12
4fd01f
	# private-address: 192.168.0.0/16
4365f2
	# private-address: 169.254.0.0/16
4fd01f
	# private-address: fd00::/8
4fd01f
	# private-address: fe80::/10
4365f2
	# private-address: ::ffff:0:0/96
4fd01f
4fd01f
	# Allow the domain (and its subdomains) to contain private addresses.
4fd01f
	# local-data statements are allowed to contain private addresses too.
4fd01f
	# private-domain: "example.com"
4fd01f
4fd01f
	# If nonzero, unwanted replies are not only reported in statistics,
4fd01f
	# but also a running total is kept per thread. If it reaches the
4fd01f
	# threshold, a warning is printed and a defensive action is taken,
4fd01f
	# the cache is cleared to flush potential poison out of it.
4fd01f
	# A suggested value is 10000000, the default is 0 (turned off).
4fd01f
	unwanted-reply-threshold: 10000000
4fd01f
4fd01f
	# Do not query the following addresses. No DNS queries are sent there.
4fd01f
	# List one address per entry. List classless netblocks with /size,
4fd01f
	# do-not-query-address: 127.0.0.1/8
4fd01f
	# do-not-query-address: ::1
4fd01f
4fd01f
	# if yes, the above default do-not-query-address entries are present.
4fd01f
	# if no, localhost can be queried (for testing and debugging).
4fd01f
	# do-not-query-localhost: yes
4fd01f
4fd01f
	# if yes, perform prefetching of almost expired message cache entries.
4fd01f
	prefetch: yes
4fd01f
4fd01f
	# if yes, perform key lookups adjacent to normal lookups.
4fd01f
	prefetch-key: yes
4fd01f
4fd01f
	# if yes, Unbound rotates RRSet order in response.
4fd01f
	rrset-roundrobin: yes
4fd01f
4fd01f
	# if yes, Unbound doesn't insert authority/additional sections
4fd01f
	# into response messages when those sections are not required.
4fd01f
	minimal-responses: yes
4fd01f
4365f2
	# true to disable DNSSEC lameness check in iterator.
4365f2
	# disable-dnssec-lame-check: no
4365f2
4fd01f
	# module configuration of the server. A string with identifiers
4365f2
	# separated by spaces. Syntax: "[dns64] [validator] iterator"
4fd01f
	# module-config: "validator iterator"
4365f2
	module-config: "ipsecmod validator iterator"
4365f2
4365f2
	# File with trusted keys, kept uptodate using RFC5011 probes,
4365f2
	# initial file like trust-anchor-file, then it stores metadata.
4365f2
	# Use several entries, one per domain name, to track multiple zones.
4365f2
	#
4365f2
	# If you want to perform DNSSEC validation, run unbound-anchor before
4365f2
	# you start unbound (i.e. in the system boot scripts).  And enable:
4365f2
	# Please note usage of unbound-anchor root anchor is at your own risk
4365f2
	# and under the terms of our LICENSE (see that file in the source).
4365f2
	# auto-trust-anchor-file: "/var/lib/unbound/root.key"
4365f2
4365f2
	# trust anchor signaling sends a RFC8145 key tag query after priming.
4365f2
	trust-anchor-signaling: yes
4fd01f
4fd01f
	# File with DLV trusted keys. Same format as trust-anchor-file.
4fd01f
	# There can be only one DLV configured, it is trusted from root down.
4365f2
	# DLV is going to be decommissioned.  Please do not use it any more.
4365f2
	# dlv-anchor-file: "dlv.isc.org.key"
4fd01f
4fd01f
	# File with trusted keys for validation. Specify more than one file
4fd01f
	# with several entries, one file per entry.
4fd01f
	# Zone file format, with DS and DNSKEY entries.
4365f2
	# Note this gets out of date, use auto-trust-anchor-file please.
4fd01f
	# trust-anchor-file: ""
4fd01f
4fd01f
	# Trusted key for validation. DS or DNSKEY. specify the RR on a
4fd01f
	# single line, surrounded by "". TTL is ignored. class is IN default.
4365f2
	# Note this gets out of date, use auto-trust-anchor-file please.
4fd01f
	# (These examples are from August 2007 and may not be valid anymore).
4fd01f
	# trust-anchor: "nlnetlabs.nl. DNSKEY 257 3 5 AQPzzTWMz8qSWIQlfRnPckx2BiVmkVN6LPupO3mbz7FhLSnm26n6iG9N Lby97Ji453aWZY3M5/xJBSOS2vWtco2t8C0+xeO1bc/d6ZTy32DHchpW 6rDH1vp86Ll+ha0tmwyy9QP7y2bVw5zSbFCrefk8qCUBgfHm9bHzMG1U BYtEIQ=="
4fd01f
	# trust-anchor: "jelte.nlnetlabs.nl. DS 42860 5 1 14D739EB566D2B1A5E216A0BA4D17FA9B038BE4A"
4fd01f
4fd01f
	# File with trusted keys for validation. Specify more than one file
4fd01f
	# with several entries, one file per entry. Like trust-anchor-file
4fd01f
	# but has a different file format. Format is BIND-9 style format,
4fd01f
	# the trusted-keys { name flag proto algo "key"; }; clauses are read.
4365f2
	# you need external update procedures to track changes in keys.
4fd01f
	# trusted-keys-file: ""
4fd01f
	#
4fd01f
	trusted-keys-file: /etc/unbound/keys.d/*.key
4fd01f
	auto-trust-anchor-file: "/var/lib/unbound/root.key"
4fd01f
4fd01f
	# Ignore chain of trust. Domain is treated as insecure.
4fd01f
	# domain-insecure: "example.com"
4fd01f
4fd01f
	# Override the date for validation with a specific fixed date.
4fd01f
	# Do not set this unless you are debugging signature inception
4365f2
	# and expiration. "" or "0" turns the feature off. -1 ignores date.
4fd01f
	# val-override-date: ""
4fd01f
4fd01f
	# The time to live for bogus data, rrsets and messages. This avoids
4fd01f
	# some of the revalidation, until the time interval expires. in secs.
4fd01f
	# val-bogus-ttl: 60
4fd01f
4fd01f
	# The signature inception and expiration dates are allowed to be off
4365f2
	# by 10% of the signature lifetime (expir-incep) from our local clock.
4fd01f
	# This leeway is capped with a minimum and a maximum.  In seconds.
4fd01f
	# val-sig-skew-min: 3600
4fd01f
	# val-sig-skew-max: 86400
4fd01f
4fd01f
	# Should additional section of secure message also be kept clean of
4fd01f
	# unsecure data. Useful to shield the users of this validator from
4fd01f
	# potential bogus data in the additional section. All unsigned data
4fd01f
	# in the additional section is removed from secure messages.
4fd01f
	val-clean-additional: yes
4fd01f
4fd01f
	# Turn permissive mode on to permit bogus messages. Thus, messages
4fd01f
	# for which security checks failed will be returned to clients,
4fd01f
	# instead of SERVFAIL. It still performs the security checks, which
4fd01f
	# result in interesting log files and possibly the AD bit in
4fd01f
	# replies if the message is found secure. The default is off.
4fd01f
	# NOTE: TURNING THIS ON DISABLES ALL DNSSEC SECURITY
4fd01f
	val-permissive-mode: no
4fd01f
4365f2
	# Ignore the CD flag in incoming queries and refuse them bogus data.
4365f2
	# Enable it if the only clients of unbound are legacy servers (w2008)
4365f2
	# that set CD but cannot validate themselves.
4365f2
	# ignore-cd-flag: no
4365f2
4365f2
	# Serve expired responses from cache, with TTL 0 in the response,
4365f2
	# and then attempt to fetch the data afresh.
4365f2
	# serve-expired: no
4365f2
4fd01f
	# Have the validator log failed validations for your diagnosis.
4fd01f
	# 0: off. 1: A line per failed user query. 2: With reason and bad IP.
4fd01f
	val-log-level: 1
4fd01f
4fd01f
	# It is possible to configure NSEC3 maximum iteration counts per
4fd01f
	# keysize. Keep this table very short, as linear search is done.
4fd01f
	# A message with an NSEC3 with larger count is marked insecure.
4fd01f
	# List in ascending order the keysize and count values.
4fd01f
	# val-nsec3-keysize-iterations: "1024 150 2048 500 4096 2500"
4fd01f
4fd01f
	# instruct the auto-trust-anchor-file probing to add anchors after ttl.
4fd01f
	# add-holddown: 2592000 # 30 days
4fd01f
4fd01f
	# instruct the auto-trust-anchor-file probing to del anchors after ttl.
4fd01f
	# del-holddown: 2592000 # 30 days
4fd01f
4fd01f
	# auto-trust-anchor-file probing removes missing anchors after ttl.
4fd01f
	# If the value 0 is given, missing anchors are not removed.
4fd01f
	# keep-missing: 31622400 # 366 days
4fd01f
4365f2
	# debug option that allows very small holddown times for key rollover,
4365f2
	# otherwise the RFC mandates probe intervals must be at least 1 hour.
4365f2
	# permit-small-holddown: no
4365f2
4fd01f
	# the amount of memory to use for the key cache.
4fd01f
	# plain value in bytes or you can append k, m or G. default is "4Mb".
4fd01f
	# key-cache-size: 4m
4fd01f
4fd01f
	# the number of slabs to use for the key cache.
4fd01f
	# the number of slabs must be a power of 2.
4fd01f
	# more slabs reduce lock contention, but fragment memory usage.
4fd01f
	# key-cache-slabs: 4
4fd01f
4fd01f
	# the amount of memory to use for the negative cache (used for DLV).
4fd01f
	# plain value in bytes or you can append k, m or G. default is "1Mb".
4fd01f
	# neg-cache-size: 1m
4fd01f
4365f2
	# By default, for a number of zones a small default 'nothing here'
4365f2
	# reply is built-in.  Query traffic is thus blocked.  If you
4365f2
	# wish to serve such zone you can unblock them by uncommenting one
4365f2
	# of the nodefault statements below.
4365f2
	# You may also have to use domain-insecure: zone to make DNSSEC work,
4365f2
	# unless you have your own trust anchors for this zone.
4365f2
	# local-zone: "localhost." nodefault
4365f2
	# local-zone: "127.in-addr.arpa." nodefault
4365f2
	# 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
4365f2
	# local-zone: "onion." nodefault
4365f2
	# local-zone: "test." nodefault
4365f2
	# local-zone: "invalid." nodefault
4365f2
	# local-zone: "10.in-addr.arpa." nodefault
4365f2
	# local-zone: "16.172.in-addr.arpa." nodefault
4365f2
	# local-zone: "17.172.in-addr.arpa." nodefault
4365f2
	# local-zone: "18.172.in-addr.arpa." nodefault
4365f2
	# local-zone: "19.172.in-addr.arpa." nodefault
4365f2
	# local-zone: "20.172.in-addr.arpa." nodefault
4365f2
	# local-zone: "21.172.in-addr.arpa." nodefault
4365f2
	# local-zone: "22.172.in-addr.arpa." nodefault
4365f2
	# local-zone: "23.172.in-addr.arpa." nodefault
4365f2
	# local-zone: "24.172.in-addr.arpa." nodefault
4365f2
	# local-zone: "25.172.in-addr.arpa." nodefault
4365f2
	# local-zone: "26.172.in-addr.arpa." nodefault
4365f2
	# local-zone: "27.172.in-addr.arpa." nodefault
4365f2
	# local-zone: "28.172.in-addr.arpa." nodefault
4365f2
	# local-zone: "29.172.in-addr.arpa." nodefault
4365f2
	# local-zone: "30.172.in-addr.arpa." nodefault
4365f2
	# local-zone: "31.172.in-addr.arpa." nodefault
4365f2
	# local-zone: "168.192.in-addr.arpa." nodefault
4365f2
	# local-zone: "0.in-addr.arpa." nodefault
4365f2
	# local-zone: "254.169.in-addr.arpa." nodefault
4365f2
	# local-zone: "2.0.192.in-addr.arpa." nodefault
4365f2
	# local-zone: "100.51.198.in-addr.arpa." nodefault
4365f2
	# local-zone: "113.0.203.in-addr.arpa." nodefault
4365f2
	# local-zone: "255.255.255.255.in-addr.arpa." nodefault
4365f2
	# 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
4365f2
	# local-zone: "d.f.ip6.arpa." nodefault
4365f2
	# local-zone: "8.e.f.ip6.arpa." nodefault
4365f2
	# local-zone: "9.e.f.ip6.arpa." nodefault
4365f2
	# local-zone: "a.e.f.ip6.arpa." nodefault
4365f2
	# local-zone: "b.e.f.ip6.arpa." nodefault
4365f2
	# local-zone: "8.b.d.0.1.0.0.2.ip6.arpa." nodefault
4365f2
	# And for 64.100.in-addr.arpa. to 127.100.in-addr.arpa.
4365f2
4365f2
	# If unbound is running service for the local host then it is useful
4365f2
	# to perform lan-wide lookups to the upstream, and unblock the
4365f2
	# long list of local-zones above.  If this unbound is a dns server
4365f2
	# for a network of computers, disabled is better and stops information
4365f2
	# leakage of local lan information.
4365f2
	# unblock-lan-zones: no
4365f2
4365f2
	# The insecure-lan-zones option disables validation for
4365f2
	# these zones, as if they were all listed as domain-insecure.
4365f2
	# insecure-lan-zones: no
4365f2
4365f2
	# The insecure-lan-zones option disables validation for
4365f2
	# these zones, as if they were all listed as domain-insecure.
4365f2
	# insecure-lan-zones: no
4365f2
4fd01f
	# a number of locally served zones can be configured.
4fd01f
	# 	local-zone: <zone> <type>
4fd01f
	# 	local-data: "<resource record string>"
4fd01f
	# o deny serves local data (if any), else, drops queries.
4fd01f
	# o refuse serves local data (if any), else, replies with error.
4fd01f
	# o static serves local data, else, nxdomain or nodata answer.
4365f2
	# o transparent gives local data, but resolves normally for other names
4fd01f
	# o redirect serves the zone data for any subdomain in the zone.
4fd01f
	# o nodefault can be used to normally resolve AS112 zones.
4fd01f
	# o typetransparent resolves normally for other types and other names
4365f2
	# o inform resolves normally, but logs client IP address
4365f2
	# o inform_deny drops queries and logs client IP address
4365f2
	# o always_transparent, always_refuse, always_nxdomain, resolve in
4365f2
	#   that way but ignore local data for that name.
4fd01f
	#
4fd01f
	# defaults are localhost address, reverse for 127.0.0.1 and ::1
4fd01f
	# and nxdomain for AS112 zones. If you configure one of these zones
4fd01f
	# the default content is omitted, or you can omit it with 'nodefault'.
4fd01f
	#
4fd01f
	# If you configure local-data without specifying local-zone, by
4fd01f
	# default a transparent local-zone is created for the data.
4fd01f
	#
4fd01f
	# You can add locally served data with
4fd01f
	# local-zone: "local." static
4fd01f
	# local-data: "mycomputer.local. IN A 192.0.2.51"
4fd01f
	# local-data: 'mytext.local TXT "content of text record"'
4fd01f
	#
4fd01f
	# You can override certain queries with
4fd01f
	# local-data: "adserver.example.com A 127.0.0.1"
4fd01f
	#
4fd01f
	# You can redirect a domain to a fixed address with
4fd01f
	# (this makes example.com, www.example.com, etc, all go to 192.0.2.3)
4fd01f
	# local-zone: "example.com" redirect
4fd01f
	# local-data: "example.com A 192.0.2.3"
4fd01f
	#
4fd01f
	# Shorthand to make PTR records, "IPv4 name" or "IPv6 name".
4fd01f
	# You can also add PTR records using local-data directly, but then
4fd01f
	# you need to do the reverse notation yourself.
4fd01f
	# local-data-ptr: "192.0.2.3 www.example.com"
4fd01f
4fd01f
	include: /etc/unbound/local.d/*.conf
4fd01f
4365f2
	# tag a localzone with a list of tag names (in "" with spaces between)
4365f2
	# local-zone-tag: "example.com" "tag2 tag3"
4365f2
4365f2
	# add a netblock specific override to a localzone, with zone type
4365f2
	# local-zone-override: "example.com" 192.0.2.0/24 refuse
4365f2
4fd01f
	# service clients over SSL (on the TCP sockets), with plain DNS inside
4fd01f
	# the SSL stream.  Give the certificate to use and private key.
4fd01f
	# default is "" (disabled).  requires restart to take effect.
4fd01f
	# ssl-service-key: "/etc/unbound/unbound_server.key"
4fd01f
	# ssl-service-pem: "/etc/unbound/unbound_server.pem"
4fd01f
	# ssl-port: 443
4365f2
	#
4fd01f
	# request upstream over SSL (with plain DNS inside the SSL stream).
4fd01f
	# Default is no.  Can be turned on and off with unbound-control.
4fd01f
	# ssl-upstream: no
4fd01f
4365f2
	# DNS64 prefix. Must be specified when DNS64 is use.
4365f2
	# Enable dns64 in module-config.  Used to synthesize IPv6 from IPv4.
4365f2
	# dns64-prefix: 64:ff9b::0/96
4365f2
4365f2
	# ratelimit for uncached, new queries, this limits recursion effort.
4365f2
	# ratelimiting is experimental, and may help against randomqueryflood.
4365f2
	# if 0(default) it is disabled, otherwise state qps allowed per zone.
4365f2
	# ratelimit: 0
4365f2
4365f2
	# ratelimits are tracked in a cache, size in bytes of cache (or k,m).
4365f2
	# ratelimit-size: 4m
4365f2
	# ratelimit cache slabs, reduces lock contention if equal to cpucount.
4365f2
	# ratelimit-slabs: 4
4365f2
4365f2
	# 0 blocks when ratelimited, otherwise let 1/xth traffic through
4365f2
	# ratelimit-factor: 10
4fd01f
4365f2
	# override the ratelimit for a specific domain name.
4365f2
	# give this setting multiple times to have multiple overrides.
4365f2
	# ratelimit-for-domain: example.com 1000
4365f2
	# override the ratelimits for all domains below a domain name
4365f2
	# can give this multiple times, the name closest to the zone is used.
4365f2
	# ratelimit-below-domain: com 1000
4365f2
4365f2
	# global query ratelimit for all ip addresses.
4365f2
	# feature is experimental.
4365f2
	# if 0(default) it is disabled, otherwise states qps allowed per ip address
4365f2
	# ip-ratelimit: 0
4365f2
4365f2
	# ip ratelimits are tracked in a cache, size in bytes of cache (or k,m).
4365f2
	# ip-ratelimit-size: 4m
4365f2
	# ip ratelimit cache slabs, reduces lock contention if equal to cpucount.
4365f2
	# ip-ratelimit-slabs: 4
4365f2
4365f2
	# 0 blocks when ip is ratelimited, otherwise let 1/xth traffic through
4365f2
	# ip-ratelimit-factor: 10
4365f2
4365f2
	# Specific options for ipsecmod.
4365f2
	#
4365f2
	# Enable or disable ipsecmod (it still needs to be defined in
4365f2
	# module-config above). Can be used when ipsecmod needs to be
4365f2
	# enabled/disabled via remote-control(below).
4365f2
	ipsecmod-enabled: no
4365f2
	#
4365f2
	# Path to executable external hook. It must be defined when ipsecmod is
4365f2
	# listed in module-config (above).
4365f2
	ipsecmod-hook: "/usr/libexec/ipsec/_unbound-hook"
4365f2
	#
4365f2
	# When enabled unbound will reply with SERVFAIL if the return value of
4365f2
	# the ipsecmod-hook is not 0.
4365f2
	# ipsecmod-strict: no
4365f2
	#
4365f2
	# Maximum time to live (TTL) for cached A/AAAA records with IPSECKEY.
4365f2
	# ipsecmod-max-ttl: 3600
4365f2
	#
4365f2
	# Reply with A/AAAA even if the relevant IPSECKEY is bogus. Mainly used for
4365f2
	# testing.
4365f2
	# ipsecmod-ignore-bogus: no
4365f2
	#
4365f2
	# Domains for which ipsecmod will be triggered. If not defined (default)
4365f2
	# all domains are treated as being whitelisted.
4365f2
	# ipsecmod-whitelist: "example.com"
4365f2
	# ipsecmod-whitelist: "nlnetlabs.nl"
4365f2
4365f2
# Python config section. To enable:
4365f2
# o use --with-pythonmodule to configure before compiling.
4365f2
# o list python in the module-config string (above) to enable.
4365f2
# o and give a python-script to run.
4365f2
python:
4365f2
	# Script file to load
4365f2
	# python-script: "/etc/unbound/ubmodule-tst.py"
4fd01f
4fd01f
# Remote control config section.
4fd01f
remote-control:
4fd01f
	# Enable remote control with unbound-control(8) here.
4fd01f
	# set up the keys and certificates with unbound-control-setup.
4fd01f
	# Note: required for unbound-munin package
4fd01f
	control-enable: yes
4fd01f
4365f2
	# Set to no and use an absolute path as control-interface to use
4365f2
	# a unix local named pipe for unbound-control.
4365f2
	# control-use-cert: yes
4365f2
4fd01f
	# what interfaces are listened to for remote control.
4fd01f
	# give 0.0.0.0 and ::0 to listen to all interfaces.
4fd01f
	# control-interface: 127.0.0.1
4fd01f
	# control-interface: ::1
4fd01f
4fd01f
	# port number for remote control operations.
4365f2
	# control-port: 8953
4fd01f
4fd01f
	# unbound server key file.
4fd01f
	server-key-file: "/etc/unbound/unbound_server.key"
4fd01f
4fd01f
	# unbound server certificate file.
4fd01f
	server-cert-file: "/etc/unbound/unbound_server.pem"
4fd01f
4fd01f
	# unbound-control key file.
4fd01f
	control-key-file: "/etc/unbound/unbound_control.key"
4fd01f
4fd01f
	# unbound-control certificate file.
4fd01f
	control-cert-file: "/etc/unbound/unbound_control.pem"
4fd01f
4fd01f
# Stub and Forward zones
4fd01f
include: /etc/unbound/conf.d/*.conf
4fd01f
4fd01f
# Stub zones.
4fd01f
# Create entries like below, to make all queries for 'example.com' and
4fd01f
# 'example.org' go to the given list of nameservers. list zero or more
4fd01f
# nameservers by hostname or by ipaddress. If you set stub-prime to yes,
4fd01f
# the list is treated as priming hints (default is no).
4365f2
# With stub-first yes, it attempts without the stub if it fails.
4365f2
# Consider adding domain-insecure: name and local-zone: name nodefault
4365f2
# to the server: section if the stub is a locally served zone.
4fd01f
# stub-zone:
4fd01f
#	name: "example.com"
4fd01f
#	stub-addr: 192.0.2.68
4365f2
#	stub-prime: no
4365f2
#	stub-first: no
4365f2
#	stub-ssl-upstream: no
4fd01f
# stub-zone:
4fd01f
#	name: "example.org"
4fd01f
#	stub-host: ns.example.com.
4365f2
4fd01f
# You can now also dynamically create and delete stub-zone's using
4fd01f
# unbound-control stub_add domain.com 1.2.3.4 5.6.7.8
4fd01f
# unbound-control stub_remove domain.com 1.2.3.4 5.6.7.8
4fd01f
4fd01f
# Forward zones
4fd01f
# Create entries like below, to make all queries for 'example.com' and
4fd01f
# 'example.org' go to the given list of servers. These servers have to handle
4fd01f
# recursion to other nameservers. List zero or more nameservers by hostname
4fd01f
# or by ipaddress. Use an entry with name "." to forward all queries.
4fd01f
# If you enable forward-first, it attempts without the forward if it fails.
4fd01f
# forward-zone:
4fd01f
# 	name: "example.com"
4fd01f
# 	forward-addr: 192.0.2.68
4fd01f
# 	forward-addr: 192.0.2.73@5355  # forward to port 5355.
4fd01f
# 	forward-first: no
4365f2
# 	forward-ssl-upstream: no
4fd01f
# forward-zone:
4fd01f
# 	name: "example.org"
4fd01f
# 	forward-host: fwd.example.com
4fd01f
#
4fd01f
# You can now also dynamically create and delete forward-zone's using
4fd01f
# unbound-control forward_add domain.com 1.2.3.4 5.6.7.8
4fd01f
# unbound-control forward_remove domain.com 1.2.3.4 5.6.7.8
4365f2
4365f2
# Views
4365f2
# Create named views. Name must be unique. Map views to requests using
4365f2
# the access-control-view option. Views can contain zero or more local-zone
4365f2
# and local-data options. Options from matching views will override global
4365f2
# options. Global options will be used if no matching view is found.
4365f2
# With view-first yes, it will try to answer using the global local-zone and
4365f2
# local-data elements if there is no view specific match.
4365f2
# view:
4365f2
#	name: "viewname"
4365f2
#	local-zone: "example.com" redirect
4365f2
#	local-data: "example.com A 192.0.2.3"
4365f2
# 	local-data-ptr: "192.0.2.3 www.example.com"
4365f2
#	view-first: no
4365f2
# view:
4365f2
#	name: "anotherview"
4365f2
#	local-zone: "example.com" refuse
4365f2