1238106Sdes#
2238106Sdes# Example configuration file.
3238106Sdes#
4285206Sdes# See unbound.conf(5) man page, version 1.5.3.
5238106Sdes#
6238106Sdes# this is a comment.
7238106Sdes
8238106Sdes#Use this to include other text into the file.
9238106Sdes#include: "otherfile.conf"
10238106Sdes
11238106Sdes# The server clause sets the main parameters. 
12238106Sdesserver:
13238106Sdes	# whitespace is not necessary, but looks cleaner.
14238106Sdes
15238106Sdes	# verbosity number, 0 is least verbose. 1 is default.
16238106Sdes	verbosity: 1
17238106Sdes
18238106Sdes	# print statistics to the log (for every thread) every N seconds.
19238106Sdes	# Set to "" or 0 to disable. Default is disabled.
20238106Sdes	# statistics-interval: 0
21238106Sdes
22238106Sdes	# enable cumulative statistics, without clearing them after printing.
23238106Sdes	# statistics-cumulative: no
24238106Sdes
25238106Sdes	# enable extended statistics (query types, answer codes, status)
26238106Sdes	# printed from unbound-control. default off, because of speed.
27238106Sdes	# extended-statistics: no
28238106Sdes
29238106Sdes	# number of threads to create. 1 disables threading.
30238106Sdes	# num-threads: 1
31238106Sdes
32238106Sdes	# specify the interfaces to answer queries from by ip-address.
33238106Sdes	# The default is to listen to localhost (127.0.0.1 and ::1).
34238106Sdes	# specify 0.0.0.0 and ::0 to bind to all available interfaces.
35238106Sdes	# specify every interface[@port] on a new 'interface:' labelled line.
36238106Sdes	# The listen interfaces are not changed on reload, only on restart.
37238106Sdes	# interface: 192.0.2.153
38238106Sdes	# interface: 192.0.2.154
39238106Sdes	# interface: 192.0.2.154@5003
40238106Sdes	# interface: 2001:DB8::5
41238106Sdes
42238106Sdes	# enable this feature to copy the source address of queries to reply.
43238106Sdes	# Socket options are not supported on all platforms. experimental. 
44238106Sdes	# interface-automatic: no
45238106Sdes
46238106Sdes	# port to answer queries from
47238106Sdes	# port: 53
48238106Sdes
49238106Sdes	# specify the interfaces to send outgoing queries to authoritative
50238106Sdes	# server from by ip-address. If none, the default (all) interface
51238106Sdes	# is used. Specify every interface on a 'outgoing-interface:' line.
52238106Sdes	# outgoing-interface: 192.0.2.153
53238106Sdes	# outgoing-interface: 2001:DB8::5
54238106Sdes	# outgoing-interface: 2001:DB8::6
55238106Sdes
56238106Sdes	# number of ports to allocate per thread, determines the size of the
57238106Sdes	# port range that can be open simultaneously.  About double the
58238106Sdes	# num-queries-per-thread, or, use as many as the OS will allow you.
59238106Sdes	# outgoing-range: 4096
60238106Sdes
61238106Sdes	# permit unbound to use this port number or port range for
62238106Sdes	# making outgoing queries, using an outgoing interface.
63238106Sdes	# outgoing-port-permit: 32768
64238106Sdes
65238106Sdes	# deny unbound the use this of port number or port range for
66238106Sdes	# making outgoing queries, using an outgoing interface.
67238106Sdes	# Use this to make sure unbound does not grab a UDP port that some
68238106Sdes	# other server on this computer needs. The default is to avoid
69238106Sdes	# IANA-assigned port numbers.
70249141Sdes	# If multiple outgoing-port-permit and outgoing-port-avoid options
71249141Sdes	# are present, they are processed in order.
72238106Sdes	# outgoing-port-avoid: "3200-3208"
73238106Sdes
74238106Sdes	# number of outgoing simultaneous tcp buffers to hold per thread.
75238106Sdes	# outgoing-num-tcp: 10
76238106Sdes
77238106Sdes	# number of incoming simultaneous tcp buffers to hold per thread.
78238106Sdes	# incoming-num-tcp: 10
79238106Sdes
80238106Sdes	# buffer size for UDP port 53 incoming (SO_RCVBUF socket option).
81238106Sdes	# 0 is system default.  Use 4m to catch query spikes for busy servers.
82238106Sdes	# so-rcvbuf: 0
83238106Sdes
84238106Sdes	# buffer size for UDP port 53 outgoing (SO_SNDBUF socket option).
85238106Sdes	# 0 is system default.  Use 4m to handle spikes on very busy servers.
86238106Sdes	# so-sndbuf: 0
87269257Sdes	
88285206Sdes	# use SO_REUSEPORT to distribute queries over threads.
89269257Sdes	# so-reuseport: no
90238106Sdes
91238106Sdes	# EDNS reassembly buffer to advertise to UDP peers (the actual buffer
92238106Sdes	# is set with msg-buffer-size). 1480 can solve fragmentation (timeouts).
93238106Sdes	# edns-buffer-size: 4096
94238106Sdes
95269257Sdes	# Maximum UDP response size (not applied to TCP response).
96269257Sdes	# Suggested values are 512 to 4096. Default is 4096. 65536 disables it.
97269257Sdes	# max-udp-size: 4096
98269257Sdes
99238106Sdes	# buffer size for handling DNS data. No messages larger than this
100238106Sdes	# size can be sent or received, by UDP or TCP. In bytes.
101238106Sdes	# msg-buffer-size: 65552
102238106Sdes
103238106Sdes	# the amount of memory to use for the message cache.
104238106Sdes	# plain value in bytes or you can append k, m or G. default is "4Mb". 
105238106Sdes	# msg-cache-size: 4m
106238106Sdes
107238106Sdes	# the number of slabs to use for the message cache.
108238106Sdes	# the number of slabs must be a power of 2.
109238106Sdes	# more slabs reduce lock contention, but fragment memory usage.
110238106Sdes	# msg-cache-slabs: 4
111238106Sdes
112238106Sdes	# the number of queries that a thread gets to service.
113238106Sdes	# num-queries-per-thread: 1024
114238106Sdes
115238106Sdes	# if very busy, 50% queries run to completion, 50% get timeout in msec
116238106Sdes	# jostle-timeout: 200
117269257Sdes	
118269257Sdes	# msec to wait before close of port on timeout UDP. 0 disables.
119269257Sdes	# delay-close: 0
120238106Sdes
121238106Sdes	# the amount of memory to use for the RRset cache.
122238106Sdes	# plain value in bytes or you can append k, m or G. default is "4Mb". 
123238106Sdes	# rrset-cache-size: 4m
124238106Sdes
125238106Sdes	# the number of slabs to use for the RRset cache.
126238106Sdes	# the number of slabs must be a power of 2.
127238106Sdes	# more slabs reduce lock contention, but fragment memory usage.
128238106Sdes	# rrset-cache-slabs: 4
129238106Sdes
130238106Sdes	# the time to live (TTL) value lower bound, in seconds. Default 0.
131238106Sdes	# If more than an hour could easily give trouble due to stale data.
132238106Sdes	# cache-min-ttl: 0
133238106Sdes
134238106Sdes	# the time to live (TTL) value cap for RRsets and messages in the
135238106Sdes	# cache. Items are not cached for longer. In seconds.
136238106Sdes	# cache-max-ttl: 86400
137238106Sdes
138238106Sdes	# the time to live (TTL) value for cached roundtrip times, lameness and
139238106Sdes	# EDNS version information for hosts. In seconds.
140238106Sdes	# infra-host-ttl: 900
141285206Sdes	
142285206Sdes	# minimum wait time for responses, increase if uplink is long. In msec.
143285206Sdes	# infra-cache-min-rtt: 50
144238106Sdes
145238106Sdes	# the number of slabs to use for the Infrastructure cache.
146238106Sdes	# the number of slabs must be a power of 2.
147238106Sdes	# more slabs reduce lock contention, but fragment memory usage.
148238106Sdes	# infra-cache-slabs: 4
149238106Sdes
150238106Sdes	# the maximum number of hosts that are cached (roundtrip, EDNS, lame).
151238106Sdes	# infra-cache-numhosts: 10000
152238106Sdes
153238106Sdes	# Enable IPv4, "yes" or "no".
154238106Sdes	# do-ip4: yes
155238106Sdes
156238106Sdes	# Enable IPv6, "yes" or "no".
157238106Sdes	# do-ip6: yes
158238106Sdes
159238106Sdes	# Enable UDP, "yes" or "no".
160238106Sdes	# do-udp: yes
161238106Sdes
162238106Sdes	# Enable TCP, "yes" or "no".
163238106Sdes	# do-tcp: yes
164238106Sdes
165238106Sdes	# upstream connections use TCP only (and no UDP), "yes" or "no"
166238106Sdes	# useful for tunneling scenarios, default no.
167238106Sdes	# tcp-upstream: no
168238106Sdes
169238106Sdes	# Detach from the terminal, run in background, "yes" or "no".
170238106Sdes	# do-daemonize: yes
171238106Sdes
172238106Sdes	# control which clients are allowed to make (recursive) queries
173238106Sdes	# to this server. Specify classless netblocks with /size and action.
174238106Sdes	# By default everything is refused, except for localhost.
175238106Sdes	# Choose deny (drop message), refuse (polite error reply),
176238106Sdes	# allow (recursive ok), allow_snoop (recursive and nonrecursive ok)
177269257Sdes	# deny_non_local (drop queries unless can be answered from local-data)
178269257Sdes	# refuse_non_local (like deny_non_local but polite error reply).
179238106Sdes	# access-control: 0.0.0.0/0 refuse
180238106Sdes	# access-control: 127.0.0.0/8 allow
181238106Sdes	# access-control: ::0/0 refuse
182238106Sdes	# access-control: ::1 allow
183238106Sdes	# access-control: ::ffff:127.0.0.1 allow
184238106Sdes
185238106Sdes	# if given, a chroot(2) is done to the given directory.
186238106Sdes	# i.e. you can chroot to the working directory, for example,
187238106Sdes	# for extra security, but make sure all files are in that directory.
188238106Sdes	#
189238106Sdes	# If chroot is enabled, you should pass the configfile (from the
190238106Sdes	# commandline) as a full path from the original root. After the
191238106Sdes	# chroot has been performed the now defunct portion of the config 
192238106Sdes	# file path is removed to be able to reread the config after a reload. 
193238106Sdes	#
194238106Sdes	# All other file paths (working dir, logfile, roothints, and
195238106Sdes	# key files) can be specified in several ways:
196238106Sdes	# 	o as an absolute path relative to the new root.
197238106Sdes	# 	o as a relative path to the working directory.
198238106Sdes	# 	o as an absolute path relative to the original root.
199238106Sdes	# In the last case the path is adjusted to remove the unused portion.
200238106Sdes	#
201238106Sdes	# The pid file can be absolute and outside of the chroot, it is 
202238106Sdes	# written just prior to performing the chroot and dropping permissions.
203238106Sdes	#
204238106Sdes	# Additionally, unbound may need to access /dev/random (for entropy).
205238106Sdes	# How to do this is specific to your OS.
206238106Sdes	#
207238106Sdes	# If you give "" no chroot is performed. The path must not end in a /.
208238106Sdes	# chroot: "@UNBOUND_CHROOT_DIR@"
209238106Sdes
210238106Sdes	# if given, user privileges are dropped (after binding port),
211238106Sdes	# and the given username is assumed. Default is user "unbound".
212238106Sdes	# If you give "" no privileges are dropped.
213238106Sdes	# username: "@UNBOUND_USERNAME@"
214238106Sdes
215238106Sdes	# the working directory. The relative files in this config are 
216238106Sdes	# relative to this directory. If you give "" the working directory
217238106Sdes	# is not changed.
218238106Sdes	# directory: "@UNBOUND_RUN_DIR@"
219238106Sdes
220238106Sdes	# the log file, "" means log to stderr. 
221238106Sdes	# Use of this option sets use-syslog to "no".
222238106Sdes	# logfile: ""
223238106Sdes
224238106Sdes	# Log to syslog(3) if yes. The log facility LOG_DAEMON is used to 
225238106Sdes	# log to, with identity "unbound". If yes, it overrides the logfile.
226238106Sdes	# use-syslog: yes 
227238106Sdes
228238106Sdes	# print UTC timestamp in ascii to logfile, default is epoch in seconds.
229238106Sdes	# log-time-ascii: no
230238106Sdes	
231238106Sdes	# print one line with time, IP, name, type, class for every query.
232238106Sdes	# log-queries: no
233238106Sdes
234238106Sdes	# the pid file. Can be an absolute path outside of chroot/work dir.
235238106Sdes	# pidfile: "@UNBOUND_PIDFILE@"
236238106Sdes
237238106Sdes	# file to read root hints from.
238238106Sdes	# get one from ftp://FTP.INTERNIC.NET/domain/named.cache
239238106Sdes	# root-hints: ""
240238106Sdes
241238106Sdes	# enable to not answer id.server and hostname.bind queries.
242238106Sdes	# hide-identity: no
243238106Sdes
244238106Sdes	# enable to not answer version.server and version.bind queries.
245238106Sdes	# hide-version: no
246238106Sdes
247238106Sdes	# the identity to report. Leave "" or default to return hostname.
248238106Sdes	# identity: ""
249238106Sdes
250238106Sdes	# the version to report. Leave "" or default to return package version.
251238106Sdes	# version: ""
252238106Sdes
253238106Sdes	# the target fetch policy.
254238106Sdes	# series of integers describing the policy per dependency depth. 
255238106Sdes	# The number of values in the list determines the maximum dependency 
256238106Sdes	# depth the recursor will pursue before giving up. Each integer means:
257238106Sdes	# 	-1 : fetch all targets opportunistically,
258238106Sdes	# 	0: fetch on demand,
259238106Sdes	#	positive value: fetch that many targets opportunistically.
260238106Sdes	# Enclose the list of numbers between quotes ("").
261238106Sdes	# target-fetch-policy: "3 2 1 0 0"
262238106Sdes
263238106Sdes	# Harden against very small EDNS buffer sizes. 
264238106Sdes	# harden-short-bufsize: no
265238106Sdes
266238106Sdes	# Harden against unseemly large queries.
267238106Sdes	# harden-large-queries: no
268238106Sdes
269238106Sdes	# Harden against out of zone rrsets, to avoid spoofing attempts. 
270238106Sdes	# harden-glue: yes
271238106Sdes
272238106Sdes	# Harden against receiving dnssec-stripped data. If you turn it
273238106Sdes	# off, failing to validate dnskey data for a trustanchor will 
274238106Sdes	# trigger insecure mode for that zone (like without a trustanchor).
275238106Sdes	# Default on, which insists on dnssec data for trust-anchored zones.
276238106Sdes	# harden-dnssec-stripped: yes
277238106Sdes
278238106Sdes	# Harden against queries that fall under dnssec-signed nxdomain names.
279238106Sdes	# harden-below-nxdomain: no
280238106Sdes
281238106Sdes        # Harden the referral path by performing additional queries for
282238106Sdes	# infrastructure data.  Validates the replies (if possible).
283238106Sdes	# Default off, because the lookups burden the server.  Experimental 
284238106Sdes	# implementation of draft-wijngaards-dnsext-resolver-side-mitigation.
285238106Sdes	# harden-referral-path: no
286238106Sdes
287238106Sdes	# Use 0x20-encoded random bits in the query to foil spoof attempts.
288238106Sdes	# This feature is an experimental implementation of draft dns-0x20.
289238106Sdes	# use-caps-for-id: no
290238106Sdes
291238106Sdes	# Enforce privacy of these addresses. Strips them away from answers. 
292238106Sdes	# It may cause DNSSEC validation to additionally mark it as bogus. 
293238106Sdes	# Protects against 'DNS Rebinding' (uses browser as network proxy). 
294238106Sdes	# Only 'private-domain' and 'local-data' names are allowed to have 
295238106Sdes	# these private addresses. No default.
296238106Sdes	# private-address: 10.0.0.0/8
297238106Sdes	# private-address: 172.16.0.0/12
298238106Sdes	# private-address: 192.168.0.0/16
299238106Sdes	# private-address: 169.254.0.0/16
300238106Sdes	# private-address: fd00::/8
301238106Sdes	# private-address: fe80::/10
302238106Sdes
303238106Sdes	# Allow the domain (and its subdomains) to contain private addresses.
304238106Sdes	# local-data statements are allowed to contain private addresses too.
305238106Sdes	# private-domain: "example.com"
306238106Sdes
307238106Sdes	# If nonzero, unwanted replies are not only reported in statistics,
308238106Sdes	# but also a running total is kept per thread. If it reaches the
309238106Sdes	# threshold, a warning is printed and a defensive action is taken,
310238106Sdes	# the cache is cleared to flush potential poison out of it.
311238106Sdes	# A suggested value is 10000000, the default is 0 (turned off).
312238106Sdes	# unwanted-reply-threshold: 0
313238106Sdes
314238106Sdes	# Do not query the following addresses. No DNS queries are sent there.
315238106Sdes	# List one address per entry. List classless netblocks with /size,
316238106Sdes	# do-not-query-address: 127.0.0.1/8
317238106Sdes	# do-not-query-address: ::1
318238106Sdes
319238106Sdes	# if yes, the above default do-not-query-address entries are present.
320238106Sdes	# if no, localhost can be queried (for testing and debugging).
321238106Sdes	# do-not-query-localhost: yes
322238106Sdes
323238106Sdes	# if yes, perform prefetching of almost expired message cache entries.
324238106Sdes	# prefetch: no
325238106Sdes
326238106Sdes	# if yes, perform key lookups adjacent to normal lookups.
327238106Sdes	# prefetch-key: no
328238106Sdes
329238106Sdes	# if yes, Unbound rotates RRSet order in response.
330238106Sdes	# rrset-roundrobin: no
331238106Sdes
332238106Sdes	# if yes, Unbound doesn't insert authority/additional sections
333238106Sdes	# into response messages when those sections are not required.
334238106Sdes	# minimal-responses: no
335238106Sdes
336238106Sdes	# module configuration of the server. A string with identifiers
337285206Sdes	# separated by spaces. Syntax: "[dns64] [validator] iterator"
338238106Sdes	# module-config: "validator iterator"
339238106Sdes
340238106Sdes	# File with trusted keys, kept uptodate using RFC5011 probes,
341238106Sdes	# initial file like trust-anchor-file, then it stores metadata.
342238106Sdes	# Use several entries, one per domain name, to track multiple zones.
343238106Sdes	#
344238106Sdes	# If you want to perform DNSSEC validation, run unbound-anchor before
345238106Sdes	# you start unbound (i.e. in the system boot scripts).  And enable:
346238106Sdes	# Please note usage of unbound-anchor root anchor is at your own risk
347238106Sdes	# and under the terms of our LICENSE (see that file in the source).
348238106Sdes	# auto-trust-anchor-file: "@UNBOUND_ROOTKEY_FILE@"
349238106Sdes
350238106Sdes	# File with DLV trusted keys. Same format as trust-anchor-file.
351238106Sdes	# There can be only one DLV configured, it is trusted from root down.
352238106Sdes	# Download http://ftp.isc.org/www/dlv/dlv.isc.org.key
353238106Sdes	# dlv-anchor-file: "dlv.isc.org.key"
354238106Sdes
355238106Sdes	# File with trusted keys for validation. Specify more than one file
356238106Sdes	# with several entries, one file per entry.
357238106Sdes	# Zone file format, with DS and DNSKEY entries.
358238106Sdes	# Note this gets out of date, use auto-trust-anchor-file please.
359238106Sdes	# trust-anchor-file: ""
360238106Sdes	
361238106Sdes	# Trusted key for validation. DS or DNSKEY. specify the RR on a
362238106Sdes	# single line, surrounded by "". TTL is ignored. class is IN default.
363238106Sdes	# Note this gets out of date, use auto-trust-anchor-file please.
364238106Sdes	# (These examples are from August 2007 and may not be valid anymore).
365238106Sdes	# trust-anchor: "nlnetlabs.nl. DNSKEY 257 3 5 AQPzzTWMz8qSWIQlfRnPckx2BiVmkVN6LPupO3mbz7FhLSnm26n6iG9N Lby97Ji453aWZY3M5/xJBSOS2vWtco2t8C0+xeO1bc/d6ZTy32DHchpW 6rDH1vp86Ll+ha0tmwyy9QP7y2bVw5zSbFCrefk8qCUBgfHm9bHzMG1U BYtEIQ=="
366238106Sdes	# trust-anchor: "jelte.nlnetlabs.nl. DS 42860 5 1 14D739EB566D2B1A5E216A0BA4D17FA9B038BE4A"
367238106Sdes
368238106Sdes	# File with trusted keys for validation. Specify more than one file
369238106Sdes	# with several entries, one file per entry. Like trust-anchor-file
370238106Sdes	# but has a different file format. Format is BIND-9 style format, 
371238106Sdes	# the trusted-keys { name flag proto algo "key"; }; clauses are read.
372238106Sdes	# you need external update procedures to track changes in keys.
373238106Sdes	# trusted-keys-file: ""
374238106Sdes
375238106Sdes	# Ignore chain of trust. Domain is treated as insecure.
376238106Sdes	# domain-insecure: "example.com"
377238106Sdes
378238106Sdes	# Override the date for validation with a specific fixed date.
379238106Sdes	# Do not set this unless you are debugging signature inception
380238106Sdes	# and expiration. "" or "0" turns the feature off. -1 ignores date.
381238106Sdes	# val-override-date: ""
382238106Sdes
383238106Sdes	# The time to live for bogus data, rrsets and messages. This avoids
384238106Sdes	# some of the revalidation, until the time interval expires. in secs.
385238106Sdes	# val-bogus-ttl: 60
386238106Sdes
387238106Sdes	# The signature inception and expiration dates are allowed to be off
388238106Sdes	# by 10% of the signature lifetime (expir-incep) from our local clock.
389238106Sdes	# This leeway is capped with a minimum and a maximum.  In seconds.
390238106Sdes	# val-sig-skew-min: 3600
391238106Sdes	# val-sig-skew-max: 86400
392238106Sdes
393238106Sdes	# Should additional section of secure message also be kept clean of
394238106Sdes	# unsecure data. Useful to shield the users of this validator from
395238106Sdes	# potential bogus data in the additional section. All unsigned data 
396238106Sdes	# in the additional section is removed from secure messages.
397238106Sdes	# val-clean-additional: yes
398238106Sdes
399238106Sdes	# Turn permissive mode on to permit bogus messages. Thus, messages
400238106Sdes	# for which security checks failed will be returned to clients,
401238106Sdes	# instead of SERVFAIL. It still performs the security checks, which
402238106Sdes	# result in interesting log files and possibly the AD bit in
403238106Sdes	# replies if the message is found secure. The default is off.
404238106Sdes	# val-permissive-mode: no
405238106Sdes
406238106Sdes	# Ignore the CD flag in incoming queries and refuse them bogus data.
407238106Sdes	# Enable it if the only clients of unbound are legacy servers (w2008)
408238106Sdes	# that set CD but cannot validate themselves.
409238106Sdes	# ignore-cd-flag: no
410238106Sdes
411238106Sdes	# Have the validator log failed validations for your diagnosis.
412238106Sdes	# 0: off. 1: A line per failed user query. 2: With reason and bad IP.
413238106Sdes	# val-log-level: 0
414238106Sdes
415238106Sdes	# It is possible to configure NSEC3 maximum iteration counts per
416238106Sdes	# keysize. Keep this table very short, as linear search is done.
417238106Sdes	# A message with an NSEC3 with larger count is marked insecure.
418238106Sdes	# List in ascending order the keysize and count values.
419238106Sdes	# val-nsec3-keysize-iterations: "1024 150 2048 500 4096 2500"
420238106Sdes	
421238106Sdes	# instruct the auto-trust-anchor-file probing to add anchors after ttl.
422238106Sdes	# add-holddown: 2592000 # 30 days
423238106Sdes
424238106Sdes	# instruct the auto-trust-anchor-file probing to del anchors after ttl.
425238106Sdes	# del-holddown: 2592000 # 30 days
426238106Sdes
427238106Sdes	# auto-trust-anchor-file probing removes missing anchors after ttl.
428238106Sdes	# If the value 0 is given, missing anchors are not removed.
429238106Sdes	# keep-missing: 31622400 # 366 days
430238106Sdes
431238106Sdes	# the amount of memory to use for the key cache.
432238106Sdes	# plain value in bytes or you can append k, m or G. default is "4Mb". 
433238106Sdes	# key-cache-size: 4m
434238106Sdes
435238106Sdes	# the number of slabs to use for the key cache.
436238106Sdes	# the number of slabs must be a power of 2.
437238106Sdes	# more slabs reduce lock contention, but fragment memory usage.
438238106Sdes	# key-cache-slabs: 4
439238106Sdes
440238106Sdes	# the amount of memory to use for the negative cache (used for DLV).
441238106Sdes	# plain value in bytes or you can append k, m or G. default is "1Mb". 
442238106Sdes	# neg-cache-size: 1m
443285206Sdes
444269257Sdes	# By default, for a number of zones a small default 'nothing here'
445269257Sdes	# reply is built-in.  Query traffic is thus blocked.  If you
446269257Sdes	# wish to serve such zone you can unblock them by uncommenting one
447269257Sdes	# of the nodefault statements below.
448269257Sdes	# You may also have to use domain-insecure: zone to make DNSSEC work,
449269257Sdes	# unless you have your own trust anchors for this zone.
450269257Sdes	# local-zone: "localhost." nodefault
451269257Sdes	# local-zone: "127.in-addr.arpa." nodefault
452269257Sdes	# 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
453269257Sdes	# local-zone: "10.in-addr.arpa." nodefault
454269257Sdes	# local-zone: "16.172.in-addr.arpa." nodefault
455269257Sdes	# local-zone: "17.172.in-addr.arpa." nodefault
456269257Sdes	# local-zone: "18.172.in-addr.arpa." nodefault
457269257Sdes	# local-zone: "19.172.in-addr.arpa." nodefault
458269257Sdes	# local-zone: "20.172.in-addr.arpa." nodefault
459269257Sdes	# local-zone: "21.172.in-addr.arpa." nodefault
460269257Sdes	# local-zone: "22.172.in-addr.arpa." nodefault
461269257Sdes	# local-zone: "23.172.in-addr.arpa." nodefault
462269257Sdes	# local-zone: "24.172.in-addr.arpa." nodefault
463269257Sdes	# local-zone: "25.172.in-addr.arpa." nodefault
464269257Sdes	# local-zone: "26.172.in-addr.arpa." nodefault
465269257Sdes	# local-zone: "27.172.in-addr.arpa." nodefault
466269257Sdes	# local-zone: "28.172.in-addr.arpa." nodefault
467269257Sdes	# local-zone: "29.172.in-addr.arpa." nodefault
468269257Sdes	# local-zone: "30.172.in-addr.arpa." nodefault
469269257Sdes	# local-zone: "31.172.in-addr.arpa." nodefault
470269257Sdes	# local-zone: "168.192.in-addr.arpa." nodefault
471269257Sdes	# local-zone: "0.in-addr.arpa." nodefault
472269257Sdes	# local-zone: "254.169.in-addr.arpa." nodefault
473269257Sdes	# local-zone: "2.0.192.in-addr.arpa." nodefault
474269257Sdes	# local-zone: "100.51.198.in-addr.arpa." nodefault
475269257Sdes	# local-zone: "113.0.203.in-addr.arpa." nodefault
476269257Sdes	# local-zone: "255.255.255.255.in-addr.arpa." nodefault
477269257Sdes	# 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
478269257Sdes	# local-zone: "d.f.ip6.arpa." nodefault
479269257Sdes	# local-zone: "8.e.f.ip6.arpa." nodefault
480269257Sdes	# local-zone: "9.e.f.ip6.arpa." nodefault
481269257Sdes	# local-zone: "a.e.f.ip6.arpa." nodefault
482269257Sdes	# local-zone: "b.e.f.ip6.arpa." nodefault
483269257Sdes	# local-zone: "8.b.d.0.1.0.0.2.ip6.arpa." nodefault
484285206Sdes	# And for 64.100.in-addr.arpa. to 127.100.in-addr.arpa.
485285206Sdes	
486285206Sdes	# if unbound is running service for the local host then it is useful
487285206Sdes	# to perform lan-wide lookups to the upstream, and unblock the
488285206Sdes	# long list of local-zones above.  If this unbound is a dns server
489285206Sdes	# for a network of computers, disabled is better and stops information
490285206Sdes	# leakage of local lan information.
491285206Sdes	# unblock-lan-zones: no
492238106Sdes
493238106Sdes	# a number of locally served zones can be configured.
494238106Sdes	# 	local-zone: <zone> <type>
495238106Sdes	# 	local-data: "<resource record string>"
496238106Sdes	# o deny serves local data (if any), else, drops queries. 
497238106Sdes	# o refuse serves local data (if any), else, replies with error.
498238106Sdes	# o static serves local data, else, nxdomain or nodata answer.
499238106Sdes	# o transparent gives local data, but resolves normally for other names
500238106Sdes	# o redirect serves the zone data for any subdomain in the zone.
501238106Sdes	# o nodefault can be used to normally resolve AS112 zones.
502238106Sdes	# o typetransparent resolves normally for other types and other names
503285206Sdes	# o inform resolves normally, but logs client IP address
504238106Sdes	#
505238106Sdes	# defaults are localhost address, reverse for 127.0.0.1 and ::1
506238106Sdes	# and nxdomain for AS112 zones. If you configure one of these zones
507238106Sdes	# the default content is omitted, or you can omit it with 'nodefault'.
508238106Sdes	# 
509238106Sdes	# If you configure local-data without specifying local-zone, by
510238106Sdes	# default a transparent local-zone is created for the data.
511238106Sdes	#
512238106Sdes	# You can add locally served data with
513238106Sdes	# local-zone: "local." static
514238106Sdes	# local-data: "mycomputer.local. IN A 192.0.2.51"
515238106Sdes	# local-data: 'mytext.local TXT "content of text record"'
516238106Sdes	#
517238106Sdes	# You can override certain queries with
518238106Sdes	# local-data: "adserver.example.com A 127.0.0.1"
519238106Sdes	#
520238106Sdes	# You can redirect a domain to a fixed address with
521238106Sdes	# (this makes example.com, www.example.com, etc, all go to 192.0.2.3)
522238106Sdes	# local-zone: "example.com" redirect
523238106Sdes	# local-data: "example.com A 192.0.2.3"
524238106Sdes	#
525238106Sdes	# Shorthand to make PTR records, "IPv4 name" or "IPv6 name".
526238106Sdes	# You can also add PTR records using local-data directly, but then
527238106Sdes	# you need to do the reverse notation yourself.
528238106Sdes	# local-data-ptr: "192.0.2.3 www.example.com"
529238106Sdes
530238106Sdes	# service clients over SSL (on the TCP sockets), with plain DNS inside
531238106Sdes	# the SSL stream.  Give the certificate to use and private key.
532238106Sdes	# default is "" (disabled).  requires restart to take effect.
533238106Sdes	# ssl-service-key: "path/to/privatekeyfile.key"
534238106Sdes	# ssl-service-pem: "path/to/publiccertfile.pem"
535238106Sdes	# ssl-port: 443
536238106Sdes
537238106Sdes	# request upstream over SSL (with plain DNS inside the SSL stream).
538238106Sdes	# Default is no.  Can be turned on and off with unbound-control.
539238106Sdes	# ssl-upstream: no
540238106Sdes
541285206Sdes	# DNS64 prefix. Must be specified when DNS64 is use.
542285206Sdes	# Enable dns64 in module-config.  Used to synthesize IPv6 from IPv4.
543285206Sdes	# dns64-prefix: 64:ff9b::0/96
544285206Sdes
545238106Sdes# Python config section. To enable:
546238106Sdes# o use --with-pythonmodule to configure before compiling.
547238106Sdes# o list python in the module-config string (above) to enable.
548238106Sdes# o and give a python-script to run.
549238106Sdespython:
550238106Sdes	# Script file to load
551238106Sdes	# python-script: "@UNBOUND_SHARE_DIR@/ubmodule-tst.py"
552238106Sdes
553238106Sdes# Remote control config section. 
554238106Sdesremote-control:
555238106Sdes	# Enable remote control with unbound-control(8) here.
556238106Sdes	# set up the keys and certificates with unbound-control-setup.
557238106Sdes	# control-enable: no
558238106Sdes
559285206Sdes	# Set to no and use an absolute path as control-interface to use
560285206Sdes	# a unix local named pipe for unbound-control.
561285206Sdes	# control-use-cert: yes
562285206Sdes
563238106Sdes	# what interfaces are listened to for remote control.
564238106Sdes	# give 0.0.0.0 and ::0 to listen to all interfaces.
565238106Sdes	# control-interface: 127.0.0.1
566238106Sdes	# control-interface: ::1
567238106Sdes
568238106Sdes	# port number for remote control operations.
569238106Sdes	# control-port: 8953
570238106Sdes
571238106Sdes	# unbound server key file.
572238106Sdes	# server-key-file: "@UNBOUND_RUN_DIR@/unbound_server.key"
573238106Sdes
574238106Sdes	# unbound server certificate file.
575238106Sdes	# server-cert-file: "@UNBOUND_RUN_DIR@/unbound_server.pem"
576238106Sdes
577238106Sdes	# unbound-control key file.
578238106Sdes	# control-key-file: "@UNBOUND_RUN_DIR@/unbound_control.key"
579238106Sdes
580238106Sdes	# unbound-control certificate file.
581238106Sdes	# control-cert-file: "@UNBOUND_RUN_DIR@/unbound_control.pem"
582238106Sdes
583238106Sdes# Stub zones.
584238106Sdes# Create entries like below, to make all queries for 'example.com' and 
585238106Sdes# 'example.org' go to the given list of nameservers. list zero or more 
586238106Sdes# nameservers by hostname or by ipaddress. If you set stub-prime to yes, 
587238106Sdes# the list is treated as priming hints (default is no).
588238106Sdes# With stub-first yes, it attempts without the stub if it fails.
589238106Sdes# stub-zone:
590238106Sdes#	name: "example.com"
591238106Sdes#	stub-addr: 192.0.2.68
592238106Sdes#	stub-prime: no
593238106Sdes#	stub-first: no
594238106Sdes# stub-zone:
595238106Sdes#	name: "example.org"
596238106Sdes#	stub-host: ns.example.com.
597238106Sdes
598238106Sdes# Forward zones
599238106Sdes# Create entries like below, to make all queries for 'example.com' and
600238106Sdes# 'example.org' go to the given list of servers. These servers have to handle
601238106Sdes# recursion to other nameservers. List zero or more nameservers by hostname
602238106Sdes# or by ipaddress. Use an entry with name "." to forward all queries.
603238106Sdes# If you enable forward-first, it attempts without the forward if it fails.
604238106Sdes# forward-zone:
605238106Sdes# 	name: "example.com"
606238106Sdes# 	forward-addr: 192.0.2.68
607238106Sdes# 	forward-addr: 192.0.2.73@5355  # forward to port 5355.
608238106Sdes# 	forward-first: no
609238106Sdes# forward-zone:
610238106Sdes# 	name: "example.org"
611238106Sdes# 	forward-host: fwd.example.com
612