]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/unbound/doc/example.conf
Upgrade Unbound to 1.6.1. More to follow.
[FreeBSD/FreeBSD.git] / contrib / unbound / doc / example.conf
1 #
2 # Example configuration file.
3 #
4 # See unbound.conf(5) man page, version 1.6.1.
5 #
6 # this is a comment.
7
8 #Use this to include other text into the file.
9 #include: "otherfile.conf"
10
11 # The server clause sets the main parameters.
12 server:
13         # whitespace is not necessary, but looks cleaner.
14
15         # verbosity number, 0 is least verbose. 1 is default.
16         verbosity: 1
17
18         # print statistics to the log (for every thread) every N seconds.
19         # Set to "" or 0 to disable. Default is disabled.
20         # statistics-interval: 0
21
22         # enable cumulative statistics, without clearing them after printing.
23         # statistics-cumulative: no
24
25         # enable extended statistics (query types, answer codes, status)
26         # printed from unbound-control. default off, because of speed.
27         # extended-statistics: no
28
29         # number of threads to create. 1 disables threading.
30         # num-threads: 1
31
32         # specify the interfaces to answer queries from by ip-address.
33         # The default is to listen to localhost (127.0.0.1 and ::1).
34         # specify 0.0.0.0 and ::0 to bind to all available interfaces.
35         # specify every interface[@port] on a new 'interface:' labelled line.
36         # The listen interfaces are not changed on reload, only on restart.
37         # interface: 192.0.2.153
38         # interface: 192.0.2.154
39         # interface: 192.0.2.154@5003
40         # interface: 2001:DB8::5
41
42         # enable this feature to copy the source address of queries to reply.
43         # Socket options are not supported on all platforms. experimental.
44         # interface-automatic: no
45
46         # port to answer queries from
47         # port: 53
48
49         # specify the interfaces to send outgoing queries to authoritative
50         # server from by ip-address. If none, the default (all) interface
51         # is used. Specify every interface on a 'outgoing-interface:' line.
52         # outgoing-interface: 192.0.2.153
53         # outgoing-interface: 2001:DB8::5
54         # outgoing-interface: 2001:DB8::6
55
56         # Specify a netblock to use remainder 64 bits as random bits for
57         # upstream queries.  Uses freebind option (Linux).
58         # outgoing-interface: 2001:DB8::/64
59         # Also (Linux:) ip -6 addr add 2001:db8::/64 dev lo
60         # And: ip -6 route add local 2001:db8::/64 dev lo
61         # And set prefer-ip6: yes to use the ip6 randomness from a netblock.
62         # Set this to yes to prefer ipv6 upstream servers over ipv4.
63         # prefer-ip6: no
64
65         # number of ports to allocate per thread, determines the size of the
66         # port range that can be open simultaneously.  About double the
67         # num-queries-per-thread, or, use as many as the OS will allow you.
68         # outgoing-range: 4096
69
70         # permit unbound to use this port number or port range for
71         # making outgoing queries, using an outgoing interface.
72         # outgoing-port-permit: 32768
73
74         # deny unbound the use this of port number or port range for
75         # making outgoing queries, using an outgoing interface.
76         # Use this to make sure unbound does not grab a UDP port that some
77         # other server on this computer needs. The default is to avoid
78         # IANA-assigned port numbers.
79         # If multiple outgoing-port-permit and outgoing-port-avoid options
80         # are present, they are processed in order.
81         # outgoing-port-avoid: "3200-3208"
82
83         # number of outgoing simultaneous tcp buffers to hold per thread.
84         # outgoing-num-tcp: 10
85
86         # number of incoming simultaneous tcp buffers to hold per thread.
87         # incoming-num-tcp: 10
88
89         # buffer size for UDP port 53 incoming (SO_RCVBUF socket option).
90         # 0 is system default.  Use 4m to catch query spikes for busy servers.
91         # so-rcvbuf: 0
92
93         # buffer size for UDP port 53 outgoing (SO_SNDBUF socket option).
94         # 0 is system default.  Use 4m to handle spikes on very busy servers.
95         # so-sndbuf: 0
96
97         # use SO_REUSEPORT to distribute queries over threads.
98         # so-reuseport: no
99
100         # use IP_TRANSPARENT so the interface: addresses can be non-local
101         # and you can config non-existing IPs that are going to work later on
102         # (uses IP_BINDANY on FreeBSD).
103         # ip-transparent: no
104
105         # use IP_FREEBIND so the interface: addresses can be non-local
106         # and you can bind to nonexisting IPs and interfaces that are down.
107         # Linux only.  On Linux you also have ip-transparent that is similar.
108         # ip-freebind: no
109
110         # EDNS reassembly buffer to advertise to UDP peers (the actual buffer
111         # is set with msg-buffer-size). 1480 can solve fragmentation (timeouts).
112         # edns-buffer-size: 4096
113
114         # Maximum UDP response size (not applied to TCP response).
115         # Suggested values are 512 to 4096. Default is 4096. 65536 disables it.
116         # max-udp-size: 4096
117
118         # buffer size for handling DNS data. No messages larger than this
119         # size can be sent or received, by UDP or TCP. In bytes.
120         # msg-buffer-size: 65552
121
122         # the amount of memory to use for the message cache.
123         # plain value in bytes or you can append k, m or G. default is "4Mb".
124         # msg-cache-size: 4m
125
126         # the number of slabs to use for the message cache.
127         # the number of slabs must be a power of 2.
128         # more slabs reduce lock contention, but fragment memory usage.
129         # msg-cache-slabs: 4
130
131         # the number of queries that a thread gets to service.
132         # num-queries-per-thread: 1024
133
134         # if very busy, 50% queries run to completion, 50% get timeout in msec
135         # jostle-timeout: 200
136
137         # msec to wait before close of port on timeout UDP. 0 disables.
138         # delay-close: 0
139
140         # the amount of memory to use for the RRset cache.
141         # plain value in bytes or you can append k, m or G. default is "4Mb".
142         # rrset-cache-size: 4m
143
144         # the number of slabs to use for the RRset cache.
145         # the number of slabs must be a power of 2.
146         # more slabs reduce lock contention, but fragment memory usage.
147         # rrset-cache-slabs: 4
148
149         # the time to live (TTL) value lower bound, in seconds. Default 0.
150         # If more than an hour could easily give trouble due to stale data.
151         # cache-min-ttl: 0
152
153         # the time to live (TTL) value cap for RRsets and messages in the
154         # cache. Items are not cached for longer. In seconds.
155         # cache-max-ttl: 86400
156
157         # the time to live (TTL) value cap for negative responses in the cache
158         # cache-max-negative-ttl: 3600
159
160         # the time to live (TTL) value for cached roundtrip times, lameness and
161         # EDNS version information for hosts. In seconds.
162         # infra-host-ttl: 900
163
164         # minimum wait time for responses, increase if uplink is long. In msec.
165         # infra-cache-min-rtt: 50
166
167         # the number of slabs to use for the Infrastructure cache.
168         # the number of slabs must be a power of 2.
169         # more slabs reduce lock contention, but fragment memory usage.
170         # infra-cache-slabs: 4
171
172         # the maximum number of hosts that are cached (roundtrip, EDNS, lame).
173         # infra-cache-numhosts: 10000
174
175         # define a number of tags here, use with local-zone, access-control.
176         # repeat the define-tag statement to add additional tags.
177         # define-tag: "tag1 tag2 tag3"
178
179         # Enable IPv4, "yes" or "no".
180         # do-ip4: yes
181
182         # Enable IPv6, "yes" or "no".
183         # do-ip6: yes
184
185         # Enable UDP, "yes" or "no".
186         # do-udp: yes
187
188         # Enable TCP, "yes" or "no".
189         # do-tcp: yes
190
191         # upstream connections use TCP only (and no UDP), "yes" or "no"
192         # useful for tunneling scenarios, default no.
193         # tcp-upstream: no
194
195         # Maximum segment size (MSS) of TCP socket on which the server
196         # responds to queries. Default is 0, system default MSS.
197         # tcp-mss: 0
198
199         # Maximum segment size (MSS) of TCP socket for outgoing queries.
200         # Default is 0, system default MSS.
201         # outgoing-tcp-mss: 0
202
203         # Use systemd socket activation for UDP, TCP, and control sockets.
204         # use-systemd: no
205
206         # Detach from the terminal, run in background, "yes" or "no".
207         # Set the value to "no" when unbound runs as systemd service.
208         # do-daemonize: yes
209
210         # control which clients are allowed to make (recursive) queries
211         # to this server. Specify classless netblocks with /size and action.
212         # By default everything is refused, except for localhost.
213         # Choose deny (drop message), refuse (polite error reply),
214         # allow (recursive ok), allow_snoop (recursive and nonrecursive ok)
215         # deny_non_local (drop queries unless can be answered from local-data)
216         # refuse_non_local (like deny_non_local but polite error reply).
217         # access-control: 0.0.0.0/0 refuse
218         # access-control: 127.0.0.0/8 allow
219         # access-control: ::0/0 refuse
220         # access-control: ::1 allow
221         # access-control: ::ffff:127.0.0.1 allow
222
223         # tag access-control with list of tags (in "" with spaces between)
224         # Clients using this access control element use localzones that
225         # are tagged with one of these tags.
226         # access-control-tag: 192.0.2.0/24 "tag2 tag3"
227
228         # set action for particular tag for given access control element
229         # if you have multiple tag values, the tag used to lookup the action
230         # is the first tag match between access-control-tag and local-zone-tag
231         # where "first" comes from the order of the define-tag values.
232         # access-control-tag-action: 192.0.2.0/24 tag3 refuse
233
234         # set redirect data for particular tag for access control element
235         # access-control-tag-data: 192.0.2.0/24 tag2 "A 127.0.0.1"
236
237         # Set view for access control element
238         # access-control-view: 192.0.2.0/24 viewname
239
240         # if given, a chroot(2) is done to the given directory.
241         # i.e. you can chroot to the working directory, for example,
242         # for extra security, but make sure all files are in that directory.
243         #
244         # If chroot is enabled, you should pass the configfile (from the
245         # commandline) as a full path from the original root. After the
246         # chroot has been performed the now defunct portion of the config
247         # file path is removed to be able to reread the config after a reload.
248         #
249         # All other file paths (working dir, logfile, roothints, and
250         # key files) can be specified in several ways:
251         #       o as an absolute path relative to the new root.
252         #       o as a relative path to the working directory.
253         #       o as an absolute path relative to the original root.
254         # In the last case the path is adjusted to remove the unused portion.
255         #
256         # The pid file can be absolute and outside of the chroot, it is
257         # written just prior to performing the chroot and dropping permissions.
258         #
259         # Additionally, unbound may need to access /dev/random (for entropy).
260         # How to do this is specific to your OS.
261         #
262         # If you give "" no chroot is performed. The path must not end in a /.
263         # chroot: "/var/unbound"
264
265         # if given, user privileges are dropped (after binding port),
266         # and the given username is assumed. Default is user "unbound".
267         # If you give "" no privileges are dropped.
268         # username: "unbound"
269
270         # the working directory. The relative files in this config are
271         # relative to this directory. If you give "" the working directory
272         # is not changed.
273         # If you give a server: directory: dir before include: file statements
274         # then those includes can be relative to the working directory.
275         # directory: "/var/unbound"
276
277         # the log file, "" means log to stderr.
278         # Use of this option sets use-syslog to "no".
279         # logfile: ""
280
281         # Log to syslog(3) if yes. The log facility LOG_DAEMON is used to
282         # log to. If yes, it overrides the logfile.
283         # use-syslog: yes
284
285         # Log identity to report. if empty, defaults to the name of argv[0]
286         # (usually "unbound").
287         # log-identity: ""
288
289         # print UTC timestamp in ascii to logfile, default is epoch in seconds.
290         # log-time-ascii: no
291
292         # print one line with time, IP, name, type, class for every query.
293         # log-queries: no
294
295         # print one line per reply, with time, IP, name, type, class, rcode,
296         # timetoresolve, fromcache and responsesize.
297         # log-replies: no
298
299         # the pid file. Can be an absolute path outside of chroot/work dir.
300         # pidfile: "/var/unbound/unbound.pid"
301
302         # file to read root hints from.
303         # get one from https://www.internic.net/domain/named.cache
304         # root-hints: ""
305
306         # enable to not answer id.server and hostname.bind queries.
307         # hide-identity: no
308
309         # enable to not answer version.server and version.bind queries.
310         # hide-version: no
311
312         # the identity to report. Leave "" or default to return hostname.
313         # identity: ""
314
315         # the version to report. Leave "" or default to return package version.
316         # version: ""
317
318         # the target fetch policy.
319         # series of integers describing the policy per dependency depth.
320         # The number of values in the list determines the maximum dependency
321         # depth the recursor will pursue before giving up. Each integer means:
322         #       -1 : fetch all targets opportunistically,
323         #       0: fetch on demand,
324         #       positive value: fetch that many targets opportunistically.
325         # Enclose the list of numbers between quotes ("").
326         # target-fetch-policy: "3 2 1 0 0"
327
328         # Harden against very small EDNS buffer sizes.
329         # harden-short-bufsize: no
330
331         # Harden against unseemly large queries.
332         # harden-large-queries: no
333
334         # Harden against out of zone rrsets, to avoid spoofing attempts.
335         # harden-glue: yes
336
337         # Harden against receiving dnssec-stripped data. If you turn it
338         # off, failing to validate dnskey data for a trustanchor will
339         # trigger insecure mode for that zone (like without a trustanchor).
340         # Default on, which insists on dnssec data for trust-anchored zones.
341         # harden-dnssec-stripped: yes
342
343         # Harden against queries that fall under dnssec-signed nxdomain names.
344         # harden-below-nxdomain: no
345
346         # Harden the referral path by performing additional queries for
347         # infrastructure data.  Validates the replies (if possible).
348         # Default off, because the lookups burden the server.  Experimental
349         # implementation of draft-wijngaards-dnsext-resolver-side-mitigation.
350         # harden-referral-path: no
351
352         # Harden against algorithm downgrade when multiple algorithms are
353         # advertised in the DS record.  If no, allows the weakest algorithm
354         # to validate the zone.
355         # harden-algo-downgrade: no
356
357         # Sent minimum amount of information to upstream servers to enhance
358         # privacy. Only sent minimum required labels of the QNAME and set QTYPE
359         # to NS when possible.
360         # qname-minimisation: no
361
362         # QNAME minimisation in strict mode. Do not fall-back to sending full
363         # QNAME to potentially broken nameservers. A lot of domains will not be
364         # resolvable when this option in enabled.
365         # This option only has effect when qname-minimisation is enabled.
366         # qname-minimisation-strict: no
367
368         # Use 0x20-encoded random bits in the query to foil spoof attempts.
369         # This feature is an experimental implementation of draft dns-0x20.
370         # use-caps-for-id: no
371
372         # Domains (and domains in them) without support for dns-0x20 and
373         # the fallback fails because they keep sending different answers.
374         # caps-whitelist: "licdn.com"
375         # caps-whitelist: "senderbase.org"
376
377         # Enforce privacy of these addresses. Strips them away from answers.
378         # It may cause DNSSEC validation to additionally mark it as bogus.
379         # Protects against 'DNS Rebinding' (uses browser as network proxy).
380         # Only 'private-domain' and 'local-data' names are allowed to have
381         # these private addresses. No default.
382         # private-address: 10.0.0.0/8
383         # private-address: 172.16.0.0/12
384         # private-address: 192.168.0.0/16
385         # private-address: 169.254.0.0/16
386         # private-address: fd00::/8
387         # private-address: fe80::/10
388         # private-address: ::ffff:0:0/96
389
390         # Allow the domain (and its subdomains) to contain private addresses.
391         # local-data statements are allowed to contain private addresses too.
392         # private-domain: "example.com"
393
394         # If nonzero, unwanted replies are not only reported in statistics,
395         # but also a running total is kept per thread. If it reaches the
396         # threshold, a warning is printed and a defensive action is taken,
397         # the cache is cleared to flush potential poison out of it.
398         # A suggested value is 10000000, the default is 0 (turned off).
399         # unwanted-reply-threshold: 0
400
401         # Do not query the following addresses. No DNS queries are sent there.
402         # List one address per entry. List classless netblocks with /size,
403         # do-not-query-address: 127.0.0.1/8
404         # do-not-query-address: ::1
405
406         # if yes, the above default do-not-query-address entries are present.
407         # if no, localhost can be queried (for testing and debugging).
408         # do-not-query-localhost: yes
409
410         # if yes, perform prefetching of almost expired message cache entries.
411         # prefetch: no
412
413         # if yes, perform key lookups adjacent to normal lookups.
414         # prefetch-key: no
415
416         # if yes, Unbound rotates RRSet order in response.
417         # rrset-roundrobin: no
418
419         # if yes, Unbound doesn't insert authority/additional sections
420         # into response messages when those sections are not required.
421         # minimal-responses: no
422
423         # true to disable DNSSEC lameness check in iterator.
424         # disable-dnssec-lame-check: no
425
426         # module configuration of the server. A string with identifiers
427         # separated by spaces. Syntax: "[dns64] [validator] iterator"
428         # module-config: "validator iterator"
429
430         # File with trusted keys, kept uptodate using RFC5011 probes,
431         # initial file like trust-anchor-file, then it stores metadata.
432         # Use several entries, one per domain name, to track multiple zones.
433         #
434         # If you want to perform DNSSEC validation, run unbound-anchor before
435         # you start unbound (i.e. in the system boot scripts).  And enable:
436         # Please note usage of unbound-anchor root anchor is at your own risk
437         # and under the terms of our LICENSE (see that file in the source).
438         # auto-trust-anchor-file: "/var/unbound/root.key"
439
440         # File with DLV trusted keys. Same format as trust-anchor-file.
441         # There can be only one DLV configured, it is trusted from root down.
442         # DLV is going to be decommissioned.  Please do not use it any more.
443         # dlv-anchor-file: "dlv.isc.org.key"
444
445         # File with trusted keys for validation. Specify more than one file
446         # with several entries, one file per entry.
447         # Zone file format, with DS and DNSKEY entries.
448         # Note this gets out of date, use auto-trust-anchor-file please.
449         # trust-anchor-file: ""
450
451         # Trusted key for validation. DS or DNSKEY. specify the RR on a
452         # single line, surrounded by "". TTL is ignored. class is IN default.
453         # Note this gets out of date, use auto-trust-anchor-file please.
454         # (These examples are from August 2007 and may not be valid anymore).
455         # trust-anchor: "nlnetlabs.nl. DNSKEY 257 3 5 AQPzzTWMz8qSWIQlfRnPckx2BiVmkVN6LPupO3mbz7FhLSnm26n6iG9N Lby97Ji453aWZY3M5/xJBSOS2vWtco2t8C0+xeO1bc/d6ZTy32DHchpW 6rDH1vp86Ll+ha0tmwyy9QP7y2bVw5zSbFCrefk8qCUBgfHm9bHzMG1U BYtEIQ=="
456         # trust-anchor: "jelte.nlnetlabs.nl. DS 42860 5 1 14D739EB566D2B1A5E216A0BA4D17FA9B038BE4A"
457
458         # File with trusted keys for validation. Specify more than one file
459         # with several entries, one file per entry. Like trust-anchor-file
460         # but has a different file format. Format is BIND-9 style format,
461         # the trusted-keys { name flag proto algo "key"; }; clauses are read.
462         # you need external update procedures to track changes in keys.
463         # trusted-keys-file: ""
464
465         # Ignore chain of trust. Domain is treated as insecure.
466         # domain-insecure: "example.com"
467
468         # Override the date for validation with a specific fixed date.
469         # Do not set this unless you are debugging signature inception
470         # and expiration. "" or "0" turns the feature off. -1 ignores date.
471         # val-override-date: ""
472
473         # The time to live for bogus data, rrsets and messages. This avoids
474         # some of the revalidation, until the time interval expires. in secs.
475         # val-bogus-ttl: 60
476
477         # The signature inception and expiration dates are allowed to be off
478         # by 10% of the signature lifetime (expir-incep) from our local clock.
479         # This leeway is capped with a minimum and a maximum.  In seconds.
480         # val-sig-skew-min: 3600
481         # val-sig-skew-max: 86400
482
483         # Should additional section of secure message also be kept clean of
484         # unsecure data. Useful to shield the users of this validator from
485         # potential bogus data in the additional section. All unsigned data
486         # in the additional section is removed from secure messages.
487         # val-clean-additional: yes
488
489         # Turn permissive mode on to permit bogus messages. Thus, messages
490         # for which security checks failed will be returned to clients,
491         # instead of SERVFAIL. It still performs the security checks, which
492         # result in interesting log files and possibly the AD bit in
493         # replies if the message is found secure. The default is off.
494         # val-permissive-mode: no
495
496         # Ignore the CD flag in incoming queries and refuse them bogus data.
497         # Enable it if the only clients of unbound are legacy servers (w2008)
498         # that set CD but cannot validate themselves.
499         # ignore-cd-flag: no
500
501         # Serve expired reponses from cache, with TTL 0 in the response,
502         # and then attempt to fetch the data afresh.
503         # serve-expired: no
504
505         # Have the validator log failed validations for your diagnosis.
506         # 0: off. 1: A line per failed user query. 2: With reason and bad IP.
507         # val-log-level: 0
508
509         # It is possible to configure NSEC3 maximum iteration counts per
510         # keysize. Keep this table very short, as linear search is done.
511         # A message with an NSEC3 with larger count is marked insecure.
512         # List in ascending order the keysize and count values.
513         # val-nsec3-keysize-iterations: "1024 150 2048 500 4096 2500"
514
515         # instruct the auto-trust-anchor-file probing to add anchors after ttl.
516         # add-holddown: 2592000 # 30 days
517
518         # instruct the auto-trust-anchor-file probing to del anchors after ttl.
519         # del-holddown: 2592000 # 30 days
520
521         # auto-trust-anchor-file probing removes missing anchors after ttl.
522         # If the value 0 is given, missing anchors are not removed.
523         # keep-missing: 31622400 # 366 days
524
525         # debug option that allows very small holddown times for key rollover,
526         # otherwise the RFC mandates probe intervals must be at least 1 hour.
527         # permit-small-holddown: no
528
529         # the amount of memory to use for the key cache.
530         # plain value in bytes or you can append k, m or G. default is "4Mb".
531         # key-cache-size: 4m
532
533         # the number of slabs to use for the key cache.
534         # the number of slabs must be a power of 2.
535         # more slabs reduce lock contention, but fragment memory usage.
536         # key-cache-slabs: 4
537
538         # the amount of memory to use for the negative cache (used for DLV).
539         # plain value in bytes or you can append k, m or G. default is "1Mb".
540         # neg-cache-size: 1m
541
542         # By default, for a number of zones a small default 'nothing here'
543         # reply is built-in.  Query traffic is thus blocked.  If you
544         # wish to serve such zone you can unblock them by uncommenting one
545         # of the nodefault statements below.
546         # You may also have to use domain-insecure: zone to make DNSSEC work,
547         # unless you have your own trust anchors for this zone.
548         # local-zone: "localhost." nodefault
549         # local-zone: "127.in-addr.arpa." nodefault
550         # 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
551         # local-zone: "onion." nodefault
552         # local-zone: "10.in-addr.arpa." nodefault
553         # local-zone: "16.172.in-addr.arpa." nodefault
554         # local-zone: "17.172.in-addr.arpa." nodefault
555         # local-zone: "18.172.in-addr.arpa." nodefault
556         # local-zone: "19.172.in-addr.arpa." nodefault
557         # local-zone: "20.172.in-addr.arpa." nodefault
558         # local-zone: "21.172.in-addr.arpa." nodefault
559         # local-zone: "22.172.in-addr.arpa." nodefault
560         # local-zone: "23.172.in-addr.arpa." nodefault
561         # local-zone: "24.172.in-addr.arpa." nodefault
562         # local-zone: "25.172.in-addr.arpa." nodefault
563         # local-zone: "26.172.in-addr.arpa." nodefault
564         # local-zone: "27.172.in-addr.arpa." nodefault
565         # local-zone: "28.172.in-addr.arpa." nodefault
566         # local-zone: "29.172.in-addr.arpa." nodefault
567         # local-zone: "30.172.in-addr.arpa." nodefault
568         # local-zone: "31.172.in-addr.arpa." nodefault
569         # local-zone: "168.192.in-addr.arpa." nodefault
570         # local-zone: "0.in-addr.arpa." nodefault
571         # local-zone: "254.169.in-addr.arpa." nodefault
572         # local-zone: "2.0.192.in-addr.arpa." nodefault
573         # local-zone: "100.51.198.in-addr.arpa." nodefault
574         # local-zone: "113.0.203.in-addr.arpa." nodefault
575         # local-zone: "255.255.255.255.in-addr.arpa." nodefault
576         # 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
577         # local-zone: "d.f.ip6.arpa." nodefault
578         # local-zone: "8.e.f.ip6.arpa." nodefault
579         # local-zone: "9.e.f.ip6.arpa." nodefault
580         # local-zone: "a.e.f.ip6.arpa." nodefault
581         # local-zone: "b.e.f.ip6.arpa." nodefault
582         # local-zone: "8.b.d.0.1.0.0.2.ip6.arpa." nodefault
583         # And for 64.100.in-addr.arpa. to 127.100.in-addr.arpa.
584
585         # If unbound is running service for the local host then it is useful
586         # to perform lan-wide lookups to the upstream, and unblock the
587         # long list of local-zones above.  If this unbound is a dns server
588         # for a network of computers, disabled is better and stops information
589         # leakage of local lan information.
590         # unblock-lan-zones: no
591
592         # The insecure-lan-zones option disables validation for
593         # these zones, as if they were all listed as domain-insecure.
594         # insecure-lan-zones: no
595
596         # a number of locally served zones can be configured.
597         #       local-zone: <zone> <type>
598         #       local-data: "<resource record string>"
599         # o deny serves local data (if any), else, drops queries.
600         # o refuse serves local data (if any), else, replies with error.
601         # o static serves local data, else, nxdomain or nodata answer.
602         # o transparent gives local data, but resolves normally for other names
603         # o redirect serves the zone data for any subdomain in the zone.
604         # o nodefault can be used to normally resolve AS112 zones.
605         # o typetransparent resolves normally for other types and other names
606         # o inform acts like transparent, but logs client IP address
607         # o inform_deny drops queries and logs client IP address
608         # o always_transparent, always_refuse, always_nxdomain, resolve in
609         #   that way but ignore local data for that name.
610         #
611         # defaults are localhost address, reverse for 127.0.0.1 and ::1
612         # and nxdomain for AS112 zones. If you configure one of these zones
613         # the default content is omitted, or you can omit it with 'nodefault'.
614         #
615         # If you configure local-data without specifying local-zone, by
616         # default a transparent local-zone is created for the data.
617         #
618         # You can add locally served data with
619         # local-zone: "local." static
620         # local-data: "mycomputer.local. IN A 192.0.2.51"
621         # local-data: 'mytext.local TXT "content of text record"'
622         #
623         # You can override certain queries with
624         # local-data: "adserver.example.com A 127.0.0.1"
625         #
626         # You can redirect a domain to a fixed address with
627         # (this makes example.com, www.example.com, etc, all go to 192.0.2.3)
628         # local-zone: "example.com" redirect
629         # local-data: "example.com A 192.0.2.3"
630         #
631         # Shorthand to make PTR records, "IPv4 name" or "IPv6 name".
632         # You can also add PTR records using local-data directly, but then
633         # you need to do the reverse notation yourself.
634         # local-data-ptr: "192.0.2.3 www.example.com"
635
636         # tag a localzone with a list of tag names (in "" with spaces between)
637         # local-zone-tag: "example.com" "tag2 tag3"
638
639         # add a netblock specific override to a localzone, with zone type
640         # local-zone-override: "example.com" 192.0.2.0/24 refuse
641
642         # service clients over SSL (on the TCP sockets), with plain DNS inside
643         # the SSL stream.  Give the certificate to use and private key.
644         # default is "" (disabled).  requires restart to take effect.
645         # ssl-service-key: "path/to/privatekeyfile.key"
646         # ssl-service-pem: "path/to/publiccertfile.pem"
647         # ssl-port: 853
648
649         # request upstream over SSL (with plain DNS inside the SSL stream).
650         # Default is no.  Can be turned on and off with unbound-control.
651         # ssl-upstream: no
652
653         # DNS64 prefix. Must be specified when DNS64 is use.
654         # Enable dns64 in module-config.  Used to synthesize IPv6 from IPv4.
655         # dns64-prefix: 64:ff9b::0/96
656
657         # ratelimit for uncached, new queries, this limits recursion effort.
658         # ratelimiting is experimental, and may help against randomqueryflood.
659         # if 0(default) it is disabled, otherwise state qps allowed per zone.
660         # ratelimit: 0
661
662         # ratelimits are tracked in a cache, size in bytes of cache (or k,m).
663         # ratelimit-size: 4m
664         # ratelimit cache slabs, reduces lock contention if equal to cpucount.
665         # ratelimit-slabs: 4
666
667         # 0 blocks when ratelimited, otherwise let 1/xth traffic through
668         # ratelimit-factor: 10
669
670         # override the ratelimit for a specific domain name.
671         # give this setting multiple times to have multiple overrides.
672         # ratelimit-for-domain: example.com 1000
673         # override the ratelimits for all domains below a domain name
674         # can give this multiple times, the name closest to the zone is used.
675         # ratelimit-below-domain: com 1000
676
677         # global query ratelimit for all ip addresses.
678         # feature is experimental.
679         # if 0(default) it is disabled, otherwise states qps allowed per ip address
680         # ip-ratelimit: 0
681
682         # ip ratelimits are tracked in a cache, size in bytes of cache (or k,m).
683         # ip-ratelimit-size: 4m
684         # ip ratelimit cache slabs, reduces lock contention if equal to cpucount.
685         # ip-ratelimit-slabs: 4
686
687         # 0 blocks when ip is ratelimited, otherwise let 1/xth traffic through
688         # ip-ratelimit-factor: 10
689
690
691 # Python config section. To enable:
692 # o use --with-pythonmodule to configure before compiling.
693 # o list python in the module-config string (above) to enable.
694 # o and give a python-script to run.
695 python:
696         # Script file to load
697         # python-script: "/var/unbound/ubmodule-tst.py"
698
699 # Remote control config section.
700 remote-control:
701         # Enable remote control with unbound-control(8) here.
702         # set up the keys and certificates with unbound-control-setup.
703         # control-enable: no
704
705         # Set to no and use an absolute path as control-interface to use
706         # a unix local named pipe for unbound-control.
707         # control-use-cert: yes
708
709         # what interfaces are listened to for remote control.
710         # give 0.0.0.0 and ::0 to listen to all interfaces.
711         # control-interface: 127.0.0.1
712         # control-interface: ::1
713
714         # port number for remote control operations.
715         # control-port: 8953
716
717         # unbound server key file.
718         # server-key-file: "/var/unbound/unbound_server.key"
719
720         # unbound server certificate file.
721         # server-cert-file: "/var/unbound/unbound_server.pem"
722
723         # unbound-control key file.
724         # control-key-file: "/var/unbound/unbound_control.key"
725
726         # unbound-control certificate file.
727         # control-cert-file: "/var/unbound/unbound_control.pem"
728
729 # Stub zones.
730 # Create entries like below, to make all queries for 'example.com' and
731 # 'example.org' go to the given list of nameservers. list zero or more
732 # nameservers by hostname or by ipaddress. If you set stub-prime to yes,
733 # the list is treated as priming hints (default is no).
734 # With stub-first yes, it attempts without the stub if it fails.
735 # Consider adding domain-insecure: name and local-zone: name nodefault
736 # to the server: section if the stub is a locally served zone.
737 # stub-zone:
738 #       name: "example.com"
739 #       stub-addr: 192.0.2.68
740 #       stub-prime: no
741 #       stub-first: no
742 #       stub-ssl-upstream: no
743 # stub-zone:
744 #       name: "example.org"
745 #       stub-host: ns.example.com.
746
747 # Forward zones
748 # Create entries like below, to make all queries for 'example.com' and
749 # 'example.org' go to the given list of servers. These servers have to handle
750 # recursion to other nameservers. List zero or more nameservers by hostname
751 # or by ipaddress. Use an entry with name "." to forward all queries.
752 # If you enable forward-first, it attempts without the forward if it fails.
753 # forward-zone:
754 #       name: "example.com"
755 #       forward-addr: 192.0.2.68
756 #       forward-addr: 192.0.2.73@5355  # forward to port 5355.
757 #       forward-first: no
758 #       forward-ssl-upstream: no
759 # forward-zone:
760 #       name: "example.org"
761 #       forward-host: fwd.example.com
762
763 # Views
764 # Create named views. Name must be unique. Map views to requests using
765 # the access-control-view option. Views can contain zero or more local-zone
766 # and local-data options. Options from matching views will override global
767 # options. Global options will be used if no matching view is found.
768 # With view-first yes, it will try to answer using the global local-zone and
769 # local-data elements if there is no view specific match.
770 # view:
771 #       name: "viewname"
772 #       local-zone: "example.com" redirect
773 #       local-data: "example.com A 192.0.2.3"
774 #       view-first: no
775 # view:
776 #       name: "anotherview"
777 #       local-zone: "example.com" refuse