xref: /freebsd/contrib/unbound/doc/example.conf.in (revision b197d4b893974c9eb4d7b38704c6d5c486235d6f)
1#
2# Example configuration file.
3#
4# See unbound.conf(5) man page, version 1.16.2.
5#
6# this is a comment.
7
8# Use this anywhere in the file to include other text into this file.
9#include: "otherfile.conf"
10
11# Use this anywhere in the file to include other text, that explicitly starts a
12# clause, into this file. Text after this directive needs to start a clause.
13#include-toplevel: "otherfile.conf"
14
15# The server clause sets the main parameters.
16server:
17	# whitespace is not necessary, but looks cleaner.
18
19	# verbosity number, 0 is least verbose. 1 is default.
20	verbosity: 1
21
22	# print statistics to the log (for every thread) every N seconds.
23	# Set to "" or 0 to disable. Default is disabled.
24	# statistics-interval: 0
25
26	# enable shm for stats, default no.  if you enable also enable
27	# statistics-interval, every time it also writes stats to the
28	# shared memory segment keyed with shm-key.
29	# shm-enable: no
30
31	# shm for stats uses this key, and key+1 for the shared mem segment.
32	# shm-key: 11777
33
34	# enable cumulative statistics, without clearing them after printing.
35	# statistics-cumulative: no
36
37	# enable extended statistics (query types, answer codes, status)
38	# printed from unbound-control. default off, because of speed.
39	# extended-statistics: no
40
41	# number of threads to create. 1 disables threading.
42	# num-threads: 1
43
44	# specify the interfaces to answer queries from by ip-address.
45	# The default is to listen to localhost (127.0.0.1 and ::1).
46	# specify 0.0.0.0 and ::0 to bind to all available interfaces.
47	# specify every interface[@port] on a new 'interface:' labelled line.
48	# The listen interfaces are not changed on reload, only on restart.
49	# interface: 192.0.2.153
50	# interface: 192.0.2.154
51	# interface: 192.0.2.154@5003
52	# interface: 2001:DB8::5
53
54	# enable this feature to copy the source address of queries to reply.
55	# Socket options are not supported on all platforms. experimental.
56	# interface-automatic: no
57
58	# instead of the default port, open additional ports separated by
59	# spaces when interface-automatic is enabled, by listing them here.
60	# interface-automatic-ports: ""
61
62	# port to answer queries from
63	# port: 53
64
65	# specify the interfaces to send outgoing queries to authoritative
66	# server from by ip-address. If none, the default (all) interface
67	# is used. Specify every interface on a 'outgoing-interface:' line.
68	# outgoing-interface: 192.0.2.153
69	# outgoing-interface: 2001:DB8::5
70	# outgoing-interface: 2001:DB8::6
71
72	# Specify a netblock to use remainder 64 bits as random bits for
73	# upstream queries.  Uses freebind option (Linux).
74	# outgoing-interface: 2001:DB8::/64
75	# Also (Linux:) ip -6 addr add 2001:db8::/64 dev lo
76	# And: ip -6 route add local 2001:db8::/64 dev lo
77	# And set prefer-ip6: yes to use the ip6 randomness from a netblock.
78	# Set this to yes to prefer ipv6 upstream servers over ipv4.
79	# prefer-ip6: no
80
81	# Prefer ipv4 upstream servers, even if ipv6 is available.
82	# prefer-ip4: no
83
84	# number of ports to allocate per thread, determines the size of the
85	# port range that can be open simultaneously.  About double the
86	# num-queries-per-thread, or, use as many as the OS will allow you.
87	# outgoing-range: 4096
88
89	# permit Unbound to use this port number or port range for
90	# making outgoing queries, using an outgoing interface.
91	# outgoing-port-permit: 32768
92
93	# deny Unbound the use this of port number or port range for
94	# making outgoing queries, using an outgoing interface.
95	# Use this to make sure Unbound does not grab a UDP port that some
96	# other server on this computer needs. The default is to avoid
97	# IANA-assigned port numbers.
98	# If multiple outgoing-port-permit and outgoing-port-avoid options
99	# are present, they are processed in order.
100	# outgoing-port-avoid: "3200-3208"
101
102	# number of outgoing simultaneous tcp buffers to hold per thread.
103	# outgoing-num-tcp: 10
104
105	# number of incoming simultaneous tcp buffers to hold per thread.
106	# incoming-num-tcp: 10
107
108	# buffer size for UDP port 53 incoming (SO_RCVBUF socket option).
109	# 0 is system default.  Use 4m to catch query spikes for busy servers.
110	# so-rcvbuf: 0
111
112	# buffer size for UDP port 53 outgoing (SO_SNDBUF socket option).
113	# 0 is system default.  Use 4m to handle spikes on very busy servers.
114	# so-sndbuf: 0
115
116	# use SO_REUSEPORT to distribute queries over threads.
117	# at extreme load it could be better to turn it off to distribute even.
118	# so-reuseport: yes
119
120	# use IP_TRANSPARENT so the interface: addresses can be non-local
121	# and you can config non-existing IPs that are going to work later on
122	# (uses IP_BINDANY on FreeBSD).
123	# ip-transparent: no
124
125	# use IP_FREEBIND so the interface: addresses can be non-local
126	# and you can bind to nonexisting IPs and interfaces that are down.
127	# Linux only.  On Linux you also have ip-transparent that is similar.
128	# ip-freebind: no
129
130	# the value of the Differentiated Services Codepoint (DSCP)
131	# in the differentiated services field (DS) of the outgoing
132	# IP packets
133	# ip-dscp: 0
134
135	# EDNS reassembly buffer to advertise to UDP peers (the actual buffer
136	# is set with msg-buffer-size).
137	# edns-buffer-size: 1232
138
139	# Maximum UDP response size (not applied to TCP response).
140	# Suggested values are 512 to 4096. Default is 4096. 65536 disables it.
141	# max-udp-size: 4096
142
143	# max memory to use for stream(tcp and tls) waiting result buffers.
144	# stream-wait-size: 4m
145
146	# buffer size for handling DNS data. No messages larger than this
147	# size can be sent or received, by UDP or TCP. In bytes.
148	# msg-buffer-size: 65552
149
150	# the amount of memory to use for the message cache.
151	# plain value in bytes or you can append k, m or G. default is "4Mb".
152	# msg-cache-size: 4m
153
154	# the number of slabs to use for the message cache.
155	# the number of slabs must be a power of 2.
156	# more slabs reduce lock contention, but fragment memory usage.
157	# msg-cache-slabs: 4
158
159	# the number of queries that a thread gets to service.
160	# num-queries-per-thread: 1024
161
162	# if very busy, 50% queries run to completion, 50% get timeout in msec
163	# jostle-timeout: 200
164
165	# msec to wait before close of port on timeout UDP. 0 disables.
166	# delay-close: 0
167
168	# perform connect for UDP sockets to mitigate ICMP side channel.
169	# udp-connect: yes
170
171	# The number of retries, per upstream nameserver in a delegation, when
172	# a throwaway response (also timeouts) is received.
173	# outbound-msg-retry: 5
174
175	# msec for waiting for an unknown server to reply.  Increase if you
176	# are behind a slow satellite link, to eg. 1128.
177	# unknown-server-time-limit: 376
178
179	# the amount of memory to use for the RRset cache.
180	# plain value in bytes or you can append k, m or G. default is "4Mb".
181	# rrset-cache-size: 4m
182
183	# the number of slabs to use for the RRset cache.
184	# the number of slabs must be a power of 2.
185	# more slabs reduce lock contention, but fragment memory usage.
186	# rrset-cache-slabs: 4
187
188	# the time to live (TTL) value lower bound, in seconds. Default 0.
189	# If more than an hour could easily give trouble due to stale data.
190	# cache-min-ttl: 0
191
192	# the time to live (TTL) value cap for RRsets and messages in the
193	# cache. Items are not cached for longer. In seconds.
194	# cache-max-ttl: 86400
195
196	# the time to live (TTL) value cap for negative responses in the cache
197	# cache-max-negative-ttl: 3600
198
199	# the time to live (TTL) value for cached roundtrip times, lameness and
200	# EDNS version information for hosts. In seconds.
201	# infra-host-ttl: 900
202
203	# minimum wait time for responses, increase if uplink is long. In msec.
204	# infra-cache-min-rtt: 50
205
206	# maximum wait time for responses. In msec.
207	# infra-cache-max-rtt: 120000
208
209	# enable to make server probe down hosts more frequently.
210	# infra-keep-probing: no
211
212	# the number of slabs to use for the Infrastructure cache.
213	# the number of slabs must be a power of 2.
214	# more slabs reduce lock contention, but fragment memory usage.
215	# infra-cache-slabs: 4
216
217	# the maximum number of hosts that are cached (roundtrip, EDNS, lame).
218	# infra-cache-numhosts: 10000
219
220	# define a number of tags here, use with local-zone, access-control.
221	# repeat the define-tag statement to add additional tags.
222	# define-tag: "tag1 tag2 tag3"
223
224	# Enable IPv4, "yes" or "no".
225	# do-ip4: yes
226
227	# Enable IPv6, "yes" or "no".
228	# do-ip6: yes
229
230	# Enable UDP, "yes" or "no".
231	# do-udp: yes
232
233	# Enable TCP, "yes" or "no".
234	# do-tcp: yes
235
236	# upstream connections use TCP only (and no UDP), "yes" or "no"
237	# useful for tunneling scenarios, default no.
238	# tcp-upstream: no
239
240	# upstream connections also use UDP (even if do-udp is no).
241	# useful if if you want UDP upstream, but don't provide UDP downstream.
242	# udp-upstream-without-downstream: no
243
244	# Maximum segment size (MSS) of TCP socket on which the server
245	# responds to queries. Default is 0, system default MSS.
246	# tcp-mss: 0
247
248	# Maximum segment size (MSS) of TCP socket for outgoing queries.
249	# Default is 0, system default MSS.
250	# outgoing-tcp-mss: 0
251
252	# Idle TCP timeout, connection closed in milliseconds
253	# tcp-idle-timeout: 30000
254
255	# Enable EDNS TCP keepalive option.
256	# edns-tcp-keepalive: no
257
258	# Timeout for EDNS TCP keepalive, in msec.
259	# edns-tcp-keepalive-timeout: 120000
260
261	# Use systemd socket activation for UDP, TCP, and control sockets.
262	# use-systemd: no
263
264	# Detach from the terminal, run in background, "yes" or "no".
265	# Set the value to "no" when Unbound runs as systemd service.
266	# do-daemonize: yes
267
268	# control which clients are allowed to make (recursive) queries
269	# to this server. Specify classless netblocks with /size and action.
270	# By default everything is refused, except for localhost.
271	# Choose deny (drop message), refuse (polite error reply),
272	# allow (recursive ok), allow_setrd (recursive ok, rd bit is forced on),
273	# allow_snoop (recursive and nonrecursive ok)
274	# deny_non_local (drop queries unless can be answered from local-data)
275	# refuse_non_local (like deny_non_local but polite error reply).
276	# access-control: 0.0.0.0/0 refuse
277	# access-control: 127.0.0.0/8 allow
278	# access-control: ::0/0 refuse
279	# access-control: ::1 allow
280	# access-control: ::ffff:127.0.0.1 allow
281
282	# tag access-control with list of tags (in "" with spaces between)
283	# Clients using this access control element use localzones that
284	# are tagged with one of these tags.
285	# access-control-tag: 192.0.2.0/24 "tag2 tag3"
286
287	# set action for particular tag for given access control element
288	# if you have multiple tag values, the tag used to lookup the action
289	# is the first tag match between access-control-tag and local-zone-tag
290	# where "first" comes from the order of the define-tag values.
291	# access-control-tag-action: 192.0.2.0/24 tag3 refuse
292
293	# set redirect data for particular tag for access control element
294	# access-control-tag-data: 192.0.2.0/24 tag2 "A 127.0.0.1"
295
296	# Set view for access control element
297	# access-control-view: 192.0.2.0/24 viewname
298
299	# if given, a chroot(2) is done to the given directory.
300	# i.e. you can chroot to the working directory, for example,
301	# for extra security, but make sure all files are in that directory.
302	#
303	# If chroot is enabled, you should pass the configfile (from the
304	# commandline) as a full path from the original root. After the
305	# chroot has been performed the now defunct portion of the config
306	# file path is removed to be able to reread the config after a reload.
307	#
308	# All other file paths (working dir, logfile, roothints, and
309	# key files) can be specified in several ways:
310	# 	o as an absolute path relative to the new root.
311	# 	o as a relative path to the working directory.
312	# 	o as an absolute path relative to the original root.
313	# In the last case the path is adjusted to remove the unused portion.
314	#
315	# The pid file can be absolute and outside of the chroot, it is
316	# written just prior to performing the chroot and dropping permissions.
317	#
318	# Additionally, Unbound may need to access /dev/urandom (for entropy).
319	# How to do this is specific to your OS.
320	#
321	# If you give "" no chroot is performed. The path must not end in a /.
322	# chroot: "@UNBOUND_CHROOT_DIR@"
323
324	# if given, user privileges are dropped (after binding port),
325	# and the given username is assumed. Default is user "unbound".
326	# If you give "" no privileges are dropped.
327	# username: "@UNBOUND_USERNAME@"
328
329	# the working directory. The relative files in this config are
330	# relative to this directory. If you give "" the working directory
331	# is not changed.
332	# If you give a server: directory: dir before include: file statements
333	# then those includes can be relative to the working directory.
334	# directory: "@UNBOUND_RUN_DIR@"
335
336	# the log file, "" means log to stderr.
337	# Use of this option sets use-syslog to "no".
338	# logfile: ""
339
340	# Log to syslog(3) if yes. The log facility LOG_DAEMON is used to
341	# log to. If yes, it overrides the logfile.
342	# use-syslog: yes
343
344	# Log identity to report. if empty, defaults to the name of argv[0]
345	# (usually "unbound").
346	# log-identity: ""
347
348	# print UTC timestamp in ascii to logfile, default is epoch in seconds.
349	# log-time-ascii: no
350
351	# print one line with time, IP, name, type, class for every query.
352	# log-queries: no
353
354	# print one line per reply, with time, IP, name, type, class, rcode,
355	# timetoresolve, fromcache and responsesize.
356	# log-replies: no
357
358	# log with tag 'query' and 'reply' instead of 'info' for
359	# filtering log-queries and log-replies from the log.
360	# log-tag-queryreply: no
361
362	# log the local-zone actions, like local-zone type inform is enabled
363	# also for the other local zone types.
364	# log-local-actions: no
365
366	# print log lines that say why queries return SERVFAIL to clients.
367	# log-servfail: no
368
369	# the pid file. Can be an absolute path outside of chroot/work dir.
370	# pidfile: "@UNBOUND_PIDFILE@"
371
372	# file to read root hints from.
373	# get one from https://www.internic.net/domain/named.cache
374	# root-hints: ""
375
376	# enable to not answer id.server and hostname.bind queries.
377	# hide-identity: no
378
379	# enable to not answer version.server and version.bind queries.
380	# hide-version: no
381
382	# enable to not answer trustanchor.unbound queries.
383	# hide-trustanchor: no
384
385	# enable to not set the User-Agent HTTP header.
386	# hide-http-user-agent: no
387
388	# the identity to report. Leave "" or default to return hostname.
389	# identity: ""
390
391	# the version to report. Leave "" or default to return package version.
392	# version: ""
393
394	# NSID identity (hex string, or "ascii_somestring"). default disabled.
395	# nsid: "aabbccdd"
396
397	# User-Agent HTTP header to use. Leave "" or default to use package name
398	# and version.
399	# http-user-agent: ""
400
401	# the target fetch policy.
402	# series of integers describing the policy per dependency depth.
403	# The number of values in the list determines the maximum dependency
404	# depth the recursor will pursue before giving up. Each integer means:
405	# 	-1 : fetch all targets opportunistically,
406	# 	0: fetch on demand,
407	#	positive value: fetch that many targets opportunistically.
408	# Enclose the list of numbers between quotes ("").
409	# target-fetch-policy: "3 2 1 0 0"
410
411	# Harden against very small EDNS buffer sizes.
412	# harden-short-bufsize: yes
413
414	# Harden against unseemly large queries.
415	# harden-large-queries: no
416
417	# Harden against out of zone rrsets, to avoid spoofing attempts.
418	# harden-glue: yes
419
420	# Harden against receiving dnssec-stripped data. If you turn it
421	# off, failing to validate dnskey data for a trustanchor will
422	# trigger insecure mode for that zone (like without a trustanchor).
423	# Default on, which insists on dnssec data for trust-anchored zones.
424	# harden-dnssec-stripped: yes
425
426	# Harden against queries that fall under dnssec-signed nxdomain names.
427	# harden-below-nxdomain: yes
428
429	# Harden the referral path by performing additional queries for
430	# infrastructure data.  Validates the replies (if possible).
431	# Default off, because the lookups burden the server.  Experimental
432	# implementation of draft-wijngaards-dnsext-resolver-side-mitigation.
433	# harden-referral-path: no
434
435	# Harden against algorithm downgrade when multiple algorithms are
436	# advertised in the DS record.  If no, allows the weakest algorithm
437	# to validate the zone.
438	# harden-algo-downgrade: no
439
440	# Sent minimum amount of information to upstream servers to enhance
441	# privacy. Only sent minimum required labels of the QNAME and set QTYPE
442	# to A when possible.
443	# qname-minimisation: yes
444
445	# QNAME minimisation in strict mode. Do not fall-back to sending full
446	# QNAME to potentially broken nameservers. A lot of domains will not be
447	# resolvable when this option in enabled.
448	# This option only has effect when qname-minimisation is enabled.
449	# qname-minimisation-strict: no
450
451	# Aggressive NSEC uses the DNSSEC NSEC chain to synthesize NXDOMAIN
452	# and other denials, using information from previous NXDOMAINs answers.
453	# aggressive-nsec: yes
454
455	# Use 0x20-encoded random bits in the query to foil spoof attempts.
456	# This feature is an experimental implementation of draft dns-0x20.
457	# use-caps-for-id: no
458
459	# Domains (and domains in them) without support for dns-0x20 and
460	# the fallback fails because they keep sending different answers.
461	# caps-exempt: "licdn.com"
462	# caps-exempt: "senderbase.org"
463
464	# Enforce privacy of these addresses. Strips them away from answers.
465	# It may cause DNSSEC validation to additionally mark it as bogus.
466	# Protects against 'DNS Rebinding' (uses browser as network proxy).
467	# Only 'private-domain' and 'local-data' names are allowed to have
468	# these private addresses. No default.
469	# private-address: 10.0.0.0/8
470	# private-address: 172.16.0.0/12
471	# private-address: 192.168.0.0/16
472	# private-address: 169.254.0.0/16
473	# private-address: fd00::/8
474	# private-address: fe80::/10
475	# private-address: ::ffff:0:0/96
476
477	# Allow the domain (and its subdomains) to contain private addresses.
478	# local-data statements are allowed to contain private addresses too.
479	# private-domain: "example.com"
480
481	# If nonzero, unwanted replies are not only reported in statistics,
482	# but also a running total is kept per thread. If it reaches the
483	# threshold, a warning is printed and a defensive action is taken,
484	# the cache is cleared to flush potential poison out of it.
485	# A suggested value is 10000000, the default is 0 (turned off).
486	# unwanted-reply-threshold: 0
487
488	# Do not query the following addresses. No DNS queries are sent there.
489	# List one address per entry. List classless netblocks with /size,
490	# do-not-query-address: 127.0.0.1/8
491	# do-not-query-address: ::1
492
493	# if yes, the above default do-not-query-address entries are present.
494	# if no, localhost can be queried (for testing and debugging).
495	# do-not-query-localhost: yes
496
497	# if yes, perform prefetching of almost expired message cache entries.
498	# prefetch: no
499
500	# if yes, perform key lookups adjacent to normal lookups.
501	# prefetch-key: no
502
503	# deny queries of type ANY with an empty response.
504	# deny-any: no
505
506	# if yes, Unbound rotates RRSet order in response.
507	# rrset-roundrobin: yes
508
509	# if yes, Unbound doesn't insert authority/additional sections
510	# into response messages when those sections are not required.
511	# minimal-responses: yes
512
513	# true to disable DNSSEC lameness check in iterator.
514	# disable-dnssec-lame-check: no
515
516	# module configuration of the server. A string with identifiers
517	# separated by spaces. Syntax: "[dns64] [validator] iterator"
518	# most modules have to be listed at the beginning of the line,
519	# except cachedb(just before iterator), and python (at the beginning,
520	# or, just before the iterator).
521	# module-config: "validator iterator"
522
523	# File with trusted keys, kept uptodate using RFC5011 probes,
524	# initial file like trust-anchor-file, then it stores metadata.
525	# Use several entries, one per domain name, to track multiple zones.
526	#
527	# If you want to perform DNSSEC validation, run unbound-anchor before
528	# you start Unbound (i.e. in the system boot scripts).
529	# And then enable the auto-trust-anchor-file config item.
530	# Please note usage of unbound-anchor root anchor is at your own risk
531	# and under the terms of our LICENSE (see that file in the source).
532	# auto-trust-anchor-file: "@UNBOUND_ROOTKEY_FILE@"
533
534	# trust anchor signaling sends a RFC8145 key tag query after priming.
535	# trust-anchor-signaling: yes
536
537	# Root key trust anchor sentinel (draft-ietf-dnsop-kskroll-sentinel)
538	# root-key-sentinel: yes
539
540	# File with trusted keys for validation. Specify more than one file
541	# with several entries, one file per entry.
542	# Zone file format, with DS and DNSKEY entries.
543	# Note this gets out of date, use auto-trust-anchor-file please.
544	# trust-anchor-file: ""
545
546	# Trusted key for validation. DS or DNSKEY. specify the RR on a
547	# single line, surrounded by "". TTL is ignored. class is IN default.
548	# Note this gets out of date, use auto-trust-anchor-file please.
549	# (These examples are from August 2007 and may not be valid anymore).
550	# trust-anchor: "nlnetlabs.nl. DNSKEY 257 3 5 AQPzzTWMz8qSWIQlfRnPckx2BiVmkVN6LPupO3mbz7FhLSnm26n6iG9N Lby97Ji453aWZY3M5/xJBSOS2vWtco2t8C0+xeO1bc/d6ZTy32DHchpW 6rDH1vp86Ll+ha0tmwyy9QP7y2bVw5zSbFCrefk8qCUBgfHm9bHzMG1U BYtEIQ=="
551	# trust-anchor: "jelte.nlnetlabs.nl. DS 42860 5 1 14D739EB566D2B1A5E216A0BA4D17FA9B038BE4A"
552
553	# File with trusted keys for validation. Specify more than one file
554	# with several entries, one file per entry. Like trust-anchor-file
555	# but has a different file format. Format is BIND-9 style format,
556	# the trusted-keys { name flag proto algo "key"; }; clauses are read.
557	# you need external update procedures to track changes in keys.
558	# trusted-keys-file: ""
559
560	# Ignore chain of trust. Domain is treated as insecure.
561	# domain-insecure: "example.com"
562
563	# Override the date for validation with a specific fixed date.
564	# Do not set this unless you are debugging signature inception
565	# and expiration. "" or "0" turns the feature off. -1 ignores date.
566	# val-override-date: ""
567
568	# The time to live for bogus data, rrsets and messages. This avoids
569	# some of the revalidation, until the time interval expires. in secs.
570	# val-bogus-ttl: 60
571
572	# The signature inception and expiration dates are allowed to be off
573	# by 10% of the signature lifetime (expir-incep) from our local clock.
574	# This leeway is capped with a minimum and a maximum.  In seconds.
575	# val-sig-skew-min: 3600
576	# val-sig-skew-max: 86400
577
578	# The maximum number the validator should restart validation with
579	# another authority in case of failed validation.
580	# val-max-restart: 5
581
582	# Should additional section of secure message also be kept clean of
583	# unsecure data. Useful to shield the users of this validator from
584	# potential bogus data in the additional section. All unsigned data
585	# in the additional section is removed from secure messages.
586	# val-clean-additional: yes
587
588	# Turn permissive mode on to permit bogus messages. Thus, messages
589	# for which security checks failed will be returned to clients,
590	# instead of SERVFAIL. It still performs the security checks, which
591	# result in interesting log files and possibly the AD bit in
592	# replies if the message is found secure. The default is off.
593	# val-permissive-mode: no
594
595	# Ignore the CD flag in incoming queries and refuse them bogus data.
596	# Enable it if the only clients of Unbound are legacy servers (w2008)
597	# that set CD but cannot validate themselves.
598	# ignore-cd-flag: no
599
600	# Serve expired responses from cache, with serve-expired-reply-ttl in
601	# the response, and then attempt to fetch the data afresh.
602	# serve-expired: no
603	#
604	# Limit serving of expired responses to configured seconds after
605	# expiration. 0 disables the limit.
606	# serve-expired-ttl: 0
607	#
608	# Set the TTL of expired records to the serve-expired-ttl value after a
609	# failed attempt to retrieve the record from upstream. This makes sure
610	# that the expired records will be served as long as there are queries
611	# for it.
612	# serve-expired-ttl-reset: no
613	#
614	# TTL value to use when replying with expired data.
615	# serve-expired-reply-ttl: 30
616	#
617	# Time in milliseconds before replying to the client with expired data.
618	# This essentially enables the serve-stale behavior as specified in
619	# RFC 8767 that first tries to resolve before
620	# immediately responding with expired data.  0 disables this behavior.
621	# A recommended value is 1800.
622	# serve-expired-client-timeout: 0
623
624	# Return the original TTL as received from the upstream name server rather
625	# than the decrementing TTL as stored in the cache.  Enabling this feature
626	# does not impact cache expiry, it only changes the TTL Unbound embeds in
627	# responses to queries. Note that enabling this feature implicitly disables
628	# enforcement of the configured minimum and maximum TTL.
629	# serve-original-ttl: no
630
631	# Have the validator log failed validations for your diagnosis.
632	# 0: off. 1: A line per failed user query. 2: With reason and bad IP.
633	# val-log-level: 0
634
635	# It is possible to configure NSEC3 maximum iteration counts per
636	# keysize. Keep this table very short, as linear search is done.
637	# A message with an NSEC3 with larger count is marked insecure.
638	# List in ascending order the keysize and count values.
639	# val-nsec3-keysize-iterations: "1024 150 2048 150 4096 150"
640
641	# if enabled, ZONEMD verification failures do not block the zone.
642	# zonemd-permissive-mode: no
643
644	# instruct the auto-trust-anchor-file probing to add anchors after ttl.
645	# add-holddown: 2592000 # 30 days
646
647	# instruct the auto-trust-anchor-file probing to del anchors after ttl.
648	# del-holddown: 2592000 # 30 days
649
650	# auto-trust-anchor-file probing removes missing anchors after ttl.
651	# If the value 0 is given, missing anchors are not removed.
652	# keep-missing: 31622400 # 366 days
653
654	# debug option that allows very small holddown times for key rollover,
655	# otherwise the RFC mandates probe intervals must be at least 1 hour.
656	# permit-small-holddown: no
657
658	# the amount of memory to use for the key cache.
659	# plain value in bytes or you can append k, m or G. default is "4Mb".
660	# key-cache-size: 4m
661
662	# the number of slabs to use for the key cache.
663	# the number of slabs must be a power of 2.
664	# more slabs reduce lock contention, but fragment memory usage.
665	# key-cache-slabs: 4
666
667	# the amount of memory to use for the negative cache.
668	# plain value in bytes or you can append k, m or G. default is "1Mb".
669	# neg-cache-size: 1m
670
671	# By default, for a number of zones a small default 'nothing here'
672	# reply is built-in.  Query traffic is thus blocked.  If you
673	# wish to serve such zone you can unblock them by uncommenting one
674	# of the nodefault statements below.
675	# You may also have to use domain-insecure: zone to make DNSSEC work,
676	# unless you have your own trust anchors for this zone.
677	# local-zone: "localhost." nodefault
678	# local-zone: "127.in-addr.arpa." nodefault
679	# 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
680	# local-zone: "home.arpa." nodefault
681	# local-zone: "onion." nodefault
682	# local-zone: "test." nodefault
683	# local-zone: "invalid." nodefault
684	# local-zone: "10.in-addr.arpa." nodefault
685	# local-zone: "16.172.in-addr.arpa." nodefault
686	# local-zone: "17.172.in-addr.arpa." nodefault
687	# local-zone: "18.172.in-addr.arpa." nodefault
688	# local-zone: "19.172.in-addr.arpa." nodefault
689	# local-zone: "20.172.in-addr.arpa." nodefault
690	# local-zone: "21.172.in-addr.arpa." nodefault
691	# local-zone: "22.172.in-addr.arpa." nodefault
692	# local-zone: "23.172.in-addr.arpa." nodefault
693	# local-zone: "24.172.in-addr.arpa." nodefault
694	# local-zone: "25.172.in-addr.arpa." nodefault
695	# local-zone: "26.172.in-addr.arpa." nodefault
696	# local-zone: "27.172.in-addr.arpa." nodefault
697	# local-zone: "28.172.in-addr.arpa." nodefault
698	# local-zone: "29.172.in-addr.arpa." nodefault
699	# local-zone: "30.172.in-addr.arpa." nodefault
700	# local-zone: "31.172.in-addr.arpa." nodefault
701	# local-zone: "168.192.in-addr.arpa." nodefault
702	# local-zone: "0.in-addr.arpa." nodefault
703	# local-zone: "254.169.in-addr.arpa." nodefault
704	# local-zone: "2.0.192.in-addr.arpa." nodefault
705	# local-zone: "100.51.198.in-addr.arpa." nodefault
706	# local-zone: "113.0.203.in-addr.arpa." nodefault
707	# local-zone: "255.255.255.255.in-addr.arpa." nodefault
708	# 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
709	# local-zone: "d.f.ip6.arpa." nodefault
710	# local-zone: "8.e.f.ip6.arpa." nodefault
711	# local-zone: "9.e.f.ip6.arpa." nodefault
712	# local-zone: "a.e.f.ip6.arpa." nodefault
713	# local-zone: "b.e.f.ip6.arpa." nodefault
714	# local-zone: "8.b.d.0.1.0.0.2.ip6.arpa." nodefault
715	# And for 64.100.in-addr.arpa. to 127.100.in-addr.arpa.
716
717	# Add example.com into ipset
718	# local-zone: "example.com" ipset
719
720	# If Unbound is running service for the local host then it is useful
721	# to perform lan-wide lookups to the upstream, and unblock the
722	# long list of local-zones above.  If this Unbound is a dns server
723	# for a network of computers, disabled is better and stops information
724	# leakage of local lan information.
725	# unblock-lan-zones: no
726
727	# The insecure-lan-zones option disables validation for
728	# these zones, as if they were all listed as domain-insecure.
729	# insecure-lan-zones: no
730
731	# a number of locally served zones can be configured.
732	# 	local-zone: <zone> <type>
733	# 	local-data: "<resource record string>"
734	# o deny serves local data (if any), else, drops queries.
735	# o refuse serves local data (if any), else, replies with error.
736	# o static serves local data, else, nxdomain or nodata answer.
737	# o transparent gives local data, but resolves normally for other names
738	# o redirect serves the zone data for any subdomain in the zone.
739	# o nodefault can be used to normally resolve AS112 zones.
740	# o typetransparent resolves normally for other types and other names
741	# o inform acts like transparent, but logs client IP address
742	# o inform_deny drops queries and logs client IP address
743	# o inform_redirect redirects queries and logs client IP address
744	# o always_transparent, always_refuse, always_nxdomain, always_nodata,
745	#   always_deny resolve in that way but ignore local data for
746	#   that name
747	# o always_null returns 0.0.0.0 or ::0 for any name in the zone.
748	# o noview breaks out of that view towards global local-zones.
749	#
750	# defaults are localhost address, reverse for 127.0.0.1 and ::1
751	# and nxdomain for AS112 zones. If you configure one of these zones
752	# the default content is omitted, or you can omit it with 'nodefault'.
753	#
754	# If you configure local-data without specifying local-zone, by
755	# default a transparent local-zone is created for the data.
756	#
757	# You can add locally served data with
758	# local-zone: "local." static
759	# local-data: "mycomputer.local. IN A 192.0.2.51"
760	# local-data: 'mytext.local TXT "content of text record"'
761	#
762	# You can override certain queries with
763	# local-data: "adserver.example.com A 127.0.0.1"
764	#
765	# You can redirect a domain to a fixed address with
766	# (this makes example.com, www.example.com, etc, all go to 192.0.2.3)
767	# local-zone: "example.com" redirect
768	# local-data: "example.com A 192.0.2.3"
769	#
770	# Shorthand to make PTR records, "IPv4 name" or "IPv6 name".
771	# You can also add PTR records using local-data directly, but then
772	# you need to do the reverse notation yourself.
773	# local-data-ptr: "192.0.2.3 www.example.com"
774
775	# tag a localzone with a list of tag names (in "" with spaces between)
776	# local-zone-tag: "example.com" "tag2 tag3"
777
778	# add a netblock specific override to a localzone, with zone type
779	# local-zone-override: "example.com" 192.0.2.0/24 refuse
780
781	# service clients over TLS (on the TCP sockets) with plain DNS inside
782	# the TLS stream, and over HTTPS using HTTP/2 as specified in RFC8484.
783	# Give the certificate to use and private key.
784	# default is "" (disabled).  requires restart to take effect.
785	# tls-service-key: "path/to/privatekeyfile.key"
786	# tls-service-pem: "path/to/publiccertfile.pem"
787	# tls-port: 853
788	# https-port: 443
789
790	# cipher setting for TLSv1.2
791	# tls-ciphers: "DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256"
792	# cipher setting for TLSv1.3
793	# tls-ciphersuites: "TLS_AES_128_GCM_SHA256:TLS_AES_128_CCM_8_SHA256:TLS_AES_128_CCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256"
794
795	# Pad responses to padded queries received over TLS
796	# pad-responses: yes
797
798	# Padded responses will be padded to the closest multiple of this size.
799	# pad-responses-block-size: 468
800
801	# Use the SNI extension for TLS connections.  Default is yes.
802	# Changing the value requires a reload.
803	# tls-use-sni: yes
804
805	# Add the secret file for TLS Session Ticket.
806	# Secret file must be 80 bytes of random data.
807	# First key use to encrypt and decrypt TLS session tickets.
808	# Other keys use to decrypt only.
809	# requires restart to take effect.
810	# tls-session-ticket-keys: "path/to/secret_file1"
811	# tls-session-ticket-keys: "path/to/secret_file2"
812
813	# request upstream over TLS (with plain DNS inside the TLS stream).
814	# Default is no.  Can be turned on and off with unbound-control.
815	# tls-upstream: no
816
817	# Certificates used to authenticate connections made upstream.
818	# tls-cert-bundle: ""
819
820	# Add system certs to the cert bundle, from the Windows Cert Store
821	# tls-win-cert: no
822	# and on other systems, the default openssl certificates
823	# tls-system-cert: no
824
825	# Pad queries over TLS upstreams
826	# pad-queries: yes
827
828	# Padded queries will be padded to the closest multiple of this size.
829	# pad-queries-block-size: 128
830
831	# Also serve tls on these port numbers (eg. 443, ...), by listing
832	# tls-additional-port: portno for each of the port numbers.
833
834	# HTTP endpoint to provide DNS-over-HTTPS service on.
835	# http-endpoint: "/dns-query"
836
837	# HTTP/2 SETTINGS_MAX_CONCURRENT_STREAMS value to use.
838	# http-max-streams: 100
839
840	# Maximum number of bytes used for all HTTP/2 query buffers.
841	# http-query-buffer-size: 4m
842
843	# Maximum number of bytes used for all HTTP/2 response buffers.
844	# http-response-buffer-size: 4m
845
846	# Set TCP_NODELAY socket option on sockets used for DNS-over-HTTPS
847	# service.
848	# http-nodelay: yes
849
850	# Disable TLS for DNS-over-HTTP downstream service.
851	# http-notls-downstream: no
852
853	# DNS64 prefix. Must be specified when DNS64 is use.
854	# Enable dns64 in module-config.  Used to synthesize IPv6 from IPv4.
855	# dns64-prefix: 64:ff9b::0/96
856
857	# DNS64 ignore AAAA records for these domains and use A instead.
858	# dns64-ignore-aaaa: "example.com"
859
860	# ratelimit for uncached, new queries, this limits recursion effort.
861	# ratelimiting is experimental, and may help against randomqueryflood.
862	# if 0(default) it is disabled, otherwise state qps allowed per zone.
863	# ratelimit: 0
864
865	# ratelimits are tracked in a cache, size in bytes of cache (or k,m).
866	# ratelimit-size: 4m
867	# ratelimit cache slabs, reduces lock contention if equal to cpucount.
868	# ratelimit-slabs: 4
869
870	# 0 blocks when ratelimited, otherwise let 1/xth traffic through
871	# ratelimit-factor: 10
872
873	# Aggressive rate limit when the limit is reached and until demand has
874	# decreased in a 2 second rate window.
875	# ratelimit-backoff: no
876
877	# override the ratelimit for a specific domain name.
878	# give this setting multiple times to have multiple overrides.
879	# ratelimit-for-domain: example.com 1000
880	# override the ratelimits for all domains below a domain name
881	# can give this multiple times, the name closest to the zone is used.
882	# ratelimit-below-domain: com 1000
883
884	# global query ratelimit for all ip addresses.
885	# feature is experimental.
886	# if 0(default) it is disabled, otherwise states qps allowed per ip address
887	# ip-ratelimit: 0
888
889	# ip ratelimits are tracked in a cache, size in bytes of cache (or k,m).
890	# ip-ratelimit-size: 4m
891	# ip ratelimit cache slabs, reduces lock contention if equal to cpucount.
892	# ip-ratelimit-slabs: 4
893
894	# 0 blocks when ip is ratelimited, otherwise let 1/xth traffic through
895	# ip-ratelimit-factor: 10
896
897	# Aggressive rate limit when the limit is reached and until demand has
898	# decreased in a 2 second rate window.
899	# ip-ratelimit-backoff: no
900
901	# Limit the number of connections simultaneous from a netblock
902	# tcp-connection-limit: 192.0.2.0/24 12
903
904	# select from the fastest servers this many times out of 1000. 0 means
905	# the fast server select is disabled. prefetches are not sped up.
906	# fast-server-permil: 0
907	# the number of servers that will be used in the fast server selection.
908	# fast-server-num: 3
909
910	# Enable to attach Extended DNS Error codes (RFC8914) to responses.
911	# ede: no
912
913	# Enable to attach an Extended DNS Error (RFC8914) Code 3 - Stale
914	# Answer as EDNS0 option to expired responses.
915	# Note that the ede option above needs to be enabled for this to work.
916	# ede-serve-expired: no
917
918	# Specific options for ipsecmod. Unbound needs to be configured with
919	# --enable-ipsecmod for these to take effect.
920	#
921	# Enable or disable ipsecmod (it still needs to be defined in
922	# module-config above). Can be used when ipsecmod needs to be
923	# enabled/disabled via remote-control(below).
924	# ipsecmod-enabled: yes
925	#
926	# Path to executable external hook. It must be defined when ipsecmod is
927	# listed in module-config (above).
928	# ipsecmod-hook: "./my_executable"
929	#
930	# When enabled Unbound will reply with SERVFAIL if the return value of
931	# the ipsecmod-hook is not 0.
932	# ipsecmod-strict: no
933	#
934	# Maximum time to live (TTL) for cached A/AAAA records with IPSECKEY.
935	# ipsecmod-max-ttl: 3600
936	#
937	# Reply with A/AAAA even if the relevant IPSECKEY is bogus. Mainly used for
938	# testing.
939	# ipsecmod-ignore-bogus: no
940	#
941	# Domains for which ipsecmod will be triggered. If not defined (default)
942	# all domains are treated as being allowed.
943	# ipsecmod-allow: "example.com"
944	# ipsecmod-allow: "nlnetlabs.nl"
945
946	# Timeout for REUSE entries in milliseconds.
947	# tcp-reuse-timeout: 60000
948	# Max number of queries on a reuse connection.
949	# max-reuse-tcp-queries: 200
950	# Timeout in milliseconds for TCP queries to auth servers.
951	# tcp-auth-query-timeout: 3000
952
953
954# Python config section. To enable:
955# o use --with-pythonmodule to configure before compiling.
956# o list python in the module-config string (above) to enable.
957#   It can be at the start, it gets validated results, or just before
958#   the iterator and process before DNSSEC validation.
959# o and give a python-script to run.
960python:
961	# Script file to load
962	# python-script: "@UNBOUND_SHARE_DIR@/ubmodule-tst.py"
963
964# Dynamic library config section. To enable:
965# o use --with-dynlibmodule to configure before compiling.
966# o list dynlib in the module-config string (above) to enable.
967#   It can be placed anywhere, the dynlib module is only a very thin wrapper
968#   to load modules dynamically.
969# o and give a dynlib-file to run. If more than one dynlib entry is listed in
970#   the module-config then you need one dynlib-file per instance.
971dynlib:
972	# Script file to load
973	# dynlib-file: "@UNBOUND_SHARE_DIR@/dynlib.so"
974
975# Remote control config section.
976remote-control:
977	# Enable remote control with unbound-control(8) here.
978	# set up the keys and certificates with unbound-control-setup.
979	# control-enable: no
980
981	# what interfaces are listened to for remote control.
982	# give 0.0.0.0 and ::0 to listen to all interfaces.
983	# set to an absolute path to use a unix local name pipe, certificates
984	# are not used for that, so key and cert files need not be present.
985	# control-interface: 127.0.0.1
986	# control-interface: ::1
987
988	# port number for remote control operations.
989	# control-port: 8953
990
991	# for localhost, you can disable use of TLS by setting this to "no"
992	# For local sockets this option is ignored, and TLS is not used.
993	# control-use-cert: "yes"
994
995	# Unbound server key file.
996	# server-key-file: "@UNBOUND_RUN_DIR@/unbound_server.key"
997
998	# Unbound server certificate file.
999	# server-cert-file: "@UNBOUND_RUN_DIR@/unbound_server.pem"
1000
1001	# unbound-control key file.
1002	# control-key-file: "@UNBOUND_RUN_DIR@/unbound_control.key"
1003
1004	# unbound-control certificate file.
1005	# control-cert-file: "@UNBOUND_RUN_DIR@/unbound_control.pem"
1006
1007# Stub zones.
1008# Create entries like below, to make all queries for 'example.com' and
1009# 'example.org' go to the given list of nameservers. list zero or more
1010# nameservers by hostname or by ipaddress. If you set stub-prime to yes,
1011# the list is treated as priming hints (default is no).
1012# With stub-first yes, it attempts without the stub if it fails.
1013# Consider adding domain-insecure: name and local-zone: name nodefault
1014# to the server: section if the stub is a locally served zone.
1015# stub-zone:
1016#	name: "example.com"
1017#	stub-addr: 192.0.2.68
1018#	stub-prime: no
1019#	stub-first: no
1020#	stub-tcp-upstream: no
1021#	stub-tls-upstream: no
1022#	stub-no-cache: no
1023# stub-zone:
1024#	name: "example.org"
1025#	stub-host: ns.example.com.
1026
1027# Forward zones
1028# Create entries like below, to make all queries for 'example.com' and
1029# 'example.org' go to the given list of servers. These servers have to handle
1030# recursion to other nameservers. List zero or more nameservers by hostname
1031# or by ipaddress. Use an entry with name "." to forward all queries.
1032# If you enable forward-first, it attempts without the forward if it fails.
1033# forward-zone:
1034# 	name: "example.com"
1035# 	forward-addr: 192.0.2.68
1036# 	forward-addr: 192.0.2.73@5355  # forward to port 5355.
1037# 	forward-first: no
1038# 	forward-tcp-upstream: no
1039# 	forward-tls-upstream: no
1040#	forward-no-cache: no
1041# forward-zone:
1042# 	name: "example.org"
1043# 	forward-host: fwd.example.com
1044
1045# Authority zones
1046# The data for these zones is kept locally, from a file or downloaded.
1047# The data can be served to downstream clients, or used instead of the
1048# upstream (which saves a lookup to the upstream).  The first example
1049# has a copy of the root for local usage.  The second serves example.org
1050# authoritatively.  zonefile: reads from file (and writes to it if you also
1051# download it), primary: fetches with AXFR and IXFR, or url to zonefile.
1052# With allow-notify: you can give additional (apart from primaries and urls)
1053# sources of notifies.
1054# auth-zone:
1055#	name: "."
1056#	primary: 199.9.14.201         # b.root-servers.net
1057#	primary: 192.33.4.12          # c.root-servers.net
1058#	primary: 199.7.91.13          # d.root-servers.net
1059#	primary: 192.5.5.241          # f.root-servers.net
1060#	primary: 192.112.36.4         # g.root-servers.net
1061#	primary: 193.0.14.129         # k.root-servers.net
1062#	primary: 192.0.47.132         # xfr.cjr.dns.icann.org
1063#	primary: 192.0.32.132         # xfr.lax.dns.icann.org
1064#	primary: 2001:500:200::b      # b.root-servers.net
1065#	primary: 2001:500:2::c        # c.root-servers.net
1066#	primary: 2001:500:2d::d       # d.root-servers.net
1067#	primary: 2001:500:2f::f       # f.root-servers.net
1068#	primary: 2001:500:12::d0d     # g.root-servers.net
1069#	primary: 2001:7fd::1          # k.root-servers.net
1070#	primary: 2620:0:2830:202::132 # xfr.cjr.dns.icann.org
1071#	primary: 2620:0:2d0:202::132  # xfr.lax.dns.icann.org
1072#	fallback-enabled: yes
1073#	for-downstream: no
1074#	for-upstream: yes
1075# auth-zone:
1076#	name: "example.org"
1077#	for-downstream: yes
1078#	for-upstream: yes
1079#	zonemd-check: no
1080#	zonemd-reject-absence: no
1081#	zonefile: "example.org.zone"
1082
1083# Views
1084# Create named views. Name must be unique. Map views to requests using
1085# the access-control-view option. Views can contain zero or more local-zone
1086# and local-data options. Options from matching views will override global
1087# options. Global options will be used if no matching view is found.
1088# With view-first yes, it will try to answer using the global local-zone and
1089# local-data elements if there is no view specific match.
1090# view:
1091#	name: "viewname"
1092#	local-zone: "example.com" redirect
1093#	local-data: "example.com A 192.0.2.3"
1094#	local-data-ptr: "192.0.2.3 www.example.com"
1095#	view-first: no
1096# view:
1097#	name: "anotherview"
1098#	local-zone: "example.com" refuse
1099
1100# DNSCrypt
1101# To enable, use --enable-dnscrypt to configure before compiling.
1102# Caveats:
1103# 1. the keys/certs cannot be produced by Unbound. You can use dnscrypt-wrapper
1104#   for this: https://github.com/cofyc/dnscrypt-wrapper/blob/master/README.md#usage
1105# 2. dnscrypt channel attaches to an interface. you MUST set interfaces to
1106#   listen on `dnscrypt-port` with the follo0wing snippet:
1107# server:
1108#     interface: 0.0.0.0@443
1109#     interface: ::0@443
1110#
1111# Finally, `dnscrypt` config has its own section.
1112# dnscrypt:
1113#     dnscrypt-enable: yes
1114#     dnscrypt-port: 443
1115#     dnscrypt-provider: 2.dnscrypt-cert.example.com.
1116#     dnscrypt-secret-key: /path/unbound-conf/keys1/1.key
1117#     dnscrypt-secret-key: /path/unbound-conf/keys2/1.key
1118#     dnscrypt-provider-cert: /path/unbound-conf/keys1/1.cert
1119#     dnscrypt-provider-cert: /path/unbound-conf/keys2/1.cert
1120
1121# CacheDB
1122# External backend DB as auxiliary cache.
1123# To enable, use --enable-cachedb to configure before compiling.
1124# Specify the backend name
1125# (default is "testframe", which has no use other than for debugging and
1126# testing) and backend-specific options.  The 'cachedb' module must be
1127# included in module-config, just before the iterator module.
1128# cachedb:
1129#     backend: "testframe"
1130#     # secret seed string to calculate hashed keys
1131#     secret-seed: "default"
1132#
1133#     # For "redis" backend:
1134#     # (to enable, use --with-libhiredis to configure before compiling)
1135#     # redis server's IP address or host name
1136#     redis-server-host: 127.0.0.1
1137#     # redis server's TCP port
1138#     redis-server-port: 6379
1139#     # timeout (in ms) for communication with the redis server
1140#     redis-timeout: 100
1141#     # set timeout on redis records based on DNS response TTL
1142#     redis-expire-records: no
1143
1144# IPSet
1145# Add specify domain into set via ipset.
1146# To enable:
1147# o use --enable-ipset to configure before compiling;
1148# o Unbound then needs to run as root user.
1149# ipset:
1150#     # set name for ip v4 addresses
1151#     name-v4: "list-v4"
1152#     # set name for ip v6 addresses
1153#     name-v6: "list-v6"
1154#
1155
1156# Dnstap logging support, if compiled in by using --enable-dnstap to configure.
1157# To enable, set the dnstap-enable to yes and also some of
1158# dnstap-log-..-messages to yes.  And select an upstream log destination, by
1159# socket path, TCP or TLS destination.
1160# dnstap:
1161# 	dnstap-enable: no
1162# 	# if set to yes frame streams will be used in bidirectional mode
1163# 	dnstap-bidirectional: yes
1164# 	dnstap-socket-path: "@DNSTAP_SOCKET_PATH@"
1165# 	# if "" use the unix socket in dnstap-socket-path, otherwise,
1166# 	# set it to "IPaddress[@port]" of the destination.
1167# 	dnstap-ip: ""
1168# 	# if set to yes if you want to use TLS to dnstap-ip, no for TCP.
1169# 	dnstap-tls: yes
1170# 	# name for authenticating the upstream server. or "" disabled.
1171# 	dnstap-tls-server-name: ""
1172# 	# if "", it uses the cert bundle from the main Unbound config.
1173# 	dnstap-tls-cert-bundle: ""
1174# 	# key file for client authentication, or "" disabled.
1175# 	dnstap-tls-client-key-file: ""
1176# 	# cert file for client authentication, or "" disabled.
1177# 	dnstap-tls-client-cert-file: ""
1178# 	dnstap-send-identity: no
1179# 	dnstap-send-version: no
1180# 	# if "" it uses the hostname.
1181# 	dnstap-identity: ""
1182# 	# if "" it uses the package version.
1183# 	dnstap-version: ""
1184# 	dnstap-log-resolver-query-messages: no
1185# 	dnstap-log-resolver-response-messages: no
1186# 	dnstap-log-client-query-messages: no
1187# 	dnstap-log-client-response-messages: no
1188# 	dnstap-log-forwarder-query-messages: no
1189# 	dnstap-log-forwarder-response-messages: no
1190
1191# Response Policy Zones
1192# RPZ policies. Applied in order of configuration. QNAME, Response IP
1193# Address, nsdname, nsip and clientip triggers are supported. Supported
1194# actions are: NXDOMAIN, NODATA, PASSTHRU, DROP, Local Data, tcp-only
1195# and drop.  Policies can be loaded from a file, or using zone
1196# transfer, or using HTTP. The respip module needs to be added
1197# to the module-config, e.g.: module-config: "respip validator iterator".
1198# rpz:
1199#     name: "rpz.example.com"
1200#     zonefile: "rpz.example.com"
1201#     primary: 192.0.2.0
1202#     allow-notify: 192.0.2.0/32
1203#     url: http://www.example.com/rpz.example.org.zone
1204#     rpz-action-override: cname
1205#     rpz-cname-override: www.example.org
1206#     rpz-log: yes
1207#     rpz-log-name: "example policy"
1208#     rpz-signal-nxdomain-ra: no
1209#     for-downstream: no
1210#     tags: "example"
1211