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