|
|
59cea9 |
#
|
|
|
59cea9 |
# See unbound.conf(5) man page.
|
|
|
59cea9 |
#
|
|
|
59cea9 |
# this is a comment.
|
|
|
59cea9 |
|
|
|
59cea9 |
#Use this to include other text into the file.
|
|
|
59cea9 |
#include: "otherfile.conf"
|
|
|
59cea9 |
|
|
|
59cea9 |
# The server clause sets the main parameters.
|
|
|
59cea9 |
server:
|
|
|
59cea9 |
# whitespace is not necessary, but looks cleaner.
|
|
|
59cea9 |
|
|
|
59cea9 |
# verbosity number, 0 is least verbose. 1 is default.
|
|
|
59cea9 |
verbosity: 1
|
|
|
59cea9 |
|
|
|
59cea9 |
# print statistics to the log (for every thread) every N seconds.
|
|
|
59cea9 |
# Set to "" or 0 to disable. Default is disabled.
|
|
|
59cea9 |
# Needed for munin plugin
|
|
|
59cea9 |
statistics-interval: 0
|
|
|
59cea9 |
|
|
|
59cea9 |
# enable cumulative statistics, without clearing them after printing.
|
|
|
59cea9 |
# Needed for munin plugin
|
|
|
59cea9 |
statistics-cumulative: no
|
|
|
59cea9 |
|
|
|
59cea9 |
# enable extended statistics (query types, answer codes, status)
|
|
|
59cea9 |
# printed from unbound-control. default off, because of speed.
|
|
|
59cea9 |
# Needed for munin plugin
|
|
|
59cea9 |
extended-statistics: yes
|
|
|
59cea9 |
|
|
|
59cea9 |
# number of threads to create. 1 disables threading.
|
|
|
59cea9 |
num-threads: 2
|
|
|
59cea9 |
|
|
|
59cea9 |
# specify the interfaces to answer queries from by ip-address.
|
|
|
59cea9 |
# The default is to listen to localhost (127.0.0.1 and ::1).
|
|
|
59cea9 |
# specify 0.0.0.0 and ::0 to bind to all available interfaces.
|
|
|
59cea9 |
# specify every interface on a new 'interface:' labelled line.
|
|
|
59cea9 |
# The listen interfaces are not changed on reload, only on restart.
|
|
|
59cea9 |
# interface: 0.0.0.0
|
|
|
59cea9 |
# interface: ::0
|
|
|
59cea9 |
# interface: 192.0.2.153
|
|
|
59cea9 |
# interface: 192.0.2.154
|
|
|
59cea9 |
# interface: 2001:DB8::5
|
|
|
59cea9 |
#
|
|
|
59cea9 |
# for dns over tls and raw dns over port 80
|
|
|
59cea9 |
# interface: 0.0.0.0@443
|
|
|
59cea9 |
# interface: ::0@443
|
|
|
59cea9 |
# interface: 0.0.0.0@80
|
|
|
59cea9 |
# interface: ::0@80
|
|
|
59cea9 |
|
|
|
59cea9 |
# enable this feature to copy the source address of queries to reply.
|
|
|
59cea9 |
# Socket options are not supported on all platforms. experimental.
|
|
|
59cea9 |
# interface-automatic: yes
|
|
|
59cea9 |
#
|
|
|
59cea9 |
# NOTE: Enable this option when specifying interface 0.0.0.0 or ::0
|
|
|
59cea9 |
# NOTE: Disabled per Fedora policy not to listen to * on default install
|
|
|
59cea9 |
# NOTE: If deploying on non-default port, eg 80/443, this needs to be disabled
|
|
|
59cea9 |
interface-automatic: no
|
|
|
59cea9 |
|
|
|
59cea9 |
# port to answer queries from
|
|
|
59cea9 |
# port: 53
|
|
|
59cea9 |
|
|
|
59cea9 |
# specify the interfaces to send outgoing queries to authoritative
|
|
|
59cea9 |
# server from by ip-address. If none, the default (all) interface
|
|
|
59cea9 |
# is used. Specify every interface on a 'outgoing-interface:' line.
|
|
|
59cea9 |
# outgoing-interface: 192.0.2.153
|
|
|
59cea9 |
# outgoing-interface: 2001:DB8::5
|
|
|
59cea9 |
# outgoing-interface: 2001:DB8::6
|
|
|
59cea9 |
|
|
|
59cea9 |
# number of ports to allocate per thread, determines the size of the
|
|
|
59cea9 |
# port range that can be open simultaneously.
|
|
|
59cea9 |
# outgoing-range: 4096
|
|
|
59cea9 |
|
|
|
59cea9 |
# permit unbound to use this port number or port range for
|
|
|
59cea9 |
# making outgoing queries, using an outgoing interface.
|
|
|
59cea9 |
# outgoing-port-permit: 32768
|
|
|
59cea9 |
|
|
|
59cea9 |
# deny unbound the use this of port number or port range for
|
|
|
59cea9 |
# making outgoing queries, using an outgoing interface.
|
|
|
59cea9 |
# Use this to make sure unbound does not grab a UDP port that some
|
|
|
59cea9 |
# other server on this computer needs. The default is to avoid
|
|
|
59cea9 |
# IANA-assigned port numbers.
|
|
|
59cea9 |
# outgoing-port-avoid: "3200-3208"
|
|
|
59cea9 |
|
|
|
59cea9 |
# number of outgoing simultaneous tcp buffers to hold per thread.
|
|
|
59cea9 |
# outgoing-num-tcp: 10
|
|
|
59cea9 |
|
|
|
59cea9 |
# number of incoming simultaneous tcp buffers to hold per thread.
|
|
|
59cea9 |
# incoming-num-tcp: 10
|
|
|
59cea9 |
|
|
|
59cea9 |
# buffer size for UDP port 53 incoming (SO_RCVBUF socket option).
|
|
|
59cea9 |
# 0 is system default. Use 4m to catch query spikes for busy servers.
|
|
|
59cea9 |
# so-rcvbuf: 0
|
|
|
59cea9 |
|
|
|
59cea9 |
# buffer size for UDP port 53 outgoing (SO_SNDBUF socket option).
|
|
|
59cea9 |
# 0 is system default. Use 4m to handle spikes on very busy servers.
|
|
|
59cea9 |
# so-sndbuf: 0
|
|
|
59cea9 |
|
|
|
59cea9 |
# EDNS reassembly buffer to advertise to UDP peers (the actual buffer
|
|
|
59cea9 |
# is set with msg-buffer-size). 1480 can solve fragmentation (timeouts).
|
|
|
59cea9 |
# edns-buffer-size: 4096
|
|
|
59cea9 |
|
|
|
59cea9 |
# buffer size for handling DNS data. No messages larger than this
|
|
|
59cea9 |
# size can be sent or received, by UDP or TCP. In bytes.
|
|
|
59cea9 |
# msg-buffer-size: 65552
|
|
|
59cea9 |
|
|
|
59cea9 |
# the amount of memory to use for the message cache.
|
|
|
59cea9 |
# plain value in bytes or you can append k, m or G. default is "4Mb".
|
|
|
59cea9 |
# msg-cache-size: 4m
|
|
|
59cea9 |
|
|
|
59cea9 |
# the number of slabs to use for the message cache.
|
|
|
59cea9 |
# the number of slabs must be a power of 2.
|
|
|
59cea9 |
# more slabs reduce lock contention, but fragment memory usage.
|
|
|
59cea9 |
# msg-cache-slabs: 4
|
|
|
59cea9 |
|
|
|
59cea9 |
# the number of queries that a thread gets to service.
|
|
|
59cea9 |
# num-queries-per-thread: 1024
|
|
|
59cea9 |
|
|
|
59cea9 |
# if very busy, 50% queries run to completion, 50% get timeout in msec
|
|
|
59cea9 |
# jostle-timeout: 200
|
|
|
59cea9 |
|
|
|
59cea9 |
# the amount of memory to use for the RRset cache.
|
|
|
59cea9 |
# plain value in bytes or you can append k, m or G. default is "4Mb".
|
|
|
59cea9 |
# rrset-cache-size: 4m
|
|
|
59cea9 |
|
|
|
59cea9 |
# the number of slabs to use for the RRset cache.
|
|
|
59cea9 |
# the number of slabs must be a power of 2.
|
|
|
59cea9 |
# more slabs reduce lock contention, but fragment memory usage.
|
|
|
59cea9 |
# rrset-cache-slabs: 4
|
|
|
59cea9 |
|
|
|
59cea9 |
# the time to live (TTL) value lower bound, in seconds. Default 0.
|
|
|
59cea9 |
# If more than an hour could easily give trouble due to stale data.
|
|
|
59cea9 |
# cache-min-ttl: 0
|
|
|
59cea9 |
|
|
|
59cea9 |
# the time to live (TTL) value cap for RRsets and messages in the
|
|
|
59cea9 |
# cache. Items are not cached for longer. In seconds.
|
|
|
59cea9 |
# cache-max-ttl: 86400
|
|
|
59cea9 |
|
|
|
59cea9 |
# the time to live (TTL) value for cached roundtrip times, lameness
|
|
|
59cea9 |
# and EDNS version information for hosts. In seconds.
|
|
|
59cea9 |
# infra-host-ttl: 900
|
|
|
59cea9 |
|
|
|
59cea9 |
# the number of slabs to use for the Infrastructure cache.
|
|
|
59cea9 |
# the number of slabs must be a power of 2.
|
|
|
59cea9 |
# more slabs reduce lock contention, but fragment memory usage.
|
|
|
59cea9 |
# infra-cache-slabs: 4
|
|
|
59cea9 |
|
|
|
59cea9 |
# the maximum number of hosts that are cached (roundtrip, EDNS, lame).
|
|
|
59cea9 |
# infra-cache-numhosts: 10000
|
|
|
59cea9 |
|
|
|
59cea9 |
# Enable IPv4, "yes" or "no".
|
|
|
59cea9 |
# do-ip4: yes
|
|
|
59cea9 |
|
|
|
59cea9 |
# Enable IPv6, "yes" or "no".
|
|
|
59cea9 |
# do-ip6: yes
|
|
|
59cea9 |
|
|
|
59cea9 |
# Enable UDP, "yes" or "no".
|
|
|
59cea9 |
# NOTE: if setting up an unbound on tls443 for public use, you might want to
|
|
|
59cea9 |
# disable UDP to avoid being used in DNS amplification attacks.
|
|
|
59cea9 |
# do-udp: yes
|
|
|
59cea9 |
|
|
|
59cea9 |
# Enable TCP, "yes" or "no".
|
|
|
59cea9 |
# do-tcp: yes
|
|
|
59cea9 |
|
|
|
59cea9 |
# upstream connections use TCP only (and no UDP), "yes" or "no"
|
|
|
59cea9 |
# useful for tunneling scenarios, default no.
|
|
|
59cea9 |
# tcp-upstream: no
|
|
|
59cea9 |
|
|
|
59cea9 |
# Detach from the terminal, run in background, "yes" or "no".
|
|
|
59cea9 |
# do-daemonize: yes
|
|
|
59cea9 |
|
|
|
59cea9 |
# control which clients are allowed to make (recursive) queries
|
|
|
59cea9 |
# to this server. Specify classless netblocks with /size and action.
|
|
|
59cea9 |
# By default everything is refused, except for localhost.
|
|
|
59cea9 |
# Choose deny (drop message), refuse (polite error reply),
|
|
|
59cea9 |
# allow (recursive ok), allow_snoop (recursive and nonrecursive ok)
|
|
|
59cea9 |
# access-control: 0.0.0.0/0 refuse
|
|
|
59cea9 |
# access-control: 127.0.0.0/8 allow
|
|
|
59cea9 |
# access-control: ::0/0 refuse
|
|
|
59cea9 |
# access-control: ::1 allow
|
|
|
59cea9 |
# access-control: ::ffff:127.0.0.1 allow
|
|
|
59cea9 |
|
|
|
59cea9 |
# if given, a chroot(2) is done to the given directory.
|
|
|
59cea9 |
# i.e. you can chroot to the working directory, for example,
|
|
|
59cea9 |
# for extra security, but make sure all files are in that directory.
|
|
|
59cea9 |
#
|
|
|
59cea9 |
# If chroot is enabled, you should pass the configfile (from the
|
|
|
59cea9 |
# commandline) as a full path from the original root. After the
|
|
|
59cea9 |
# chroot has been performed the now defunct portion of the config
|
|
|
59cea9 |
# file path is removed to be able to reread the config after a reload.
|
|
|
59cea9 |
#
|
|
|
59cea9 |
# All other file paths (working dir, logfile, roothints, and
|
|
|
59cea9 |
# key files) can be specified in several ways:
|
|
|
59cea9 |
# o as an absolute path relative to the new root.
|
|
|
59cea9 |
# o as a relative path to the working directory.
|
|
|
59cea9 |
# o as an absolute path relative to the original root.
|
|
|
59cea9 |
# In the last case the path is adjusted to remove the unused portion.
|
|
|
59cea9 |
#
|
|
|
59cea9 |
# The pid file can be absolute and outside of the chroot, it is
|
|
|
59cea9 |
# written just prior to performing the chroot and dropping permissions.
|
|
|
59cea9 |
#
|
|
|
59cea9 |
# Additionally, unbound may need to access /dev/random (for entropy).
|
|
|
59cea9 |
# How to do this is specific to your OS.
|
|
|
59cea9 |
#
|
|
|
59cea9 |
# If you give "" no chroot is performed. The path must not end in a /.
|
|
|
59cea9 |
# chroot: "/var/lib/unbound"
|
|
|
59cea9 |
chroot: ""
|
|
|
59cea9 |
|
|
|
59cea9 |
# if given, user privileges are dropped (after binding port),
|
|
|
59cea9 |
# and the given username is assumed. Default is user "unbound".
|
|
|
59cea9 |
# If you give "" no privileges are dropped.
|
|
|
59cea9 |
username: "unbound"
|
|
|
59cea9 |
|
|
|
59cea9 |
# the working directory. The relative files in this config are
|
|
|
59cea9 |
# relative to this directory. If you give "" the working directory
|
|
|
59cea9 |
# is not changed.
|
|
|
59cea9 |
directory: "/etc/unbound"
|
|
|
59cea9 |
|
|
|
59cea9 |
# the log file, "" means log to stderr.
|
|
|
59cea9 |
# Use of this option sets use-syslog to "no".
|
|
|
59cea9 |
# logfile: ""
|
|
|
59cea9 |
|
|
|
59cea9 |
# Log to syslog(3) if yes. The log facility LOG_DAEMON is used to
|
|
|
59cea9 |
# log to, with identity "unbound". If yes, it overrides the logfile.
|
|
|
59cea9 |
# use-syslog: yes
|
|
|
59cea9 |
|
|
|
59cea9 |
# print UTC timestamp in ascii to logfile, default is epoch in seconds.
|
|
|
59cea9 |
log-time-ascii: yes
|
|
|
59cea9 |
|
|
|
59cea9 |
# the pid file. Can be an absolute path outside of chroot/work dir.
|
|
|
59cea9 |
pidfile: "/var/run/unbound/unbound.pid"
|
|
|
59cea9 |
|
|
|
59cea9 |
# file to read root hints from.
|
|
|
59cea9 |
# get one from ftp://FTP.INTERNIC.NET/domain/named.cache
|
|
|
59cea9 |
# root-hints: ""
|
|
|
59cea9 |
|
|
|
59cea9 |
# enable to not answer id.server and hostname.bind queries.
|
|
|
59cea9 |
# hide-identity: no
|
|
|
59cea9 |
|
|
|
59cea9 |
# enable to not answer version.server and version.bind queries.
|
|
|
59cea9 |
# hide-version: no
|
|
|
59cea9 |
|
|
|
59cea9 |
# the identity to report. Leave "" or default to return hostname.
|
|
|
59cea9 |
# identity: ""
|
|
|
59cea9 |
|
|
|
59cea9 |
# the version to report. Leave "" or default to return package version.
|
|
|
59cea9 |
# version: ""
|
|
|
59cea9 |
|
|
|
59cea9 |
# the target fetch policy.
|
|
|
59cea9 |
# series of integers describing the policy per dependency depth.
|
|
|
59cea9 |
# The number of values in the list determines the maximum dependency
|
|
|
59cea9 |
# depth the recursor will pursue before giving up. Each integer means:
|
|
|
59cea9 |
# -1 : fetch all targets opportunistically,
|
|
|
59cea9 |
# 0: fetch on demand,
|
|
|
59cea9 |
# positive value: fetch that many targets opportunistically.
|
|
|
59cea9 |
# Enclose the list of numbers between quotes ("").
|
|
|
59cea9 |
# target-fetch-policy: "3 2 1 0 0"
|
|
|
59cea9 |
|
|
|
59cea9 |
# Harden against very small EDNS buffer sizes.
|
|
|
59cea9 |
# harden-short-bufsize: no
|
|
|
59cea9 |
|
|
|
59cea9 |
# Harden against unseemly large queries.
|
|
|
59cea9 |
# harden-large-queries: no
|
|
|
59cea9 |
|
|
|
59cea9 |
# Harden against out of zone rrsets, to avoid spoofing attempts.
|
|
|
59cea9 |
harden-glue: yes
|
|
|
59cea9 |
|
|
|
59cea9 |
# Harden against receiving dnssec-stripped data. If you turn it
|
|
|
59cea9 |
# off, failing to validate dnskey data for a trustanchor will
|
|
|
59cea9 |
# trigger insecure mode for that zone (like without a trustanchor).
|
|
|
59cea9 |
# Default on, which insists on dnssec data for trust-anchored zones.
|
|
|
59cea9 |
harden-dnssec-stripped: yes
|
|
|
59cea9 |
|
|
|
59cea9 |
# Harden against queries that fall under dnssec-signed nxdomain names.
|
|
|
59cea9 |
harden-below-nxdomain: yes
|
|
|
59cea9 |
|
|
|
59cea9 |
# Harden the referral path by performing additional queries for
|
|
|
59cea9 |
# infrastructure data. Validates the replies (if possible).
|
|
|
59cea9 |
# Default off, because the lookups burden the server. Experimental
|
|
|
59cea9 |
# implementation of draft-wijngaards-dnsext-resolver-side-mitigation.
|
|
|
59cea9 |
harden-referral-path: yes
|
|
|
59cea9 |
|
|
|
59cea9 |
# Use 0x20-encoded random bits in the query to foil spoof attempts.
|
|
|
59cea9 |
# This feature is an experimental implementation of draft dns-0x20.
|
|
|
59cea9 |
# (this now fails on all GoDaddy customer domains, so disabled)
|
|
|
59cea9 |
use-caps-for-id: no
|
|
|
59cea9 |
|
|
|
59cea9 |
# Enforce privacy of these addresses. Strips them away from answers.
|
|
|
59cea9 |
# It may cause DNSSEC validation to additionally mark it as bogus.
|
|
|
59cea9 |
# Protects against 'DNS Rebinding' (uses browser as network proxy).
|
|
|
59cea9 |
# Only 'private-domain' and 'local-data' names are allowed to have
|
|
|
59cea9 |
# these private addresses. No default.
|
|
|
59cea9 |
# private-address: 10.0.0.0/8
|
|
|
59cea9 |
# private-address: 172.16.0.0/12
|
|
|
59cea9 |
# private-address: 192.168.0.0/16
|
|
|
59cea9 |
# private-address: 192.254.0.0/16
|
|
|
59cea9 |
# private-address: fd00::/8
|
|
|
59cea9 |
# private-address: fe80::/10
|
|
|
59cea9 |
|
|
|
59cea9 |
# Allow the domain (and its subdomains) to contain private addresses.
|
|
|
59cea9 |
# local-data statements are allowed to contain private addresses too.
|
|
|
59cea9 |
# private-domain: "example.com"
|
|
|
59cea9 |
|
|
|
59cea9 |
# If nonzero, unwanted replies are not only reported in statistics,
|
|
|
59cea9 |
# but also a running total is kept per thread. If it reaches the
|
|
|
59cea9 |
# threshold, a warning is printed and a defensive action is taken,
|
|
|
59cea9 |
# the cache is cleared to flush potential poison out of it.
|
|
|
59cea9 |
# A suggested value is 10000000, the default is 0 (turned off).
|
|
|
59cea9 |
unwanted-reply-threshold: 10000000
|
|
|
59cea9 |
|
|
|
59cea9 |
# Do not query the following addresses. No DNS queries are sent there.
|
|
|
59cea9 |
# List one address per entry. List classless netblocks with /size,
|
|
|
59cea9 |
# do-not-query-address: 127.0.0.1/8
|
|
|
59cea9 |
# do-not-query-address: ::1
|
|
|
59cea9 |
|
|
|
59cea9 |
# if yes, the above default do-not-query-address entries are present.
|
|
|
59cea9 |
# if no, localhost can be queried (for testing and debugging).
|
|
|
59cea9 |
# do-not-query-localhost: yes
|
|
|
59cea9 |
|
|
|
59cea9 |
# if yes, perform prefetching of almost expired message cache entries.
|
|
|
59cea9 |
prefetch: yes
|
|
|
59cea9 |
|
|
|
59cea9 |
# if yes, perform key lookups adjacent to normal lookups.
|
|
|
59cea9 |
prefetch-key: yes
|
|
|
59cea9 |
|
|
|
59cea9 |
# if yes, Unbound rotates RRSet order in response.
|
|
|
59cea9 |
rrset-roundrobin: yes
|
|
|
59cea9 |
|
|
|
59cea9 |
# if yes, Unbound doesn't insert authority/additional sections
|
|
|
59cea9 |
# into response messages when those sections are not required.
|
|
|
59cea9 |
minimal-responses: yes
|
|
|
59cea9 |
|
|
|
59cea9 |
# module configuration of the server. A string with identifiers
|
|
|
59cea9 |
# separated by spaces. "iterator" or "validator iterator"
|
|
|
59cea9 |
# module-config: "validator iterator"
|
|
|
59cea9 |
|
|
|
59cea9 |
# File with DLV trusted keys. Same format as trust-anchor-file.
|
|
|
59cea9 |
# There can be only one DLV configured, it is trusted from root down.
|
|
|
59cea9 |
# Downloaded from https://secure.isc.org/ops/dlv/dlv.isc.org.key
|
|
|
59cea9 |
#
|
|
|
59cea9 |
# ISC's DLV registry is being deprecated in the near future, therefore
|
|
|
59cea9 |
# it is not used in the default configuration. The use of ISC's DLV
|
|
|
59cea9 |
# registry is discouraged.
|
|
|
59cea9 |
# dlv-anchor-file: "/etc/unbound/dlv.isc.org.key"
|
|
|
59cea9 |
|
|
|
59cea9 |
# File with trusted keys for validation. Specify more than one file
|
|
|
59cea9 |
# with several entries, one file per entry.
|
|
|
59cea9 |
# Zone file format, with DS and DNSKEY entries.
|
|
|
59cea9 |
# trust-anchor-file: ""
|
|
|
59cea9 |
|
|
|
59cea9 |
# File with trusted keys, kept uptodate using RFC5011 probes,
|
|
|
59cea9 |
# initial file like trust-anchor-file, then it stores metadata.
|
|
|
59cea9 |
# Use several entries, one per domain name, to track multiple zones.
|
|
|
59cea9 |
# auto-trust-anchor-file: ""
|
|
|
59cea9 |
|
|
|
59cea9 |
# Trusted key for validation. DS or DNSKEY. specify the RR on a
|
|
|
59cea9 |
# single line, surrounded by "". TTL is ignored. class is IN default.
|
|
|
59cea9 |
# (These examples are from August 2007 and may not be valid anymore).
|
|
|
59cea9 |
# trust-anchor: "nlnetlabs.nl. DNSKEY 257 3 5 AQPzzTWMz8qSWIQlfRnPckx2BiVmkVN6LPupO3mbz7FhLSnm26n6iG9N Lby97Ji453aWZY3M5/xJBSOS2vWtco2t8C0+xeO1bc/d6ZTy32DHchpW 6rDH1vp86Ll+ha0tmwyy9QP7y2bVw5zSbFCrefk8qCUBgfHm9bHzMG1U BYtEIQ=="
|
|
|
59cea9 |
# trust-anchor: "jelte.nlnetlabs.nl. DS 42860 5 1 14D739EB566D2B1A5E216A0BA4D17FA9B038BE4A"
|
|
|
59cea9 |
|
|
|
59cea9 |
# File with trusted keys for validation. Specify more than one file
|
|
|
59cea9 |
# with several entries, one file per entry. Like trust-anchor-file
|
|
|
59cea9 |
# but has a different file format. Format is BIND-9 style format,
|
|
|
59cea9 |
# the trusted-keys { name flag proto algo "key"; }; clauses are read.
|
|
|
59cea9 |
# trusted-keys-file: ""
|
|
|
59cea9 |
#
|
|
|
59cea9 |
# trusted-keys-file: /etc/unbound/rootkey.bind
|
|
|
59cea9 |
trusted-keys-file: /etc/unbound/keys.d/*.key
|
|
|
59cea9 |
auto-trust-anchor-file: "/var/lib/unbound/root.key"
|
|
|
59cea9 |
|
|
|
59cea9 |
# Ignore chain of trust. Domain is treated as insecure.
|
|
|
59cea9 |
# domain-insecure: "example.com"
|
|
|
59cea9 |
|
|
|
59cea9 |
# Override the date for validation with a specific fixed date.
|
|
|
59cea9 |
# Do not set this unless you are debugging signature inception
|
|
|
59cea9 |
# and expiration. "" or "0" turns the feature off.
|
|
|
59cea9 |
# val-override-date: ""
|
|
|
59cea9 |
|
|
|
59cea9 |
# The time to live for bogus data, rrsets and messages. This avoids
|
|
|
59cea9 |
# some of the revalidation, until the time interval expires. in secs.
|
|
|
59cea9 |
# val-bogus-ttl: 60
|
|
|
59cea9 |
|
|
|
59cea9 |
# The signature inception and expiration dates are allowed to be off
|
|
|
59cea9 |
# by 10% of the lifetime of the signature from our local clock.
|
|
|
59cea9 |
# This leeway is capped with a minimum and a maximum. In seconds.
|
|
|
59cea9 |
# val-sig-skew-min: 3600
|
|
|
59cea9 |
# val-sig-skew-max: 86400
|
|
|
59cea9 |
|
|
|
59cea9 |
# Should additional section of secure message also be kept clean of
|
|
|
59cea9 |
# unsecure data. Useful to shield the users of this validator from
|
|
|
59cea9 |
# potential bogus data in the additional section. All unsigned data
|
|
|
59cea9 |
# in the additional section is removed from secure messages.
|
|
|
59cea9 |
val-clean-additional: yes
|
|
|
59cea9 |
|
|
|
59cea9 |
# Turn permissive mode on to permit bogus messages. Thus, messages
|
|
|
59cea9 |
# for which security checks failed will be returned to clients,
|
|
|
59cea9 |
# instead of SERVFAIL. It still performs the security checks, which
|
|
|
59cea9 |
# result in interesting log files and possibly the AD bit in
|
|
|
59cea9 |
# replies if the message is found secure. The default is off.
|
|
|
59cea9 |
# NOTE: TURNING THIS ON DISABLES ALL DNSSEC SECURITY
|
|
|
59cea9 |
val-permissive-mode: no
|
|
|
59cea9 |
|
|
|
59cea9 |
# Have the validator log failed validations for your diagnosis.
|
|
|
59cea9 |
# 0: off. 1: A line per failed user query. 2: With reason and bad IP.
|
|
|
59cea9 |
val-log-level: 1
|
|
|
59cea9 |
|
|
|
59cea9 |
# It is possible to configure NSEC3 maximum iteration counts per
|
|
|
59cea9 |
# keysize. Keep this table very short, as linear search is done.
|
|
|
59cea9 |
# A message with an NSEC3 with larger count is marked insecure.
|
|
|
59cea9 |
# List in ascending order the keysize and count values.
|
|
|
59cea9 |
# val-nsec3-keysize-iterations: "1024 150 2048 500 4096 2500"
|
|
|
59cea9 |
|
|
|
59cea9 |
# instruct the auto-trust-anchor-file probing to add anchors after ttl.
|
|
|
59cea9 |
# add-holddown: 2592000 # 30 days
|
|
|
59cea9 |
|
|
|
59cea9 |
# instruct the auto-trust-anchor-file probing to del anchors after ttl.
|
|
|
59cea9 |
# del-holddown: 2592000 # 30 days
|
|
|
59cea9 |
|
|
|
59cea9 |
# auto-trust-anchor-file probing removes missing anchors after ttl.
|
|
|
59cea9 |
# If the value 0 is given, missing anchors are not removed.
|
|
|
59cea9 |
# keep-missing: 31622400 # 366 days
|
|
|
59cea9 |
|
|
|
59cea9 |
# the amount of memory to use for the key cache.
|
|
|
59cea9 |
# plain value in bytes or you can append k, m or G. default is "4Mb".
|
|
|
59cea9 |
# key-cache-size: 4m
|
|
|
59cea9 |
|
|
|
59cea9 |
# the number of slabs to use for the key cache.
|
|
|
59cea9 |
# the number of slabs must be a power of 2.
|
|
|
59cea9 |
# more slabs reduce lock contention, but fragment memory usage.
|
|
|
59cea9 |
# key-cache-slabs: 4
|
|
|
59cea9 |
|
|
|
59cea9 |
# the amount of memory to use for the negative cache (used for DLV).
|
|
|
59cea9 |
# plain value in bytes or you can append k, m or G. default is "1Mb".
|
|
|
59cea9 |
# neg-cache-size: 1m
|
|
|
59cea9 |
|
|
|
59cea9 |
# a number of locally served zones can be configured.
|
|
|
59cea9 |
# local-zone: <zone> <type>
|
|
|
59cea9 |
# local-data: "<resource record string>"
|
|
|
59cea9 |
# o deny serves local data (if any), else, drops queries.
|
|
|
59cea9 |
# o refuse serves local data (if any), else, replies with error.
|
|
|
59cea9 |
# o static serves local data, else, nxdomain or nodata answer.
|
|
|
59cea9 |
# o transparent serves local data, but resolves normally for other names
|
|
|
59cea9 |
# o redirect serves the zone data for any subdomain in the zone.
|
|
|
59cea9 |
# o nodefault can be used to normally resolve AS112 zones.
|
|
|
59cea9 |
# o typetransparent resolves normally for other types and other names
|
|
|
59cea9 |
#
|
|
|
59cea9 |
# defaults are localhost address, reverse for 127.0.0.1 and ::1
|
|
|
59cea9 |
# and nxdomain for AS112 zones. If you configure one of these zones
|
|
|
59cea9 |
# the default content is omitted, or you can omit it with 'nodefault'.
|
|
|
59cea9 |
#
|
|
|
59cea9 |
# If you configure local-data without specifying local-zone, by
|
|
|
59cea9 |
# default a transparent local-zone is created for the data.
|
|
|
59cea9 |
#
|
|
|
59cea9 |
# You can add locally served data with
|
|
|
59cea9 |
# local-zone: "local." static
|
|
|
59cea9 |
# local-data: "mycomputer.local. IN A 192.0.2.51"
|
|
|
59cea9 |
# local-data: 'mytext.local TXT "content of text record"'
|
|
|
59cea9 |
#
|
|
|
59cea9 |
# You can override certain queries with
|
|
|
59cea9 |
# local-data: "adserver.example.com A 127.0.0.1"
|
|
|
59cea9 |
#
|
|
|
59cea9 |
# You can redirect a domain to a fixed address with
|
|
|
59cea9 |
# (this makes example.com, www.example.com, etc, all go to 192.0.2.3)
|
|
|
59cea9 |
# local-zone: "example.com" redirect
|
|
|
59cea9 |
# local-data: "example.com A 192.0.2.3"
|
|
|
59cea9 |
#
|
|
|
59cea9 |
# Shorthand to make PTR records, "IPv4 name" or "IPv6 name".
|
|
|
59cea9 |
# You can also add PTR records using local-data directly, but then
|
|
|
59cea9 |
# you need to do the reverse notation yourself.
|
|
|
59cea9 |
# local-data-ptr: "192.0.2.3 www.example.com"
|
|
|
59cea9 |
|
|
|
59cea9 |
include: /etc/unbound/local.d/*.conf
|
|
|
59cea9 |
|
|
|
59cea9 |
# service clients over SSL (on the TCP sockets), with plain DNS inside
|
|
|
59cea9 |
# the SSL stream. Give the certificate to use and private key.
|
|
|
59cea9 |
# default is "" (disabled). requires restart to take effect.
|
|
|
59cea9 |
# ssl-service-key: "/etc/unbound/unbound_server.key"
|
|
|
59cea9 |
# ssl-service-pem: "/etc/unbound/unbound_server.pem"
|
|
|
59cea9 |
# ssl-port: 443
|
|
|
59cea9 |
|
|
|
59cea9 |
# request upstream over SSL (with plain DNS inside the SSL stream).
|
|
|
59cea9 |
# Default is no. Can be turned on and off with unbound-control.
|
|
|
59cea9 |
# ssl-upstream: no
|
|
|
59cea9 |
|
|
|
59cea9 |
## Python config section. To enable:
|
|
|
59cea9 |
## o use --with-pythonmodule to configure before compiling.
|
|
|
59cea9 |
## o list python in the module-config string (above) to enable.
|
|
|
59cea9 |
## o and give a python-script to run.
|
|
|
59cea9 |
#python:
|
|
|
59cea9 |
# # Script file to load
|
|
|
59cea9 |
# # python-script: "/etc/unbound/ubmodule-tst.py"
|
|
|
59cea9 |
|
|
|
59cea9 |
|
|
|
59cea9 |
# Remote control config section.
|
|
|
59cea9 |
remote-control:
|
|
|
59cea9 |
# Enable remote control with unbound-control(8) here.
|
|
|
59cea9 |
# set up the keys and certificates with unbound-control-setup.
|
|
|
59cea9 |
# Note: required for unbound-munin package
|
|
|
59cea9 |
control-enable: yes
|
|
|
59cea9 |
|
|
|
59cea9 |
# what interfaces are listened to for remote control.
|
|
|
59cea9 |
# give 0.0.0.0 and ::0 to listen to all interfaces.
|
|
|
59cea9 |
# control-interface: 127.0.0.1
|
|
|
59cea9 |
# control-interface: ::1
|
|
|
59cea9 |
|
|
|
59cea9 |
# port number for remote control operations.
|
|
|
59cea9 |
# control-port: 953
|
|
|
59cea9 |
|
|
|
59cea9 |
# unbound server key file.
|
|
|
59cea9 |
server-key-file: "/etc/unbound/unbound_server.key"
|
|
|
59cea9 |
|
|
|
59cea9 |
# unbound server certificate file.
|
|
|
59cea9 |
server-cert-file: "/etc/unbound/unbound_server.pem"
|
|
|
59cea9 |
|
|
|
59cea9 |
# unbound-control key file.
|
|
|
59cea9 |
control-key-file: "/etc/unbound/unbound_control.key"
|
|
|
59cea9 |
|
|
|
59cea9 |
# unbound-control certificate file.
|
|
|
59cea9 |
control-cert-file: "/etc/unbound/unbound_control.pem"
|
|
|
59cea9 |
|
|
|
59cea9 |
# Stub and Forward zones
|
|
|
59cea9 |
|
|
|
59cea9 |
include: /etc/unbound/conf.d/*.conf
|
|
|
59cea9 |
|
|
|
59cea9 |
# Stub zones.
|
|
|
59cea9 |
# Create entries like below, to make all queries for 'example.com' and
|
|
|
59cea9 |
# 'example.org' go to the given list of nameservers. list zero or more
|
|
|
59cea9 |
# nameservers by hostname or by ipaddress. If you set stub-prime to yes,
|
|
|
59cea9 |
# the list is treated as priming hints (default is no).
|
|
|
59cea9 |
# stub-zone:
|
|
|
59cea9 |
# name: "example.com"
|
|
|
59cea9 |
# stub-addr: 192.0.2.68
|
|
|
59cea9 |
# stub-prime: "no"
|
|
|
59cea9 |
# stub-zone:
|
|
|
59cea9 |
# name: "example.org"
|
|
|
59cea9 |
# stub-host: ns.example.com.
|
|
|
59cea9 |
# You can now also dynamically create and delete stub-zone's using
|
|
|
59cea9 |
# unbound-control stub_add domain.com 1.2.3.4 5.6.7.8
|
|
|
59cea9 |
# unbound-control stub_remove domain.com 1.2.3.4 5.6.7.8
|
|
|
59cea9 |
|
|
|
59cea9 |
# Forward zones
|
|
|
59cea9 |
# Create entries like below, to make all queries for 'example.com' and
|
|
|
59cea9 |
# 'example.org' go to the given list of servers. These servers have to handle
|
|
|
59cea9 |
# recursion to other nameservers. List zero or more nameservers by hostname
|
|
|
59cea9 |
# or by ipaddress. Use an entry with name "." to forward all queries.
|
|
|
59cea9 |
# If you enable forward-first, it attempts without the forward if it fails.
|
|
|
59cea9 |
# forward-zone:
|
|
|
59cea9 |
# name: "example.com"
|
|
|
59cea9 |
# forward-addr: 192.0.2.68
|
|
|
59cea9 |
# forward-addr: 192.0.2.73@5355 # forward to port 5355.
|
|
|
59cea9 |
# forward-first: no
|
|
|
59cea9 |
# forward-zone:
|
|
|
59cea9 |
# name: "example.org"
|
|
|
59cea9 |
# forward-host: fwd.example.com
|
|
|
59cea9 |
#
|
|
|
59cea9 |
# You can now also dynamically create and delete forward-zone's using
|
|
|
59cea9 |
# unbound-control forward_add domain.com 1.2.3.4 5.6.7.8
|
|
|
59cea9 |
# unbound-control forward_remove domain.com 1.2.3.4 5.6.7.8
|