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.
4fd01f
	# Needed for munin plugin
4fd01f
	statistics-interval: 0
4fd01f
4fd01f
	# enable cumulative statistics, without clearing them after printing.
4fd01f
	# Needed 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.
4fd01f
	# Needed for munin plugin
4fd01f
	extended-statistics: yes
4fd01f
4fd01f
	# number of threads to create. 1 disables threading.
4fd01f
	num-threads: 2
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.
4fd01f
	# specify every interface 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
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
4fd01f
	# number of ports to allocate per thread, determines the size of the
4fd01f
	# port range that can be open simultaneously.
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.
4fd01f
	# outgoing-port-permit: 32768
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.
4fd01f
	# outgoing-port-avoid: "3200-3208"
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
4fd01f
	# EDNS reassembly buffer to advertise to UDP peers (the actual buffer
4fd01f
	# is set with msg-buffer-size). 1480 can solve fragmentation (timeouts).
4fd01f
	# edns-buffer-size: 4096
4fd01f
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
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
4fd01f
	# the time to live (TTL) value for cached roundtrip times, lameness
4fd01f
	# and EDNS version information for hosts. In seconds.
4fd01f
	# infra-host-ttl: 900
4fd01f
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
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
4fd01f
	# Detach from the terminal, run in background, "yes" or "no".
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)
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
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.
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
4fd01f
4fd01f
	# print UTC timestamp in ascii to logfile, default is epoch in seconds.
4fd01f
	log-time-ascii: yes
4fd01f
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.
4fd01f
	# get one from ftp://FTP.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
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
4fd01f
	# Use 0x20-encoded random bits in the query to foil spoof attempts.
4fd01f
	# This feature is an experimental implementation of draft dns-0x20.
4fd01f
	# (this now fails on all GoDaddy customer domains, so disabled)
4fd01f
	use-caps-for-id: no
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
4fd01f
	# private-address: 192.254.0.0/16
4fd01f
	# private-address: fd00::/8
4fd01f
	# private-address: fe80::/10
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
4fd01f
	# module configuration of the server. A string with identifiers
4fd01f
	# separated by spaces. "iterator" or "validator iterator"
4fd01f
	# module-config: "validator iterator"
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.
4fd01f
	# Downloaded from https://secure.isc.org/ops/dlv/dlv.isc.org.key
9d429a
	#
9d429a
	# ISC's DLV registry is being deprecated in the near future, therefore
9d429a
	# it is not used in the default configuration. The use of ISC's DLV
9d429a
	# registry is discouraged.
9d429a
	# dlv-anchor-file: "/etc/unbound/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.
4fd01f
	# trust-anchor-file: ""
4fd01f
4fd01f
	# File with trusted keys, kept uptodate using RFC5011 probes,
4fd01f
	# initial file like trust-anchor-file, then it stores metadata.
4fd01f
	# Use several entries, one per domain name, to track multiple zones.
4fd01f
	# auto-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.
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.
4fd01f
	# trusted-keys-file: ""
4fd01f
	#
4fd01f
	# trusted-keys-file: /etc/unbound/rootkey.bind
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
4fd01f
	# and expiration. "" or "0" turns the feature off.
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
4fd01f
	# by 10% of the lifetime of the signature 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
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
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
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.
4fd01f
	# o transparent serves 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
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
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
4fd01f
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
4fd01f
## Python config section. To enable:
4fd01f
## o use --with-pythonmodule to configure before compiling.
4fd01f
## o list python in the module-config string (above) to enable.
4fd01f
## o and give a python-script to run.
4fd01f
#python:
4fd01f
#	# Script file to load
4fd01f
#	# python-script: "/etc/unbound/ubmodule-tst.py"
4fd01f
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
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.
4fd01f
	# control-port: 953
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
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).
4fd01f
# stub-zone:
4fd01f
#	name: "example.com"
4fd01f
#	stub-addr: 192.0.2.68
4fd01f
#	stub-prime: "no"
4fd01f
# stub-zone:
4fd01f
#	name: "example.org"
4fd01f
#	stub-host: ns.example.com.
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
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