1238106Sdes#
2238106Sdes# Example configuration file.
3238106Sdes#
4249141Sdes# See unbound.conf(5) man page, version 1.4.20.
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
87238106Sdes
88238106Sdes	# EDNS reassembly buffer to advertise to UDP peers (the actual buffer
89238106Sdes	# is set with msg-buffer-size). 1480 can solve fragmentation (timeouts).
90238106Sdes	# edns-buffer-size: 4096
91238106Sdes
92238106Sdes	# buffer size for handling DNS data. No messages larger than this
93238106Sdes	# size can be sent or received, by UDP or TCP. In bytes.
94238106Sdes	# msg-buffer-size: 65552
95238106Sdes
96238106Sdes	# the amount of memory to use for the message cache.
97238106Sdes	# plain value in bytes or you can append k, m or G. default is "4Mb". 
98238106Sdes	# msg-cache-size: 4m
99238106Sdes
100238106Sdes	# the number of slabs to use for the message cache.
101238106Sdes	# the number of slabs must be a power of 2.
102238106Sdes	# more slabs reduce lock contention, but fragment memory usage.
103238106Sdes	# msg-cache-slabs: 4
104238106Sdes
105238106Sdes	# the number of queries that a thread gets to service.
106238106Sdes	# num-queries-per-thread: 1024
107238106Sdes
108238106Sdes	# if very busy, 50% queries run to completion, 50% get timeout in msec
109238106Sdes	# jostle-timeout: 200
110238106Sdes
111238106Sdes	# the amount of memory to use for the RRset cache.
112238106Sdes	# plain value in bytes or you can append k, m or G. default is "4Mb". 
113238106Sdes	# rrset-cache-size: 4m
114238106Sdes
115238106Sdes	# the number of slabs to use for the RRset cache.
116238106Sdes	# the number of slabs must be a power of 2.
117238106Sdes	# more slabs reduce lock contention, but fragment memory usage.
118238106Sdes	# rrset-cache-slabs: 4
119238106Sdes
120238106Sdes	# the time to live (TTL) value lower bound, in seconds. Default 0.
121238106Sdes	# If more than an hour could easily give trouble due to stale data.
122238106Sdes	# cache-min-ttl: 0
123238106Sdes
124238106Sdes	# the time to live (TTL) value cap for RRsets and messages in the
125238106Sdes	# cache. Items are not cached for longer. In seconds.
126238106Sdes	# cache-max-ttl: 86400
127238106Sdes
128238106Sdes	# the time to live (TTL) value for cached roundtrip times, lameness and
129238106Sdes	# EDNS version information for hosts. In seconds.
130238106Sdes	# infra-host-ttl: 900
131238106Sdes
132238106Sdes	# the number of slabs to use for the Infrastructure cache.
133238106Sdes	# the number of slabs must be a power of 2.
134238106Sdes	# more slabs reduce lock contention, but fragment memory usage.
135238106Sdes	# infra-cache-slabs: 4
136238106Sdes
137238106Sdes	# the maximum number of hosts that are cached (roundtrip, EDNS, lame).
138238106Sdes	# infra-cache-numhosts: 10000
139238106Sdes
140238106Sdes	# Enable IPv4, "yes" or "no".
141238106Sdes	# do-ip4: yes
142238106Sdes
143238106Sdes	# Enable IPv6, "yes" or "no".
144238106Sdes	# do-ip6: yes
145238106Sdes
146238106Sdes	# Enable UDP, "yes" or "no".
147238106Sdes	# do-udp: yes
148238106Sdes
149238106Sdes	# Enable TCP, "yes" or "no".
150238106Sdes	# do-tcp: yes
151238106Sdes
152238106Sdes	# upstream connections use TCP only (and no UDP), "yes" or "no"
153238106Sdes	# useful for tunneling scenarios, default no.
154238106Sdes	# tcp-upstream: no
155238106Sdes
156238106Sdes	# Detach from the terminal, run in background, "yes" or "no".
157238106Sdes	# do-daemonize: yes
158238106Sdes
159238106Sdes	# control which clients are allowed to make (recursive) queries
160238106Sdes	# to this server. Specify classless netblocks with /size and action.
161238106Sdes	# By default everything is refused, except for localhost.
162238106Sdes	# Choose deny (drop message), refuse (polite error reply),
163238106Sdes	# allow (recursive ok), allow_snoop (recursive and nonrecursive ok)
164238106Sdes	# access-control: 0.0.0.0/0 refuse
165238106Sdes	# access-control: 127.0.0.0/8 allow
166238106Sdes	# access-control: ::0/0 refuse
167238106Sdes	# access-control: ::1 allow
168238106Sdes	# access-control: ::ffff:127.0.0.1 allow
169238106Sdes
170238106Sdes	# if given, a chroot(2) is done to the given directory.
171238106Sdes	# i.e. you can chroot to the working directory, for example,
172238106Sdes	# for extra security, but make sure all files are in that directory.
173238106Sdes	#
174238106Sdes	# If chroot is enabled, you should pass the configfile (from the
175238106Sdes	# commandline) as a full path from the original root. After the
176238106Sdes	# chroot has been performed the now defunct portion of the config 
177238106Sdes	# file path is removed to be able to reread the config after a reload. 
178238106Sdes	#
179238106Sdes	# All other file paths (working dir, logfile, roothints, and
180238106Sdes	# key files) can be specified in several ways:
181238106Sdes	# 	o as an absolute path relative to the new root.
182238106Sdes	# 	o as a relative path to the working directory.
183238106Sdes	# 	o as an absolute path relative to the original root.
184238106Sdes	# In the last case the path is adjusted to remove the unused portion.
185238106Sdes	#
186238106Sdes	# The pid file can be absolute and outside of the chroot, it is 
187238106Sdes	# written just prior to performing the chroot and dropping permissions.
188238106Sdes	#
189238106Sdes	# Additionally, unbound may need to access /dev/random (for entropy).
190238106Sdes	# How to do this is specific to your OS.
191238106Sdes	#
192238106Sdes	# If you give "" no chroot is performed. The path must not end in a /.
193238106Sdes	# chroot: "@UNBOUND_CHROOT_DIR@"
194238106Sdes
195238106Sdes	# if given, user privileges are dropped (after binding port),
196238106Sdes	# and the given username is assumed. Default is user "unbound".
197238106Sdes	# If you give "" no privileges are dropped.
198238106Sdes	# username: "@UNBOUND_USERNAME@"
199238106Sdes
200238106Sdes	# the working directory. The relative files in this config are 
201238106Sdes	# relative to this directory. If you give "" the working directory
202238106Sdes	# is not changed.
203238106Sdes	# directory: "@UNBOUND_RUN_DIR@"
204238106Sdes
205238106Sdes	# the log file, "" means log to stderr. 
206238106Sdes	# Use of this option sets use-syslog to "no".
207238106Sdes	# logfile: ""
208238106Sdes
209238106Sdes	# Log to syslog(3) if yes. The log facility LOG_DAEMON is used to 
210238106Sdes	# log to, with identity "unbound". If yes, it overrides the logfile.
211238106Sdes	# use-syslog: yes 
212238106Sdes
213238106Sdes	# print UTC timestamp in ascii to logfile, default is epoch in seconds.
214238106Sdes	# log-time-ascii: no
215238106Sdes	
216238106Sdes	# print one line with time, IP, name, type, class for every query.
217238106Sdes	# log-queries: no
218238106Sdes
219238106Sdes	# the pid file. Can be an absolute path outside of chroot/work dir.
220238106Sdes	# pidfile: "@UNBOUND_PIDFILE@"
221238106Sdes
222238106Sdes	# file to read root hints from.
223238106Sdes	# get one from ftp://FTP.INTERNIC.NET/domain/named.cache
224238106Sdes	# root-hints: ""
225238106Sdes
226238106Sdes	# enable to not answer id.server and hostname.bind queries.
227238106Sdes	# hide-identity: no
228238106Sdes
229238106Sdes	# enable to not answer version.server and version.bind queries.
230238106Sdes	# hide-version: no
231238106Sdes
232238106Sdes	# the identity to report. Leave "" or default to return hostname.
233238106Sdes	# identity: ""
234238106Sdes
235238106Sdes	# the version to report. Leave "" or default to return package version.
236238106Sdes	# version: ""
237238106Sdes
238238106Sdes	# the target fetch policy.
239238106Sdes	# series of integers describing the policy per dependency depth. 
240238106Sdes	# The number of values in the list determines the maximum dependency 
241238106Sdes	# depth the recursor will pursue before giving up. Each integer means:
242238106Sdes	# 	-1 : fetch all targets opportunistically,
243238106Sdes	# 	0: fetch on demand,
244238106Sdes	#	positive value: fetch that many targets opportunistically.
245238106Sdes	# Enclose the list of numbers between quotes ("").
246238106Sdes	# target-fetch-policy: "3 2 1 0 0"
247238106Sdes
248238106Sdes	# Harden against very small EDNS buffer sizes. 
249238106Sdes	# harden-short-bufsize: no
250238106Sdes
251238106Sdes	# Harden against unseemly large queries.
252238106Sdes	# harden-large-queries: no
253238106Sdes
254238106Sdes	# Harden against out of zone rrsets, to avoid spoofing attempts. 
255238106Sdes	# harden-glue: yes
256238106Sdes
257238106Sdes	# Harden against receiving dnssec-stripped data. If you turn it
258238106Sdes	# off, failing to validate dnskey data for a trustanchor will 
259238106Sdes	# trigger insecure mode for that zone (like without a trustanchor).
260238106Sdes	# Default on, which insists on dnssec data for trust-anchored zones.
261238106Sdes	# harden-dnssec-stripped: yes
262238106Sdes
263238106Sdes	# Harden against queries that fall under dnssec-signed nxdomain names.
264238106Sdes	# harden-below-nxdomain: no
265238106Sdes
266238106Sdes        # Harden the referral path by performing additional queries for
267238106Sdes	# infrastructure data.  Validates the replies (if possible).
268238106Sdes	# Default off, because the lookups burden the server.  Experimental 
269238106Sdes	# implementation of draft-wijngaards-dnsext-resolver-side-mitigation.
270238106Sdes	# harden-referral-path: no
271238106Sdes
272238106Sdes	# Use 0x20-encoded random bits in the query to foil spoof attempts.
273238106Sdes	# This feature is an experimental implementation of draft dns-0x20.
274238106Sdes	# use-caps-for-id: no
275238106Sdes
276238106Sdes	# Enforce privacy of these addresses. Strips them away from answers. 
277238106Sdes	# It may cause DNSSEC validation to additionally mark it as bogus. 
278238106Sdes	# Protects against 'DNS Rebinding' (uses browser as network proxy). 
279238106Sdes	# Only 'private-domain' and 'local-data' names are allowed to have 
280238106Sdes	# these private addresses. No default.
281238106Sdes	# private-address: 10.0.0.0/8
282238106Sdes	# private-address: 172.16.0.0/12
283238106Sdes	# private-address: 192.168.0.0/16
284238106Sdes	# private-address: 169.254.0.0/16
285238106Sdes	# private-address: fd00::/8
286238106Sdes	# private-address: fe80::/10
287238106Sdes
288238106Sdes	# Allow the domain (and its subdomains) to contain private addresses.
289238106Sdes	# local-data statements are allowed to contain private addresses too.
290238106Sdes	# private-domain: "example.com"
291238106Sdes
292238106Sdes	# If nonzero, unwanted replies are not only reported in statistics,
293238106Sdes	# but also a running total is kept per thread. If it reaches the
294238106Sdes	# threshold, a warning is printed and a defensive action is taken,
295238106Sdes	# the cache is cleared to flush potential poison out of it.
296238106Sdes	# A suggested value is 10000000, the default is 0 (turned off).
297238106Sdes	# unwanted-reply-threshold: 0
298238106Sdes
299238106Sdes	# Do not query the following addresses. No DNS queries are sent there.
300238106Sdes	# List one address per entry. List classless netblocks with /size,
301238106Sdes	# do-not-query-address: 127.0.0.1/8
302238106Sdes	# do-not-query-address: ::1
303238106Sdes
304238106Sdes	# if yes, the above default do-not-query-address entries are present.
305238106Sdes	# if no, localhost can be queried (for testing and debugging).
306238106Sdes	# do-not-query-localhost: yes
307238106Sdes
308238106Sdes	# if yes, perform prefetching of almost expired message cache entries.
309238106Sdes	# prefetch: no
310238106Sdes
311238106Sdes	# if yes, perform key lookups adjacent to normal lookups.
312238106Sdes	# prefetch-key: no
313238106Sdes
314238106Sdes	# if yes, Unbound rotates RRSet order in response.
315238106Sdes	# rrset-roundrobin: no
316238106Sdes
317238106Sdes	# if yes, Unbound doesn't insert authority/additional sections
318238106Sdes	# into response messages when those sections are not required.
319238106Sdes	# minimal-responses: no
320238106Sdes
321238106Sdes	# module configuration of the server. A string with identifiers
322238106Sdes	# separated by spaces. "iterator" or "validator iterator"
323238106Sdes	# module-config: "validator iterator"
324238106Sdes
325238106Sdes	# File with trusted keys, kept uptodate using RFC5011 probes,
326238106Sdes	# initial file like trust-anchor-file, then it stores metadata.
327238106Sdes	# Use several entries, one per domain name, to track multiple zones.
328238106Sdes	#
329238106Sdes	# If you want to perform DNSSEC validation, run unbound-anchor before
330238106Sdes	# you start unbound (i.e. in the system boot scripts).  And enable:
331238106Sdes	# Please note usage of unbound-anchor root anchor is at your own risk
332238106Sdes	# and under the terms of our LICENSE (see that file in the source).
333238106Sdes	# auto-trust-anchor-file: "@UNBOUND_ROOTKEY_FILE@"
334238106Sdes
335238106Sdes	# File with DLV trusted keys. Same format as trust-anchor-file.
336238106Sdes	# There can be only one DLV configured, it is trusted from root down.
337238106Sdes	# Download http://ftp.isc.org/www/dlv/dlv.isc.org.key
338238106Sdes	# dlv-anchor-file: "dlv.isc.org.key"
339238106Sdes
340238106Sdes	# File with trusted keys for validation. Specify more than one file
341238106Sdes	# with several entries, one file per entry.
342238106Sdes	# Zone file format, with DS and DNSKEY entries.
343238106Sdes	# Note this gets out of date, use auto-trust-anchor-file please.
344238106Sdes	# trust-anchor-file: ""
345238106Sdes	
346238106Sdes	# Trusted key for validation. DS or DNSKEY. specify the RR on a
347238106Sdes	# single line, surrounded by "". TTL is ignored. class is IN default.
348238106Sdes	# Note this gets out of date, use auto-trust-anchor-file please.
349238106Sdes	# (These examples are from August 2007 and may not be valid anymore).
350238106Sdes	# trust-anchor: "nlnetlabs.nl. DNSKEY 257 3 5 AQPzzTWMz8qSWIQlfRnPckx2BiVmkVN6LPupO3mbz7FhLSnm26n6iG9N Lby97Ji453aWZY3M5/xJBSOS2vWtco2t8C0+xeO1bc/d6ZTy32DHchpW 6rDH1vp86Ll+ha0tmwyy9QP7y2bVw5zSbFCrefk8qCUBgfHm9bHzMG1U BYtEIQ=="
351238106Sdes	# trust-anchor: "jelte.nlnetlabs.nl. DS 42860 5 1 14D739EB566D2B1A5E216A0BA4D17FA9B038BE4A"
352238106Sdes
353238106Sdes	# File with trusted keys for validation. Specify more than one file
354238106Sdes	# with several entries, one file per entry. Like trust-anchor-file
355238106Sdes	# but has a different file format. Format is BIND-9 style format, 
356238106Sdes	# the trusted-keys { name flag proto algo "key"; }; clauses are read.
357238106Sdes	# you need external update procedures to track changes in keys.
358238106Sdes	# trusted-keys-file: ""
359238106Sdes
360238106Sdes	# Ignore chain of trust. Domain is treated as insecure.
361238106Sdes	# domain-insecure: "example.com"
362238106Sdes
363238106Sdes	# Override the date for validation with a specific fixed date.
364238106Sdes	# Do not set this unless you are debugging signature inception
365238106Sdes	# and expiration. "" or "0" turns the feature off. -1 ignores date.
366238106Sdes	# val-override-date: ""
367238106Sdes
368238106Sdes	# The time to live for bogus data, rrsets and messages. This avoids
369238106Sdes	# some of the revalidation, until the time interval expires. in secs.
370238106Sdes	# val-bogus-ttl: 60
371238106Sdes
372238106Sdes	# The signature inception and expiration dates are allowed to be off
373238106Sdes	# by 10% of the signature lifetime (expir-incep) from our local clock.
374238106Sdes	# This leeway is capped with a minimum and a maximum.  In seconds.
375238106Sdes	# val-sig-skew-min: 3600
376238106Sdes	# val-sig-skew-max: 86400
377238106Sdes
378238106Sdes	# Should additional section of secure message also be kept clean of
379238106Sdes	# unsecure data. Useful to shield the users of this validator from
380238106Sdes	# potential bogus data in the additional section. All unsigned data 
381238106Sdes	# in the additional section is removed from secure messages.
382238106Sdes	# val-clean-additional: yes
383238106Sdes
384238106Sdes	# Turn permissive mode on to permit bogus messages. Thus, messages
385238106Sdes	# for which security checks failed will be returned to clients,
386238106Sdes	# instead of SERVFAIL. It still performs the security checks, which
387238106Sdes	# result in interesting log files and possibly the AD bit in
388238106Sdes	# replies if the message is found secure. The default is off.
389238106Sdes	# val-permissive-mode: no
390238106Sdes
391238106Sdes	# Ignore the CD flag in incoming queries and refuse them bogus data.
392238106Sdes	# Enable it if the only clients of unbound are legacy servers (w2008)
393238106Sdes	# that set CD but cannot validate themselves.
394238106Sdes	# ignore-cd-flag: no
395238106Sdes
396238106Sdes	# Have the validator log failed validations for your diagnosis.
397238106Sdes	# 0: off. 1: A line per failed user query. 2: With reason and bad IP.
398238106Sdes	# val-log-level: 0
399238106Sdes
400238106Sdes	# It is possible to configure NSEC3 maximum iteration counts per
401238106Sdes	# keysize. Keep this table very short, as linear search is done.
402238106Sdes	# A message with an NSEC3 with larger count is marked insecure.
403238106Sdes	# List in ascending order the keysize and count values.
404238106Sdes	# val-nsec3-keysize-iterations: "1024 150 2048 500 4096 2500"
405238106Sdes	
406238106Sdes	# instruct the auto-trust-anchor-file probing to add anchors after ttl.
407238106Sdes	# add-holddown: 2592000 # 30 days
408238106Sdes
409238106Sdes	# instruct the auto-trust-anchor-file probing to del anchors after ttl.
410238106Sdes	# del-holddown: 2592000 # 30 days
411238106Sdes
412238106Sdes	# auto-trust-anchor-file probing removes missing anchors after ttl.
413238106Sdes	# If the value 0 is given, missing anchors are not removed.
414238106Sdes	# keep-missing: 31622400 # 366 days
415238106Sdes
416238106Sdes	# the amount of memory to use for the key cache.
417238106Sdes	# plain value in bytes or you can append k, m or G. default is "4Mb". 
418238106Sdes	# key-cache-size: 4m
419238106Sdes
420238106Sdes	# the number of slabs to use for the key cache.
421238106Sdes	# the number of slabs must be a power of 2.
422238106Sdes	# more slabs reduce lock contention, but fragment memory usage.
423238106Sdes	# key-cache-slabs: 4
424238106Sdes
425238106Sdes	# the amount of memory to use for the negative cache (used for DLV).
426238106Sdes	# plain value in bytes or you can append k, m or G. default is "1Mb". 
427238106Sdes	# neg-cache-size: 1m
428238106Sdes
429238106Sdes	# a number of locally served zones can be configured.
430238106Sdes	# 	local-zone: <zone> <type>
431238106Sdes	# 	local-data: "<resource record string>"
432238106Sdes	# o deny serves local data (if any), else, drops queries. 
433238106Sdes	# o refuse serves local data (if any), else, replies with error.
434238106Sdes	# o static serves local data, else, nxdomain or nodata answer.
435238106Sdes	# o transparent gives local data, but resolves normally for other names
436238106Sdes	# o redirect serves the zone data for any subdomain in the zone.
437238106Sdes	# o nodefault can be used to normally resolve AS112 zones.
438238106Sdes	# o typetransparent resolves normally for other types and other names
439238106Sdes	#
440238106Sdes	# defaults are localhost address, reverse for 127.0.0.1 and ::1
441238106Sdes	# and nxdomain for AS112 zones. If you configure one of these zones
442238106Sdes	# the default content is omitted, or you can omit it with 'nodefault'.
443238106Sdes	# 
444238106Sdes	# If you configure local-data without specifying local-zone, by
445238106Sdes	# default a transparent local-zone is created for the data.
446238106Sdes	#
447238106Sdes	# You can add locally served data with
448238106Sdes	# local-zone: "local." static
449238106Sdes	# local-data: "mycomputer.local. IN A 192.0.2.51"
450238106Sdes	# local-data: 'mytext.local TXT "content of text record"'
451238106Sdes	#
452238106Sdes	# You can override certain queries with
453238106Sdes	# local-data: "adserver.example.com A 127.0.0.1"
454238106Sdes	#
455238106Sdes	# You can redirect a domain to a fixed address with
456238106Sdes	# (this makes example.com, www.example.com, etc, all go to 192.0.2.3)
457238106Sdes	# local-zone: "example.com" redirect
458238106Sdes	# local-data: "example.com A 192.0.2.3"
459238106Sdes	#
460238106Sdes	# Shorthand to make PTR records, "IPv4 name" or "IPv6 name".
461238106Sdes	# You can also add PTR records using local-data directly, but then
462238106Sdes	# you need to do the reverse notation yourself.
463238106Sdes	# local-data-ptr: "192.0.2.3 www.example.com"
464238106Sdes
465238106Sdes	# service clients over SSL (on the TCP sockets), with plain DNS inside
466238106Sdes	# the SSL stream.  Give the certificate to use and private key.
467238106Sdes	# default is "" (disabled).  requires restart to take effect.
468238106Sdes	# ssl-service-key: "path/to/privatekeyfile.key"
469238106Sdes	# ssl-service-pem: "path/to/publiccertfile.pem"
470238106Sdes	# ssl-port: 443
471238106Sdes
472238106Sdes	# request upstream over SSL (with plain DNS inside the SSL stream).
473238106Sdes	# Default is no.  Can be turned on and off with unbound-control.
474238106Sdes	# ssl-upstream: no
475238106Sdes
476238106Sdes# Python config section. To enable:
477238106Sdes# o use --with-pythonmodule to configure before compiling.
478238106Sdes# o list python in the module-config string (above) to enable.
479238106Sdes# o and give a python-script to run.
480238106Sdespython:
481238106Sdes	# Script file to load
482238106Sdes	# python-script: "@UNBOUND_SHARE_DIR@/ubmodule-tst.py"
483238106Sdes
484238106Sdes# Remote control config section. 
485238106Sdesremote-control:
486238106Sdes	# Enable remote control with unbound-control(8) here.
487238106Sdes	# set up the keys and certificates with unbound-control-setup.
488238106Sdes	# control-enable: no
489238106Sdes
490238106Sdes	# what interfaces are listened to for remote control.
491238106Sdes	# give 0.0.0.0 and ::0 to listen to all interfaces.
492238106Sdes	# control-interface: 127.0.0.1
493238106Sdes	# control-interface: ::1
494238106Sdes
495238106Sdes	# port number for remote control operations.
496238106Sdes	# control-port: 8953
497238106Sdes
498238106Sdes	# unbound server key file.
499238106Sdes	# server-key-file: "@UNBOUND_RUN_DIR@/unbound_server.key"
500238106Sdes
501238106Sdes	# unbound server certificate file.
502238106Sdes	# server-cert-file: "@UNBOUND_RUN_DIR@/unbound_server.pem"
503238106Sdes
504238106Sdes	# unbound-control key file.
505238106Sdes	# control-key-file: "@UNBOUND_RUN_DIR@/unbound_control.key"
506238106Sdes
507238106Sdes	# unbound-control certificate file.
508238106Sdes	# control-cert-file: "@UNBOUND_RUN_DIR@/unbound_control.pem"
509238106Sdes
510238106Sdes# Stub zones.
511238106Sdes# Create entries like below, to make all queries for 'example.com' and 
512238106Sdes# 'example.org' go to the given list of nameservers. list zero or more 
513238106Sdes# nameservers by hostname or by ipaddress. If you set stub-prime to yes, 
514238106Sdes# the list is treated as priming hints (default is no).
515238106Sdes# With stub-first yes, it attempts without the stub if it fails.
516238106Sdes# stub-zone:
517238106Sdes#	name: "example.com"
518238106Sdes#	stub-addr: 192.0.2.68
519238106Sdes#	stub-prime: no
520238106Sdes#	stub-first: no
521238106Sdes# stub-zone:
522238106Sdes#	name: "example.org"
523238106Sdes#	stub-host: ns.example.com.
524238106Sdes
525238106Sdes# Forward zones
526238106Sdes# Create entries like below, to make all queries for 'example.com' and
527238106Sdes# 'example.org' go to the given list of servers. These servers have to handle
528238106Sdes# recursion to other nameservers. List zero or more nameservers by hostname
529238106Sdes# or by ipaddress. Use an entry with name "." to forward all queries.
530238106Sdes# If you enable forward-first, it attempts without the forward if it fails.
531238106Sdes# forward-zone:
532238106Sdes# 	name: "example.com"
533238106Sdes# 	forward-addr: 192.0.2.68
534238106Sdes# 	forward-addr: 192.0.2.73@5355  # forward to port 5355.
535238106Sdes# 	forward-first: no
536238106Sdes# forward-zone:
537238106Sdes# 	name: "example.org"
538238106Sdes# 	forward-host: fwd.example.com
539