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