2 # Example configuration file.
4 # See unbound.conf(5) man page, version 1.5.9.
8 #Use this to include other text into the file.
9 #include: "otherfile.conf"
11 # The server clause sets the main parameters.
13 # whitespace is not necessary, but looks cleaner.
15 # verbosity number, 0 is least verbose. 1 is default.
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
22 # enable cumulative statistics, without clearing them after printing.
23 # statistics-cumulative: no
25 # enable extended statistics (query types, answer codes, status)
26 # printed from unbound-control. default off, because of speed.
27 # extended-statistics: no
29 # number of threads to create. 1 disables threading.
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
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
46 # port to answer queries from
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
56 # number of ports to allocate per thread, determines the size of the
57 # port range that can be open simultaneously. About double the
58 # num-queries-per-thread, or, use as many as the OS will allow you.
59 # outgoing-range: 4096
61 # permit unbound to use this port number or port range for
62 # making outgoing queries, using an outgoing interface.
63 # outgoing-port-permit: 32768
65 # deny unbound the use this of port number or port range for
66 # making outgoing queries, using an outgoing interface.
67 # Use this to make sure unbound does not grab a UDP port that some
68 # other server on this computer needs. The default is to avoid
69 # IANA-assigned port numbers.
70 # If multiple outgoing-port-permit and outgoing-port-avoid options
71 # are present, they are processed in order.
72 # outgoing-port-avoid: "3200-3208"
74 # number of outgoing simultaneous tcp buffers to hold per thread.
75 # outgoing-num-tcp: 10
77 # number of incoming simultaneous tcp buffers to hold per thread.
78 # incoming-num-tcp: 10
80 # buffer size for UDP port 53 incoming (SO_RCVBUF socket option).
81 # 0 is system default. Use 4m to catch query spikes for busy servers.
84 # buffer size for UDP port 53 outgoing (SO_SNDBUF socket option).
85 # 0 is system default. Use 4m to handle spikes on very busy servers.
88 # use SO_REUSEPORT to distribute queries over threads.
91 # use IP_TRANSPARENT so the interface: addresses can be non-local
92 # and you can config non-existing IPs that are going to work later on
93 # (uses IP_BINDANY on FreeBSD).
96 # use IP_FREEBIND so the interface: addresses can be non-local
97 # and you can bind to nonexisting IPs and interfaces that are down.
98 # Linux only. On Linux you also have ip-transparent that is similar.
101 # EDNS reassembly buffer to advertise to UDP peers (the actual buffer
102 # is set with msg-buffer-size). 1480 can solve fragmentation (timeouts).
103 # edns-buffer-size: 4096
105 # Maximum UDP response size (not applied to TCP response).
106 # Suggested values are 512 to 4096. Default is 4096. 65536 disables it.
109 # buffer size for handling DNS data. No messages larger than this
110 # size can be sent or received, by UDP or TCP. In bytes.
111 # msg-buffer-size: 65552
113 # the amount of memory to use for the message cache.
114 # plain value in bytes or you can append k, m or G. default is "4Mb".
117 # the number of slabs to use for the message cache.
118 # the number of slabs must be a power of 2.
119 # more slabs reduce lock contention, but fragment memory usage.
122 # the number of queries that a thread gets to service.
123 # num-queries-per-thread: 1024
125 # if very busy, 50% queries run to completion, 50% get timeout in msec
126 # jostle-timeout: 200
128 # msec to wait before close of port on timeout UDP. 0 disables.
131 # the amount of memory to use for the RRset cache.
132 # plain value in bytes or you can append k, m or G. default is "4Mb".
133 # rrset-cache-size: 4m
135 # the number of slabs to use for the RRset cache.
136 # the number of slabs must be a power of 2.
137 # more slabs reduce lock contention, but fragment memory usage.
138 # rrset-cache-slabs: 4
140 # the time to live (TTL) value lower bound, in seconds. Default 0.
141 # If more than an hour could easily give trouble due to stale data.
144 # the time to live (TTL) value cap for RRsets and messages in the
145 # cache. Items are not cached for longer. In seconds.
146 # cache-max-ttl: 86400
148 # the time to live (TTL) value cap for negative responses in the cache
149 # cache-max-negative-ttl: 3600
151 # the time to live (TTL) value for cached roundtrip times, lameness and
152 # EDNS version information for hosts. In seconds.
153 # infra-host-ttl: 900
155 # minimum wait time for responses, increase if uplink is long. In msec.
156 # infra-cache-min-rtt: 50
158 # the number of slabs to use for the Infrastructure cache.
159 # the number of slabs must be a power of 2.
160 # more slabs reduce lock contention, but fragment memory usage.
161 # infra-cache-slabs: 4
163 # the maximum number of hosts that are cached (roundtrip, EDNS, lame).
164 # infra-cache-numhosts: 10000
166 # Enable IPv4, "yes" or "no".
169 # Enable IPv6, "yes" or "no".
172 # Enable UDP, "yes" or "no".
175 # Enable TCP, "yes" or "no".
178 # upstream connections use TCP only (and no UDP), "yes" or "no"
179 # useful for tunneling scenarios, default no.
182 # Maximum segment size (MSS) of TCP socket on which the server
183 # responds to queries. Default is 0, system default MSS.
186 # Maximum segment size (MSS) of TCP socket for outgoing queries.
187 # Default is 0, system default MSS.
188 # outgoing-tcp-mss: 0
190 # Detach from the terminal, run in background, "yes" or "no".
193 # control which clients are allowed to make (recursive) queries
194 # to this server. Specify classless netblocks with /size and action.
195 # By default everything is refused, except for localhost.
196 # Choose deny (drop message), refuse (polite error reply),
197 # allow (recursive ok), allow_snoop (recursive and nonrecursive ok)
198 # deny_non_local (drop queries unless can be answered from local-data)
199 # refuse_non_local (like deny_non_local but polite error reply).
200 # access-control: 0.0.0.0/0 refuse
201 # access-control: 127.0.0.0/8 allow
202 # access-control: ::0/0 refuse
203 # access-control: ::1 allow
204 # access-control: ::ffff:127.0.0.1 allow
206 # if given, a chroot(2) is done to the given directory.
207 # i.e. you can chroot to the working directory, for example,
208 # for extra security, but make sure all files are in that directory.
210 # If chroot is enabled, you should pass the configfile (from the
211 # commandline) as a full path from the original root. After the
212 # chroot has been performed the now defunct portion of the config
213 # file path is removed to be able to reread the config after a reload.
215 # All other file paths (working dir, logfile, roothints, and
216 # key files) can be specified in several ways:
217 # o as an absolute path relative to the new root.
218 # o as a relative path to the working directory.
219 # o as an absolute path relative to the original root.
220 # In the last case the path is adjusted to remove the unused portion.
222 # The pid file can be absolute and outside of the chroot, it is
223 # written just prior to performing the chroot and dropping permissions.
225 # Additionally, unbound may need to access /dev/random (for entropy).
226 # How to do this is specific to your OS.
228 # If you give "" no chroot is performed. The path must not end in a /.
229 # chroot: "/var/unbound"
231 # if given, user privileges are dropped (after binding port),
232 # and the given username is assumed. Default is user "unbound".
233 # If you give "" no privileges are dropped.
234 # username: "unbound"
236 # the working directory. The relative files in this config are
237 # relative to this directory. If you give "" the working directory
239 # directory: "/var/unbound"
241 # the log file, "" means log to stderr.
242 # Use of this option sets use-syslog to "no".
245 # Log to syslog(3) if yes. The log facility LOG_DAEMON is used to
246 # log to, with identity "unbound". If yes, it overrides the logfile.
249 # print UTC timestamp in ascii to logfile, default is epoch in seconds.
252 # print one line with time, IP, name, type, class for every query.
255 # the pid file. Can be an absolute path outside of chroot/work dir.
256 # pidfile: "/var/unbound/unbound.pid"
258 # file to read root hints from.
259 # get one from https://www.internic.net/domain/named.cache
262 # enable to not answer id.server and hostname.bind queries.
265 # enable to not answer version.server and version.bind queries.
268 # the identity to report. Leave "" or default to return hostname.
271 # the version to report. Leave "" or default to return package version.
274 # the target fetch policy.
275 # series of integers describing the policy per dependency depth.
276 # The number of values in the list determines the maximum dependency
277 # depth the recursor will pursue before giving up. Each integer means:
278 # -1 : fetch all targets opportunistically,
279 # 0: fetch on demand,
280 # positive value: fetch that many targets opportunistically.
281 # Enclose the list of numbers between quotes ("").
282 # target-fetch-policy: "3 2 1 0 0"
284 # Harden against very small EDNS buffer sizes.
285 # harden-short-bufsize: no
287 # Harden against unseemly large queries.
288 # harden-large-queries: no
290 # Harden against out of zone rrsets, to avoid spoofing attempts.
293 # Harden against receiving dnssec-stripped data. If you turn it
294 # off, failing to validate dnskey data for a trustanchor will
295 # trigger insecure mode for that zone (like without a trustanchor).
296 # Default on, which insists on dnssec data for trust-anchored zones.
297 # harden-dnssec-stripped: yes
299 # Harden against queries that fall under dnssec-signed nxdomain names.
300 # harden-below-nxdomain: no
302 # Harden the referral path by performing additional queries for
303 # infrastructure data. Validates the replies (if possible).
304 # Default off, because the lookups burden the server. Experimental
305 # implementation of draft-wijngaards-dnsext-resolver-side-mitigation.
306 # harden-referral-path: no
308 # Harden against algorithm downgrade when multiple algorithms are
309 # advertised in the DS record. If no, allows the weakest algorithm
310 # to validate the zone.
311 # harden-algo-downgrade: no
313 # Sent minimum amount of information to upstream servers to enhance
314 # privacy. Only sent minimum required labels of the QNAME and set QTYPE
315 # to NS when possible.
316 # qname-minimisation: no
318 # Use 0x20-encoded random bits in the query to foil spoof attempts.
319 # This feature is an experimental implementation of draft dns-0x20.
320 # use-caps-for-id: no
322 # Domains (and domains in them) without support for dns-0x20 and
323 # the fallback fails because they keep sending different answers.
324 # caps-whitelist: "licdn.com"
326 # Enforce privacy of these addresses. Strips them away from answers.
327 # It may cause DNSSEC validation to additionally mark it as bogus.
328 # Protects against 'DNS Rebinding' (uses browser as network proxy).
329 # Only 'private-domain' and 'local-data' names are allowed to have
330 # these private addresses. No default.
331 # private-address: 10.0.0.0/8
332 # private-address: 172.16.0.0/12
333 # private-address: 192.168.0.0/16
334 # private-address: 169.254.0.0/16
335 # private-address: fd00::/8
336 # private-address: fe80::/10
337 # private-address: ::ffff:0:0/96
339 # Allow the domain (and its subdomains) to contain private addresses.
340 # local-data statements are allowed to contain private addresses too.
341 # private-domain: "example.com"
343 # If nonzero, unwanted replies are not only reported in statistics,
344 # but also a running total is kept per thread. If it reaches the
345 # threshold, a warning is printed and a defensive action is taken,
346 # the cache is cleared to flush potential poison out of it.
347 # A suggested value is 10000000, the default is 0 (turned off).
348 # unwanted-reply-threshold: 0
350 # Do not query the following addresses. No DNS queries are sent there.
351 # List one address per entry. List classless netblocks with /size,
352 # do-not-query-address: 127.0.0.1/8
353 # do-not-query-address: ::1
355 # if yes, the above default do-not-query-address entries are present.
356 # if no, localhost can be queried (for testing and debugging).
357 # do-not-query-localhost: yes
359 # if yes, perform prefetching of almost expired message cache entries.
362 # if yes, perform key lookups adjacent to normal lookups.
365 # if yes, Unbound rotates RRSet order in response.
366 # rrset-roundrobin: no
368 # if yes, Unbound doesn't insert authority/additional sections
369 # into response messages when those sections are not required.
370 # minimal-responses: no
372 # true to disable DNSSEC lameness check in iterator.
373 # disable-dnssec-lame-check: no
375 # module configuration of the server. A string with identifiers
376 # separated by spaces. Syntax: "[dns64] [validator] iterator"
377 # module-config: "validator iterator"
379 # File with trusted keys, kept uptodate using RFC5011 probes,
380 # initial file like trust-anchor-file, then it stores metadata.
381 # Use several entries, one per domain name, to track multiple zones.
383 # If you want to perform DNSSEC validation, run unbound-anchor before
384 # you start unbound (i.e. in the system boot scripts). And enable:
385 # Please note usage of unbound-anchor root anchor is at your own risk
386 # and under the terms of our LICENSE (see that file in the source).
387 # auto-trust-anchor-file: "/var/unbound/root.key"
389 # File with DLV trusted keys. Same format as trust-anchor-file.
390 # There can be only one DLV configured, it is trusted from root down.
391 # DLV is going to be decommissioned. Please do not use it any more.
392 # dlv-anchor-file: "dlv.isc.org.key"
394 # File with trusted keys for validation. Specify more than one file
395 # with several entries, one file per entry.
396 # Zone file format, with DS and DNSKEY entries.
397 # Note this gets out of date, use auto-trust-anchor-file please.
398 # trust-anchor-file: ""
400 # Trusted key for validation. DS or DNSKEY. specify the RR on a
401 # single line, surrounded by "". TTL is ignored. class is IN default.
402 # Note this gets out of date, use auto-trust-anchor-file please.
403 # (These examples are from August 2007 and may not be valid anymore).
404 # trust-anchor: "nlnetlabs.nl. DNSKEY 257 3 5 AQPzzTWMz8qSWIQlfRnPckx2BiVmkVN6LPupO3mbz7FhLSnm26n6iG9N Lby97Ji453aWZY3M5/xJBSOS2vWtco2t8C0+xeO1bc/d6ZTy32DHchpW 6rDH1vp86Ll+ha0tmwyy9QP7y2bVw5zSbFCrefk8qCUBgfHm9bHzMG1U BYtEIQ=="
405 # trust-anchor: "jelte.nlnetlabs.nl. DS 42860 5 1 14D739EB566D2B1A5E216A0BA4D17FA9B038BE4A"
407 # File with trusted keys for validation. Specify more than one file
408 # with several entries, one file per entry. Like trust-anchor-file
409 # but has a different file format. Format is BIND-9 style format,
410 # the trusted-keys { name flag proto algo "key"; }; clauses are read.
411 # you need external update procedures to track changes in keys.
412 # trusted-keys-file: ""
414 # Ignore chain of trust. Domain is treated as insecure.
415 # domain-insecure: "example.com"
417 # Override the date for validation with a specific fixed date.
418 # Do not set this unless you are debugging signature inception
419 # and expiration. "" or "0" turns the feature off. -1 ignores date.
420 # val-override-date: ""
422 # The time to live for bogus data, rrsets and messages. This avoids
423 # some of the revalidation, until the time interval expires. in secs.
426 # The signature inception and expiration dates are allowed to be off
427 # by 10% of the signature lifetime (expir-incep) from our local clock.
428 # This leeway is capped with a minimum and a maximum. In seconds.
429 # val-sig-skew-min: 3600
430 # val-sig-skew-max: 86400
432 # Should additional section of secure message also be kept clean of
433 # unsecure data. Useful to shield the users of this validator from
434 # potential bogus data in the additional section. All unsigned data
435 # in the additional section is removed from secure messages.
436 # val-clean-additional: yes
438 # Turn permissive mode on to permit bogus messages. Thus, messages
439 # for which security checks failed will be returned to clients,
440 # instead of SERVFAIL. It still performs the security checks, which
441 # result in interesting log files and possibly the AD bit in
442 # replies if the message is found secure. The default is off.
443 # val-permissive-mode: no
445 # Ignore the CD flag in incoming queries and refuse them bogus data.
446 # Enable it if the only clients of unbound are legacy servers (w2008)
447 # that set CD but cannot validate themselves.
450 # Have the validator log failed validations for your diagnosis.
451 # 0: off. 1: A line per failed user query. 2: With reason and bad IP.
454 # It is possible to configure NSEC3 maximum iteration counts per
455 # keysize. Keep this table very short, as linear search is done.
456 # A message with an NSEC3 with larger count is marked insecure.
457 # List in ascending order the keysize and count values.
458 # val-nsec3-keysize-iterations: "1024 150 2048 500 4096 2500"
460 # instruct the auto-trust-anchor-file probing to add anchors after ttl.
461 # add-holddown: 2592000 # 30 days
463 # instruct the auto-trust-anchor-file probing to del anchors after ttl.
464 # del-holddown: 2592000 # 30 days
466 # auto-trust-anchor-file probing removes missing anchors after ttl.
467 # If the value 0 is given, missing anchors are not removed.
468 # keep-missing: 31622400 # 366 days
470 # debug option that allows very small holddown times for key rollover,
471 # otherwise the RFC mandates probe intervals must be at least 1 hour.
472 # permit-small-holddown: no
474 # the amount of memory to use for the key cache.
475 # plain value in bytes or you can append k, m or G. default is "4Mb".
478 # the number of slabs to use for the key cache.
479 # the number of slabs must be a power of 2.
480 # more slabs reduce lock contention, but fragment memory usage.
483 # the amount of memory to use for the negative cache (used for DLV).
484 # plain value in bytes or you can append k, m or G. default is "1Mb".
487 # By default, for a number of zones a small default 'nothing here'
488 # reply is built-in. Query traffic is thus blocked. If you
489 # wish to serve such zone you can unblock them by uncommenting one
490 # of the nodefault statements below.
491 # You may also have to use domain-insecure: zone to make DNSSEC work,
492 # unless you have your own trust anchors for this zone.
493 # local-zone: "localhost." nodefault
494 # local-zone: "127.in-addr.arpa." nodefault
495 # 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
496 # local-zone: "onion." nodefault
497 # local-zone: "10.in-addr.arpa." nodefault
498 # local-zone: "16.172.in-addr.arpa." nodefault
499 # local-zone: "17.172.in-addr.arpa." nodefault
500 # local-zone: "18.172.in-addr.arpa." nodefault
501 # local-zone: "19.172.in-addr.arpa." nodefault
502 # local-zone: "20.172.in-addr.arpa." nodefault
503 # local-zone: "21.172.in-addr.arpa." nodefault
504 # local-zone: "22.172.in-addr.arpa." nodefault
505 # local-zone: "23.172.in-addr.arpa." nodefault
506 # local-zone: "24.172.in-addr.arpa." nodefault
507 # local-zone: "25.172.in-addr.arpa." nodefault
508 # local-zone: "26.172.in-addr.arpa." nodefault
509 # local-zone: "27.172.in-addr.arpa." nodefault
510 # local-zone: "28.172.in-addr.arpa." nodefault
511 # local-zone: "29.172.in-addr.arpa." nodefault
512 # local-zone: "30.172.in-addr.arpa." nodefault
513 # local-zone: "31.172.in-addr.arpa." nodefault
514 # local-zone: "168.192.in-addr.arpa." nodefault
515 # local-zone: "0.in-addr.arpa." nodefault
516 # local-zone: "254.169.in-addr.arpa." nodefault
517 # local-zone: "2.0.192.in-addr.arpa." nodefault
518 # local-zone: "100.51.198.in-addr.arpa." nodefault
519 # local-zone: "113.0.203.in-addr.arpa." nodefault
520 # local-zone: "255.255.255.255.in-addr.arpa." nodefault
521 # 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
522 # local-zone: "d.f.ip6.arpa." nodefault
523 # local-zone: "8.e.f.ip6.arpa." nodefault
524 # local-zone: "9.e.f.ip6.arpa." nodefault
525 # local-zone: "a.e.f.ip6.arpa." nodefault
526 # local-zone: "b.e.f.ip6.arpa." nodefault
527 # local-zone: "8.b.d.0.1.0.0.2.ip6.arpa." nodefault
528 # And for 64.100.in-addr.arpa. to 127.100.in-addr.arpa.
530 # If unbound is running service for the local host then it is useful
531 # to perform lan-wide lookups to the upstream, and unblock the
532 # long list of local-zones above. If this unbound is a dns server
533 # for a network of computers, disabled is better and stops information
534 # leakage of local lan information.
535 # unblock-lan-zones: no
537 # The insecure-lan-zones option disables validation for
538 # these zones, as if they were all listed as domain-insecure.
539 # insecure-lan-zones: no
541 # a number of locally served zones can be configured.
542 # local-zone: <zone> <type>
543 # local-data: "<resource record string>"
544 # o deny serves local data (if any), else, drops queries.
545 # o refuse serves local data (if any), else, replies with error.
546 # o static serves local data, else, nxdomain or nodata answer.
547 # o transparent gives local data, but resolves normally for other names
548 # o redirect serves the zone data for any subdomain in the zone.
549 # o nodefault can be used to normally resolve AS112 zones.
550 # o typetransparent resolves normally for other types and other names
551 # o inform resolves normally, but logs client IP address
552 # o inform_deny drops queries and logs client IP address
554 # defaults are localhost address, reverse for 127.0.0.1 and ::1
555 # and nxdomain for AS112 zones. If you configure one of these zones
556 # the default content is omitted, or you can omit it with 'nodefault'.
558 # If you configure local-data without specifying local-zone, by
559 # default a transparent local-zone is created for the data.
561 # You can add locally served data with
562 # local-zone: "local." static
563 # local-data: "mycomputer.local. IN A 192.0.2.51"
564 # local-data: 'mytext.local TXT "content of text record"'
566 # You can override certain queries with
567 # local-data: "adserver.example.com A 127.0.0.1"
569 # You can redirect a domain to a fixed address with
570 # (this makes example.com, www.example.com, etc, all go to 192.0.2.3)
571 # local-zone: "example.com" redirect
572 # local-data: "example.com A 192.0.2.3"
574 # Shorthand to make PTR records, "IPv4 name" or "IPv6 name".
575 # You can also add PTR records using local-data directly, but then
576 # you need to do the reverse notation yourself.
577 # local-data-ptr: "192.0.2.3 www.example.com"
579 # service clients over SSL (on the TCP sockets), with plain DNS inside
580 # the SSL stream. Give the certificate to use and private key.
581 # default is "" (disabled). requires restart to take effect.
582 # ssl-service-key: "path/to/privatekeyfile.key"
583 # ssl-service-pem: "path/to/publiccertfile.pem"
586 # request upstream over SSL (with plain DNS inside the SSL stream).
587 # Default is no. Can be turned on and off with unbound-control.
590 # DNS64 prefix. Must be specified when DNS64 is use.
591 # Enable dns64 in module-config. Used to synthesize IPv6 from IPv4.
592 # dns64-prefix: 64:ff9b::0/96
594 # ratelimit for uncached, new queries, this limits recursion effort.
595 # ratelimiting is experimental, and may help against randomqueryflood.
596 # if 0(default) it is disabled, otherwise state qps allowed per zone.
599 # ratelimits are tracked in a cache, size in bytes of cache (or k,m).
601 # ratelimit cache slabs, reduces lock contention if equal to cpucount.
604 # 0 blocks when ratelimited, otherwise let 1/xth traffic through
605 # ratelimit-factor: 10
607 # override the ratelimit for a specific domain name.
608 # give this setting multiple times to have multiple overrides.
609 # ratelimit-for-domain: example.com 1000
610 # override the ratelimits for all domains below a domain name
611 # can give this multiple times, the name closest to the zone is used.
612 # ratelimit-below-domain: example 1000
614 # Python config section. To enable:
615 # o use --with-pythonmodule to configure before compiling.
616 # o list python in the module-config string (above) to enable.
617 # o and give a python-script to run.
619 # Script file to load
620 # python-script: "/var/unbound/ubmodule-tst.py"
622 # Remote control config section.
624 # Enable remote control with unbound-control(8) here.
625 # set up the keys and certificates with unbound-control-setup.
628 # Set to no and use an absolute path as control-interface to use
629 # a unix local named pipe for unbound-control.
630 # control-use-cert: yes
632 # what interfaces are listened to for remote control.
633 # give 0.0.0.0 and ::0 to listen to all interfaces.
634 # control-interface: 127.0.0.1
635 # control-interface: ::1
637 # port number for remote control operations.
640 # unbound server key file.
641 # server-key-file: "/var/unbound/unbound_server.key"
643 # unbound server certificate file.
644 # server-cert-file: "/var/unbound/unbound_server.pem"
646 # unbound-control key file.
647 # control-key-file: "/var/unbound/unbound_control.key"
649 # unbound-control certificate file.
650 # control-cert-file: "/var/unbound/unbound_control.pem"
653 # Create entries like below, to make all queries for 'example.com' and
654 # 'example.org' go to the given list of nameservers. list zero or more
655 # nameservers by hostname or by ipaddress. If you set stub-prime to yes,
656 # the list is treated as priming hints (default is no).
657 # With stub-first yes, it attempts without the stub if it fails.
658 # Consider adding domain-insecure: name and local-zone: name nodefault
659 # to the server: section if the stub is a locally served zone.
661 # name: "example.com"
662 # stub-addr: 192.0.2.68
666 # name: "example.org"
667 # stub-host: ns.example.com.
670 # Create entries like below, to make all queries for 'example.com' and
671 # 'example.org' go to the given list of servers. These servers have to handle
672 # recursion to other nameservers. List zero or more nameservers by hostname
673 # or by ipaddress. Use an entry with name "." to forward all queries.
674 # If you enable forward-first, it attempts without the forward if it fails.
676 # name: "example.com"
677 # forward-addr: 192.0.2.68
678 # forward-addr: 192.0.2.73@5355 # forward to port 5355.
681 # name: "example.org"
682 # forward-host: fwd.example.com