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