example.conf.in revision 294190
1178172Simp#
2178172Simp# Example configuration file.
3178172Simp#
4178172Simp# See unbound.conf(5) man page, version 1.5.7.
5178172Simp#
6178172Simp# this is a comment.
7178172Simp
8178172Simp#Use this to include other text into the file.
9178172Simp#include: "otherfile.conf"
10178172Simp
11178172Simp# The server clause sets the main parameters.
12178172Simpserver:
13178172Simp	# whitespace is not necessary, but looks cleaner.
14178172Simp
15178172Simp	# verbosity number, 0 is least verbose. 1 is default.
16178172Simp	verbosity: 1
17178172Simp
18178172Simp	# print statistics to the log (for every thread) every N seconds.
19178172Simp	# Set to "" or 0 to disable. Default is disabled.
20178172Simp	# statistics-interval: 0
21178172Simp
22178172Simp	# enable cumulative statistics, without clearing them after printing.
23178172Simp	# statistics-cumulative: no
24178172Simp
25178172Simp	# enable extended statistics (query types, answer codes, status)
26178172Simp	# printed from unbound-control. default off, because of speed.
27178172Simp	# extended-statistics: no
28178172Simp
29178172Simp	# number of threads to create. 1 disables threading.
30178172Simp	# num-threads: 1
31178172Simp
32178172Simp	# specify the interfaces to answer queries from by ip-address.
33178172Simp	# The default is to listen to localhost (127.0.0.1 and ::1).
34178172Simp	# specify 0.0.0.0 and ::0 to bind to all available interfaces.
35178172Simp	# specify every interface[@port] on a new 'interface:' labelled line.
36178172Simp	# The listen interfaces are not changed on reload, only on restart.
37178172Simp	# interface: 192.0.2.153
38178172Simp	# interface: 192.0.2.154
39187305Simp	# interface: 192.0.2.154@5003
40178172Simp	# interface: 2001:DB8::5
41178172Simp
42178172Simp	# enable this feature to copy the source address of queries to reply.
43178172Simp	# Socket options are not supported on all platforms. experimental.
44178172Simp	# interface-automatic: no
45183771Simp
46178172Simp	# port to answer queries from
47178172Simp	# port: 53
48178172Simp
49178172Simp	# specify the interfaces to send outgoing queries to authoritative
50178172Simp	# server from by ip-address. If none, the default (all) interface
51178172Simp	# is used. Specify every interface on a 'outgoing-interface:' line.
52178172Simp	# outgoing-interface: 192.0.2.153
53178172Simp	# outgoing-interface: 2001:DB8::5
54178172Simp	# outgoing-interface: 2001:DB8::6
55178172Simp
56178172Simp	# number of ports to allocate per thread, determines the size of the
57178172Simp	# port range that can be open simultaneously.  About double the
58178172Simp	# num-queries-per-thread, or, use as many as the OS will allow you.
59178172Simp	# outgoing-range: 4096
60178172Simp
61248084Sattilio	# permit unbound to use this port number or port range for
62178172Simp	# making outgoing queries, using an outgoing interface.
63178172Simp	# outgoing-port-permit: 32768
64178172Simp
65178172Simp	# deny unbound the use this of port number or port range for
66178172Simp	# making outgoing queries, using an outgoing interface.
67178172Simp	# Use this to make sure unbound does not grab a UDP port that some
68178172Simp	# other server on this computer needs. The default is to avoid
69178172Simp	# IANA-assigned port numbers.
70178172Simp	# If multiple outgoing-port-permit and outgoing-port-avoid options
71178172Simp	# are present, they are processed in order.
72178172Simp	# outgoing-port-avoid: "3200-3208"
73178172Simp
74178172Simp	# number of outgoing simultaneous tcp buffers to hold per thread.
75178172Simp	# outgoing-num-tcp: 10
76178172Simp
77178172Simp	# number of incoming simultaneous tcp buffers to hold per thread.
78202046Simp	# incoming-num-tcp: 10
79178172Simp
80178172Simp	# buffer size for UDP port 53 incoming (SO_RCVBUF socket option).
81202046Simp	# 0 is system default.  Use 4m to catch query spikes for busy servers.
82202046Simp	# so-rcvbuf: 0
83178172Simp
84202046Simp	# buffer size for UDP port 53 outgoing (SO_SNDBUF socket option).
85178172Simp	# 0 is system default.  Use 4m to handle spikes on very busy servers.
86202830Simp	# so-sndbuf: 0
87202909Sgonzo
88202046Simp	# use SO_REUSEPORT to distribute queries over threads.
89202046Simp	# so-reuseport: no
90178172Simp
91209243Sjchandra	# use IP_TRANSPARENT so the interface: addresses can be non-local
92178172Simp	# and you can config non-existing IPs that are going to work later on
93178172Simp	# ip-transparent: no
94178172Simp
95178172Simp	# EDNS reassembly buffer to advertise to UDP peers (the actual buffer
96178172Simp	# is set with msg-buffer-size). 1480 can solve fragmentation (timeouts).
97178172Simp	# edns-buffer-size: 4096
98178172Simp
99178172Simp	# Maximum UDP response size (not applied to TCP response).
100178172Simp	# Suggested values are 512 to 4096. Default is 4096. 65536 disables it.
101178172Simp	# max-udp-size: 4096
102178172Simp
103178172Simp	# buffer size for handling DNS data. No messages larger than this
104178172Simp	# size can be sent or received, by UDP or TCP. In bytes.
105217516Simp	# msg-buffer-size: 65552
106178172Simp
107178172Simp	# the amount of memory to use for the message cache.
108217516Simp	# plain value in bytes or you can append k, m or G. default is "4Mb".
109217516Simp	# msg-cache-size: 4m
110217516Simp
111178172Simp	# the number of slabs to use for the message cache.
112178172Simp	# the number of slabs must be a power of 2.
113202046Simp	# more slabs reduce lock contention, but fragment memory usage.
114178172Simp	# msg-cache-slabs: 4
115178172Simp
116178172Simp	# the number of queries that a thread gets to service.
117178172Simp	# num-queries-per-thread: 1024
118178172Simp
119178172Simp	# if very busy, 50% queries run to completion, 50% get timeout in msec
120178172Simp	# jostle-timeout: 200
121203180Sneel
122203180Sneel	# msec to wait before close of port on timeout UDP. 0 disables.
123203180Sneel	# delay-close: 0
124209243Sjchandra
125203180Sneel	# the amount of memory to use for the RRset cache.
126203180Sneel	# plain value in bytes or you can append k, m or G. default is "4Mb".
127203180Sneel	# rrset-cache-size: 4m
128203180Sneel
129203180Sneel	# the number of slabs to use for the RRset cache.
130203180Sneel	# the number of slabs must be a power of 2.
131203180Sneel	# more slabs reduce lock contention, but fragment memory usage.
132203180Sneel	# rrset-cache-slabs: 4
133203180Sneel
134203180Sneel	# the time to live (TTL) value lower bound, in seconds. Default 0.
135203180Sneel	# If more than an hour could easily give trouble due to stale data.
136203180Sneel	# cache-min-ttl: 0
137203180Sneel
138203180Sneel	# the time to live (TTL) value cap for RRsets and messages in the
139203180Sneel	# cache. Items are not cached for longer. In seconds.
140178172Simp	# cache-max-ttl: 86400
141217345Sjchandra
142217345Sjchandra	# the time to live (TTL) value cap for negative responses in the cache
143214903Sgonzo	# cache-max-negative-ttl: 3600
144202046Simp
145178172Simp	# the time to live (TTL) value for cached roundtrip times, lameness and
146178172Simp	# EDNS version information for hosts. In seconds.
147178172Simp	# infra-host-ttl: 900
148178172Simp
149178172Simp	# minimum wait time for responses, increase if uplink is long. In msec.
150178172Simp	# infra-cache-min-rtt: 50
151178172Simp
152178172Simp	# the number of slabs to use for the Infrastructure cache.
153178172Simp	# the number of slabs must be a power of 2.
154178172Simp	# more slabs reduce lock contention, but fragment memory usage.
155178172Simp	# infra-cache-slabs: 4
156178172Simp
157178172Simp	# the maximum number of hosts that are cached (roundtrip, EDNS, lame).
158178172Simp	# infra-cache-numhosts: 10000
159178172Simp
160178172Simp	# Enable IPv4, "yes" or "no".
161178172Simp	# do-ip4: yes
162178172Simp
163178172Simp	# Enable IPv6, "yes" or "no".
164178172Simp	# do-ip6: yes
165178172Simp
166226517Sjchandra	# Enable UDP, "yes" or "no".
167226517Sjchandra	# do-udp: yes
168226517Sjchandra
169178172Simp	# Enable TCP, "yes" or "no".
170202909Sgonzo	# do-tcp: yes
171202909Sgonzo
172202909Sgonzo	# upstream connections use TCP only (and no UDP), "yes" or "no"
173178172Simp	# useful for tunneling scenarios, default no.
174178172Simp	# tcp-upstream: no
175178172Simp
176202909Sgonzo	# Detach from the terminal, run in background, "yes" or "no".
177202909Sgonzo	# do-daemonize: yes
178202909Sgonzo
179202909Sgonzo	# control which clients are allowed to make (recursive) queries
180202909Sgonzo	# to this server. Specify classless netblocks with /size and action.
181202909Sgonzo	# By default everything is refused, except for localhost.
182178172Simp	# Choose deny (drop message), refuse (polite error reply),
183178172Simp	# allow (recursive ok), allow_snoop (recursive and nonrecursive ok)
184178172Simp	# deny_non_local (drop queries unless can be answered from local-data)
185178172Simp	# refuse_non_local (like deny_non_local but polite error reply).
186178172Simp	# access-control: 0.0.0.0/0 refuse
187178172Simp	# access-control: 127.0.0.0/8 allow
188178172Simp	# access-control: ::0/0 refuse
189178172Simp	# access-control: ::1 allow
190219106Sjchandra	# access-control: ::ffff:127.0.0.1 allow
191219106Sjchandra
192187305Simp	# if given, a chroot(2) is done to the given directory.
193178172Simp	# i.e. you can chroot to the working directory, for example,
194178172Simp	# for extra security, but make sure all files are in that directory.
195178172Simp	#
196178172Simp	# If chroot is enabled, you should pass the configfile (from the
197178172Simp	# commandline) as a full path from the original root. After the
198178172Simp	# chroot has been performed the now defunct portion of the config
199178172Simp	# file path is removed to be able to reread the config after a reload.
200178172Simp	#
201219106Sjchandra	# All other file paths (working dir, logfile, roothints, and
202178172Simp	# key files) can be specified in several ways:
203219106Sjchandra	# 	o as an absolute path relative to the new root.
204219106Sjchandra	# 	o as a relative path to the working directory.
205219106Sjchandra	# 	o as an absolute path relative to the original root.
206219106Sjchandra	# In the last case the path is adjusted to remove the unused portion.
207219106Sjchandra	#
208178172Simp	# The pid file can be absolute and outside of the chroot, it is
209178172Simp	# written just prior to performing the chroot and dropping permissions.
210178172Simp	#
211178172Simp	# Additionally, unbound may need to access /dev/random (for entropy).
212178172Simp	# How to do this is specific to your OS.
213217354Sjchandra	#
214217354Sjchandra	# If you give "" no chroot is performed. The path must not end in a /.
215217354Sjchandra	# chroot: "@UNBOUND_CHROOT_DIR@"
216202046Simp
217178172Simp	# if given, user privileges are dropped (after binding port),
218178172Simp	# and the given username is assumed. Default is user "unbound".
219178172Simp	# If you give "" no privileges are dropped.
220178172Simp	# username: "@UNBOUND_USERNAME@"
221178172Simp
222178172Simp	# the working directory. The relative files in this config are
223178172Simp	# relative to this directory. If you give "" the working directory
224178172Simp	# is not changed.
225178172Simp	# directory: "@UNBOUND_RUN_DIR@"
226178172Simp
227178172Simp	# the log file, "" means log to stderr.
228178172Simp	# Use of this option sets use-syslog to "no".
229178172Simp	# logfile: ""
230178172Simp
231187294Simp	# Log to syslog(3) if yes. The log facility LOG_DAEMON is used to
232187294Simp	# log to, with identity "unbound". If yes, it overrides the logfile.
233178172Simp	# use-syslog: yes
234178172Simp
235192323Smarcel	# print UTC timestamp in ascii to logfile, default is epoch in seconds.
236192323Smarcel	# log-time-ascii: no
237192323Smarcel
238192323Smarcel	# print one line with time, IP, name, type, class for every query.
239192323Smarcel	# log-queries: no
240192323Smarcel
241192323Smarcel	# the pid file. Can be an absolute path outside of chroot/work dir.
242192323Smarcel	# pidfile: "@UNBOUND_PIDFILE@"
243192323Smarcel
244192323Smarcel	# file to read root hints from.
245178172Simp	# get one from https://www.internic.net/domain/named.cache
246178172Simp	# root-hints: ""
247178172Simp
248178172Simp	# enable to not answer id.server and hostname.bind queries.
249178172Simp	# hide-identity: no
250187294Simp
251178172Simp	# enable to not answer version.server and version.bind queries.
252178172Simp	# hide-version: no
253178172Simp
254178172Simp	# the identity to report. Leave "" or default to return hostname.
255178172Simp	# identity: ""
256178172Simp
257178172Simp	# the version to report. Leave "" or default to return package version.
258178172Simp	# version: ""
259178172Simp
260178172Simp	# the target fetch policy.
261178172Simp	# series of integers describing the policy per dependency depth.
262178172Simp	# The number of values in the list determines the maximum dependency
263210098Simp	# depth the recursor will pursue before giving up. Each integer means:
264187326Simp	# 	-1 : fetch all targets opportunistically,
265187326Simp	# 	0: fetch on demand,
266178172Simp	#	positive value: fetch that many targets opportunistically.
267202046Simp	# Enclose the list of numbers between quotes ("").
268178172Simp	# target-fetch-policy: "3 2 1 0 0"
269178172Simp
270202046Simp	# Harden against very small EDNS buffer sizes.
271178172Simp	# harden-short-bufsize: no
272178172Simp
273203180Sneel	# Harden against unseemly large queries.
274202046Simp	# harden-large-queries: no
275202046Simp
276202046Simp	# Harden against out of zone rrsets, to avoid spoofing attempts.
277202046Simp	# harden-glue: yes
278202046Simp
279202046Simp	# Harden against receiving dnssec-stripped data. If you turn it
280202046Simp	# off, failing to validate dnskey data for a trustanchor will
281202046Simp	# trigger insecure mode for that zone (like without a trustanchor).
282202046Simp	# Default on, which insists on dnssec data for trust-anchored zones.
283203180Sneel	# harden-dnssec-stripped: yes
284203180Sneel
285203180Sneel	# Harden against queries that fall under dnssec-signed nxdomain names.
286203180Sneel	# harden-below-nxdomain: no
287202046Simp
288202046Simp        # Harden the referral path by performing additional queries for
289202046Simp	# infrastructure data.  Validates the replies (if possible).
290202046Simp	# Default off, because the lookups burden the server.  Experimental
291202046Simp	# implementation of draft-wijngaards-dnsext-resolver-side-mitigation.
292202046Simp	# harden-referral-path: no
293202046Simp
294178172Simp	# Harden against algorithm downgrade when multiple algorithms are
295178172Simp	# advertised in the DS record.  If no, allows the weakest algorithm
296178172Simp	# to validate the zone.
297178172Simp	# harden-algo-downgrade: no
298178172Simp
299206819Sjmallett	# Sent minimum amount of information to upstream servers to enhance
300206819Sjmallett	# privacy. Only sent minimum required labels of the QNAME and set QTYPE
301178172Simp	# to NS when possible.
302187326Simp	# qname-minimisation: no
303199114Sgonzo
304199114Sgonzo	# Use 0x20-encoded random bits in the query to foil spoof attempts.
305199114Sgonzo	# This feature is an experimental implementation of draft dns-0x20.
306202046Simp	# use-caps-for-id: no
307178172Simp
308178172Simp	# Domains (and domains in them) without support for dns-0x20 and
309178172Simp	# the fallback fails because they keep sending different answers.
310178172Simp	# caps-whitelist: "licdn.com"
311178172Simp
312202046Simp	# Enforce privacy of these addresses. Strips them away from answers.
313178172Simp	# It may cause DNSSEC validation to additionally mark it as bogus.
314202046Simp	# Protects against 'DNS Rebinding' (uses browser as network proxy).
315202046Simp	# Only 'private-domain' and 'local-data' names are allowed to have
316202046Simp	# these private addresses. No default.
317210403Smav	# private-address: 10.0.0.0/8
318202046Simp	# private-address: 172.16.0.0/12
319210403Smav	# private-address: 192.168.0.0/16
320178172Simp	# private-address: 169.254.0.0/16
321178172Simp	# private-address: fd00::/8
322178172Simp	# private-address: fe80::/10
323178172Simp	# private-address: ::ffff:0:0/96
324178172Simp
325178172Simp	# Allow the domain (and its subdomains) to contain private addresses.
326178172Simp	# local-data statements are allowed to contain private addresses too.
327178172Simp	# private-domain: "example.com"
328178172Simp
329178172Simp	# If nonzero, unwanted replies are not only reported in statistics,
330178172Simp	# but also a running total is kept per thread. If it reaches the
331178172Simp	# threshold, a warning is printed and a defensive action is taken,
332178172Simp	# the cache is cleared to flush potential poison out of it.
333226517Sjchandra	# A suggested value is 10000000, the default is 0 (turned off).
334226517Sjchandra	# unwanted-reply-threshold: 0
335226517Sjchandra
336226517Sjchandra	# Do not query the following addresses. No DNS queries are sent there.
337226517Sjchandra	# List one address per entry. List classless netblocks with /size,
338226517Sjchandra	# do-not-query-address: 127.0.0.1/8
339178172Simp	# do-not-query-address: ::1
340178172Simp
341178172Simp	# if yes, the above default do-not-query-address entries are present.
342178172Simp	# if no, localhost can be queried (for testing and debugging).
343178172Simp	# do-not-query-localhost: yes
344178172Simp
345178172Simp	# if yes, perform prefetching of almost expired message cache entries.
346178172Simp	# prefetch: no
347210038Simp
348178172Simp	# if yes, perform key lookups adjacent to normal lookups.
349178172Simp	# prefetch-key: no
350239671Srwatson
351239671Srwatson	# if yes, Unbound rotates RRSet order in response.
352239671Srwatson	# rrset-roundrobin: no
353239671Srwatson
354239671Srwatson	# if yes, Unbound doesn't insert authority/additional sections
355239671Srwatson	# into response messages when those sections are not required.
356232615Sjmallett	# minimal-responses: no
357178172Simp
358178172Simp	# module configuration of the server. A string with identifiers
359178172Simp	# separated by spaces. Syntax: "[dns64] [validator] iterator"
360232615Sjmallett	# module-config: "validator iterator"
361178172Simp
362178172Simp	# File with trusted keys, kept uptodate using RFC5011 probes,
363232615Sjmallett	# initial file like trust-anchor-file, then it stores metadata.
364178172Simp	# Use several entries, one per domain name, to track multiple zones.
365178172Simp	#
366178172Simp	# If you want to perform DNSSEC validation, run unbound-anchor before
367178172Simp	# you start unbound (i.e. in the system boot scripts).  And enable:
368178172Simp	# Please note usage of unbound-anchor root anchor is at your own risk
369178172Simp	# and under the terms of our LICENSE (see that file in the source).
370178172Simp	# auto-trust-anchor-file: "@UNBOUND_ROOTKEY_FILE@"
371178172Simp
372178172Simp	# File with DLV trusted keys. Same format as trust-anchor-file.
373178172Simp	# There can be only one DLV configured, it is trusted from root down.
374178172Simp	# DLV is going to be decommissioned.  Please do not use it any more.
375178172Simp	# dlv-anchor-file: "dlv.isc.org.key"
376212632Sneel
377202697Sneel	# File with trusted keys for validation. Specify more than one file
378178172Simp	# with several entries, one file per entry.
379210038Simp	# Zone file format, with DS and DNSKEY entries.
380178172Simp	# Note this gets out of date, use auto-trust-anchor-file please.
381178172Simp	# trust-anchor-file: ""
382178172Simp
383202909Sgonzo	# Trusted key for validation. DS or DNSKEY. specify the RR on a
384202909Sgonzo	# single line, surrounded by "". TTL is ignored. class is IN default.
385202909Sgonzo	# Note this gets out of date, use auto-trust-anchor-file please.
386202909Sgonzo	# (These examples are from August 2007 and may not be valid anymore).
387202909Sgonzo	# trust-anchor: "nlnetlabs.nl. DNSKEY 257 3 5 AQPzzTWMz8qSWIQlfRnPckx2BiVmkVN6LPupO3mbz7FhLSnm26n6iG9N Lby97Ji453aWZY3M5/xJBSOS2vWtco2t8C0+xeO1bc/d6ZTy32DHchpW 6rDH1vp86Ll+ha0tmwyy9QP7y2bVw5zSbFCrefk8qCUBgfHm9bHzMG1U BYtEIQ=="
388202909Sgonzo	# trust-anchor: "jelte.nlnetlabs.nl. DS 42860 5 1 14D739EB566D2B1A5E216A0BA4D17FA9B038BE4A"
389232998Sgonzo
390232998Sgonzo	# File with trusted keys for validation. Specify more than one file
391232998Sgonzo	# with several entries, one file per entry. Like trust-anchor-file
392232998Sgonzo	# but has a different file format. Format is BIND-9 style format,
393233019Sgonzo	# the trusted-keys { name flag proto algo "key"; }; clauses are read.
394233019Sgonzo	# you need external update procedures to track changes in keys.
395233019Sgonzo	# trusted-keys-file: ""
396233019Sgonzo
397233019Sgonzo	# Ignore chain of trust. Domain is treated as insecure.
398232998Sgonzo	# domain-insecure: "example.com"
399232998Sgonzo
400232998Sgonzo	# Override the date for validation with a specific fixed date.
401233019Sgonzo	# Do not set this unless you are debugging signature inception
402233019Sgonzo	# and expiration. "" or "0" turns the feature off. -1 ignores date.
403232998Sgonzo	# val-override-date: ""
404232998Sgonzo
405232998Sgonzo	# The time to live for bogus data, rrsets and messages. This avoids
406232998Sgonzo	# some of the revalidation, until the time interval expires. in secs.
407233019Sgonzo	# val-bogus-ttl: 60
408233019Sgonzo
409232998Sgonzo	# The signature inception and expiration dates are allowed to be off
410232998Sgonzo	# by 10% of the signature lifetime (expir-incep) from our local clock.
411232998Sgonzo	# This leeway is capped with a minimum and a maximum.  In seconds.
412232998Sgonzo	# val-sig-skew-min: 3600
413233019Sgonzo	# val-sig-skew-max: 86400
414233019Sgonzo
415233019Sgonzo	# Should additional section of secure message also be kept clean of
416232998Sgonzo	# unsecure data. Useful to shield the users of this validator from
417232998Sgonzo	# potential bogus data in the additional section. All unsigned data
418233019Sgonzo	# in the additional section is removed from secure messages.
419233019Sgonzo	# val-clean-additional: yes
420233019Sgonzo
421232998Sgonzo	# Turn permissive mode on to permit bogus messages. Thus, messages
422232998Sgonzo	# for which security checks failed will be returned to clients,
423232998Sgonzo	# instead of SERVFAIL. It still performs the security checks, which
424233019Sgonzo	# result in interesting log files and possibly the AD bit in
425233019Sgonzo	# replies if the message is found secure. The default is off.
426232998Sgonzo	# val-permissive-mode: no
427233019Sgonzo
428233019Sgonzo	# Ignore the CD flag in incoming queries and refuse them bogus data.
429232998Sgonzo	# Enable it if the only clients of unbound are legacy servers (w2008)
430232998Sgonzo	# that set CD but cannot validate themselves.
431232998Sgonzo	# ignore-cd-flag: no
432232998Sgonzo
433232998Sgonzo	# Have the validator log failed validations for your diagnosis.
434202909Sgonzo	# 0: off. 1: A line per failed user query. 2: With reason and bad IP.
435202909Sgonzo	# val-log-level: 0
436202909Sgonzo
437202909Sgonzo	# It is possible to configure NSEC3 maximum iteration counts per
438202909Sgonzo	# keysize. Keep this table very short, as linear search is done.
439202909Sgonzo	# A message with an NSEC3 with larger count is marked insecure.
440202909Sgonzo	# List in ascending order the keysize and count values.
441202909Sgonzo	# val-nsec3-keysize-iterations: "1024 150 2048 500 4096 2500"
442202909Sgonzo
443202909Sgonzo	# instruct the auto-trust-anchor-file probing to add anchors after ttl.
444202909Sgonzo	# add-holddown: 2592000 # 30 days
445202909Sgonzo
446202909Sgonzo	# instruct the auto-trust-anchor-file probing to del anchors after ttl.
447202909Sgonzo	# del-holddown: 2592000 # 30 days
448202909Sgonzo
449202909Sgonzo	# auto-trust-anchor-file probing removes missing anchors after ttl.
450203697Sneel	# If the value 0 is given, missing anchors are not removed.
451178172Simp	# keep-missing: 31622400 # 366 days
452203697Sneel
453178172Simp	# debug option that allows very small holddown times for key rollover
454203180Sneel	# permit-small-holddown: no
455209243Sjchandra
456203180Sneel	# the amount of memory to use for the key cache.
457203180Sneel	# plain value in bytes or you can append k, m or G. default is "4Mb".
458203180Sneel	# key-cache-size: 4m
459203180Sneel
460203180Sneel	# the number of slabs to use for the key cache.
461203180Sneel	# the number of slabs must be a power of 2.
462209482Sjchandra	# more slabs reduce lock contention, but fragment memory usage.
463209243Sjchandra	# key-cache-slabs: 4
464209243Sjchandra
465209243Sjchandra	# the amount of memory to use for the negative cache (used for DLV).
466203697Sneel	# plain value in bytes or you can append k, m or G. default is "1Mb".
467203180Sneel	# neg-cache-size: 1m
468203697Sneel
469203697Sneel	# By default, for a number of zones a small default 'nothing here'
470203697Sneel	# reply is built-in.  Query traffic is thus blocked.  If you
471203697Sneel	# wish to serve such zone you can unblock them by uncommenting one
472203697Sneel	# of the nodefault statements below.
473203697Sneel	# You may also have to use domain-insecure: zone to make DNSSEC work,
474203697Sneel	# unless you have your own trust anchors for this zone.
475203697Sneel	# local-zone: "localhost." nodefault
476203697Sneel	# local-zone: "127.in-addr.arpa." nodefault
477203697Sneel	# 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
478203697Sneel	# local-zone: "10.in-addr.arpa." nodefault
479216862Sjmallett	# local-zone: "16.172.in-addr.arpa." nodefault
480216862Sjmallett	# local-zone: "17.172.in-addr.arpa." nodefault
481203697Sneel	# local-zone: "18.172.in-addr.arpa." nodefault
482216862Sjmallett	# local-zone: "19.172.in-addr.arpa." nodefault
483203697Sneel	# local-zone: "20.172.in-addr.arpa." nodefault
484178172Simp	# local-zone: "21.172.in-addr.arpa." nodefault
485178172Simp	# local-zone: "22.172.in-addr.arpa." nodefault
486178172Simp	# local-zone: "23.172.in-addr.arpa." nodefault
487178172Simp	# local-zone: "24.172.in-addr.arpa." nodefault
488178172Simp	# local-zone: "25.172.in-addr.arpa." nodefault
489178172Simp	# local-zone: "26.172.in-addr.arpa." nodefault
490178172Simp	# local-zone: "27.172.in-addr.arpa." nodefault
491178172Simp	# local-zone: "28.172.in-addr.arpa." nodefault
492178172Simp	# local-zone: "29.172.in-addr.arpa." nodefault
493178172Simp	# local-zone: "30.172.in-addr.arpa." nodefault
494178172Simp	# local-zone: "31.172.in-addr.arpa." nodefault
495178172Simp	# local-zone: "168.192.in-addr.arpa." nodefault
496178172Simp	# local-zone: "0.in-addr.arpa." nodefault
497178172Simp	# local-zone: "254.169.in-addr.arpa." nodefault
498178172Simp	# local-zone: "2.0.192.in-addr.arpa." nodefault
499178172Simp	# local-zone: "100.51.198.in-addr.arpa." nodefault
500178172Simp	# local-zone: "113.0.203.in-addr.arpa." nodefault
501178172Simp	# local-zone: "255.255.255.255.in-addr.arpa." nodefault
502178172Simp	# 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
503178172Simp	# local-zone: "d.f.ip6.arpa." nodefault
504178172Simp	# local-zone: "8.e.f.ip6.arpa." nodefault
505178172Simp	# local-zone: "9.e.f.ip6.arpa." nodefault
506214835Sjhb	# local-zone: "a.e.f.ip6.arpa." nodefault
507178172Simp	# local-zone: "b.e.f.ip6.arpa." nodefault
508178172Simp	# local-zone: "8.b.d.0.1.0.0.2.ip6.arpa." nodefault
509214835Sjhb	# And for 64.100.in-addr.arpa. to 127.100.in-addr.arpa.
510214835Sjhb
511214835Sjhb	# if unbound is running service for the local host then it is useful
512214835Sjhb	# to perform lan-wide lookups to the upstream, and unblock the
513214835Sjhb	# long list of local-zones above.  If this unbound is a dns server
514214835Sjhb	# for a network of computers, disabled is better and stops information
515178172Simp	# leakage of local lan information.
516178172Simp	# unblock-lan-zones: no
517178172Simp
518178172Simp	# a number of locally served zones can be configured.
519178172Simp	# 	local-zone: <zone> <type>
520178172Simp	# 	local-data: "<resource record string>"
521178172Simp	# o deny serves local data (if any), else, drops queries.
522214835Sjhb	# o refuse serves local data (if any), else, replies with error.
523178172Simp	# o static serves local data, else, nxdomain or nodata answer.
524178172Simp	# o transparent gives local data, but resolves normally for other names
525178172Simp	# o redirect serves the zone data for any subdomain in the zone.
526214835Sjhb	# o nodefault can be used to normally resolve AS112 zones.
527178172Simp	# o typetransparent resolves normally for other types and other names
528178172Simp	# o inform resolves normally, but logs client IP address
529214835Sjhb	# o inform_deny drops queries and logs client IP address
530178172Simp	#
531178172Simp	# defaults are localhost address, reverse for 127.0.0.1 and ::1
532178172Simp	# and nxdomain for AS112 zones. If you configure one of these zones
533178172Simp	# the default content is omitted, or you can omit it with 'nodefault'.
534178172Simp	#
535178172Simp	# If you configure local-data without specifying local-zone, by
536178471Sjeff	# default a transparent local-zone is created for the data.
537178172Simp	#
538216862Sjmallett	# You can add locally served data with
539216862Sjmallett	# local-zone: "local." static
540216862Sjmallett	# local-data: "mycomputer.local. IN A 192.0.2.51"
541216862Sjmallett	# local-data: 'mytext.local TXT "content of text record"'
542216862Sjmallett	#
543216862Sjmallett	# You can override certain queries with
544216862Sjmallett	# local-data: "adserver.example.com A 127.0.0.1"
545216862Sjmallett	#
546216862Sjmallett	# You can redirect a domain to a fixed address with
547226517Sjchandra	# (this makes example.com, www.example.com, etc, all go to 192.0.2.3)
548216862Sjmallett	# local-zone: "example.com" redirect
549216862Sjmallett	# local-data: "example.com A 192.0.2.3"
550216862Sjmallett	#
551216862Sjmallett	# Shorthand to make PTR records, "IPv4 name" or "IPv6 name".
552178172Simp	# You can also add PTR records using local-data directly, but then
553178172Simp	# you need to do the reverse notation yourself.
554187293Simp	# local-data-ptr: "192.0.2.3 www.example.com"
555187293Simp
556178172Simp	# service clients over SSL (on the TCP sockets), with plain DNS inside
557178172Simp	# the SSL stream.  Give the certificate to use and private key.
558187293Simp	# default is "" (disabled).  requires restart to take effect.
559178172Simp	# ssl-service-key: "path/to/privatekeyfile.key"
560202046Simp	# ssl-service-pem: "path/to/publiccertfile.pem"
561202046Simp	# ssl-port: 853
562217345Sjchandra
563202046Simp	# request upstream over SSL (with plain DNS inside the SSL stream).
564202046Simp	# Default is no.  Can be turned on and off with unbound-control.
565202046Simp	# ssl-upstream: no
566202046Simp
567217345Sjchandra	# DNS64 prefix. Must be specified when DNS64 is use.
568202046Simp	# Enable dns64 in module-config.  Used to synthesize IPv6 from IPv4.
569202046Simp	# dns64-prefix: 64:ff9b::0/96
570202046Simp
571202046Simp	# ratelimit for uncached, new queries, this limits recursion effort.
572202046Simp	# ratelimiting is experimental, and may help against randomqueryflood.
573	# if 0(default) it is disabled, otherwise state qps allowed per zone.
574	# ratelimit: 0
575
576	# ratelimits are tracked in a cache, size in bytes of cache (or k,m).
577	# ratelimit-size: 4m
578	# ratelimit cache slabs, reduces lock contention if equal to cpucount.
579	# ratelimit-slabs: 4
580
581	# 0 blocks when ratelimited, otherwise let 1/xth traffic through
582	# ratelimit-factor: 10
583
584	# override the ratelimit for a specific domain name.
585	# give this setting multiple times to have multiple overrides.
586	# ratelimit-for-domain: example.com 1000
587	# override the ratelimits for all domains below a domain name
588	# can give this multiple times, the name closest to the zone is used.
589	# ratelimit-below-domain: example 1000
590
591# Python config section. To enable:
592# o use --with-pythonmodule to configure before compiling.
593# o list python in the module-config string (above) to enable.
594# o and give a python-script to run.
595python:
596	# Script file to load
597	# python-script: "@UNBOUND_SHARE_DIR@/ubmodule-tst.py"
598
599# Remote control config section.
600remote-control:
601	# Enable remote control with unbound-control(8) here.
602	# set up the keys and certificates with unbound-control-setup.
603	# control-enable: no
604
605	# Set to no and use an absolute path as control-interface to use
606	# a unix local named pipe for unbound-control.
607	# control-use-cert: yes
608
609	# what interfaces are listened to for remote control.
610	# give 0.0.0.0 and ::0 to listen to all interfaces.
611	# control-interface: 127.0.0.1
612	# control-interface: ::1
613
614	# port number for remote control operations.
615	# control-port: 8953
616
617	# unbound server key file.
618	# server-key-file: "@UNBOUND_RUN_DIR@/unbound_server.key"
619
620	# unbound server certificate file.
621	# server-cert-file: "@UNBOUND_RUN_DIR@/unbound_server.pem"
622
623	# unbound-control key file.
624	# control-key-file: "@UNBOUND_RUN_DIR@/unbound_control.key"
625
626	# unbound-control certificate file.
627	# control-cert-file: "@UNBOUND_RUN_DIR@/unbound_control.pem"
628
629# Stub zones.
630# Create entries like below, to make all queries for 'example.com' and
631# 'example.org' go to the given list of nameservers. list zero or more
632# nameservers by hostname or by ipaddress. If you set stub-prime to yes,
633# the list is treated as priming hints (default is no).
634# With stub-first yes, it attempts without the stub if it fails.
635# Consider adding domain-insecure: name and local-zone: name nodefault
636# to the server: section if the stub is a locally served zone.
637# stub-zone:
638#	name: "example.com"
639#	stub-addr: 192.0.2.68
640#	stub-prime: no
641#	stub-first: no
642# stub-zone:
643#	name: "example.org"
644#	stub-host: ns.example.com.
645
646# Forward zones
647# Create entries like below, to make all queries for 'example.com' and
648# 'example.org' go to the given list of servers. These servers have to handle
649# recursion to other nameservers. List zero or more nameservers by hostname
650# or by ipaddress. Use an entry with name "." to forward all queries.
651# If you enable forward-first, it attempts without the forward if it fails.
652# forward-zone:
653# 	name: "example.com"
654# 	forward-addr: 192.0.2.68
655# 	forward-addr: 192.0.2.73@5355  # forward to port 5355.
656# 	forward-first: no
657# forward-zone:
658# 	name: "example.org"
659# 	forward-host: fwd.example.com
660