xref: /freebsd/contrib/unbound/doc/example.conf (revision 273c26a3c3bea87a241d6879abd4f991db180bf0)
1#
2# Example configuration file.
3#
4# See unbound.conf(5) man page, version 1.5.10.
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.
12server:
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	# Detach from the terminal, run in background, "yes" or "no".
204	# do-daemonize: yes
205
206	# control which clients are allowed to make (recursive) queries
207	# to this server. Specify classless netblocks with /size and action.
208	# By default everything is refused, except for localhost.
209	# Choose deny (drop message), refuse (polite error reply),
210	# allow (recursive ok), allow_snoop (recursive and nonrecursive ok)
211	# deny_non_local (drop queries unless can be answered from local-data)
212	# refuse_non_local (like deny_non_local but polite error reply).
213	# access-control: 0.0.0.0/0 refuse
214	# access-control: 127.0.0.0/8 allow
215	# access-control: ::0/0 refuse
216	# access-control: ::1 allow
217	# access-control: ::ffff:127.0.0.1 allow
218
219	# tag access-control with list of tags (in "" with spaces between)
220	# Clients using this access control element use localzones that
221	# are tagged with one of these tags.
222	# access-control-tag: 192.0.2.0/24 "tag2 tag3"
223
224	# set action for particular tag for given access control element
225	# if you have multiple tag values, the tag used to lookup the action
226	# is the first tag match between access-control-tag and local-zone-tag
227	# where "first" comes from the order of the define-tag values.
228	# access-control-tag-action: 192.0.2.0/24 tag3 refuse
229
230	# set redirect data for particular tag for access control element
231	# access-control-tag-data: 192.0.2.0/24 tag2 "A 127.0.0.1"
232
233	# if given, a chroot(2) is done to the given directory.
234	# i.e. you can chroot to the working directory, for example,
235	# for extra security, but make sure all files are in that directory.
236	#
237	# If chroot is enabled, you should pass the configfile (from the
238	# commandline) as a full path from the original root. After the
239	# chroot has been performed the now defunct portion of the config
240	# file path is removed to be able to reread the config after a reload.
241	#
242	# All other file paths (working dir, logfile, roothints, and
243	# key files) can be specified in several ways:
244	# 	o as an absolute path relative to the new root.
245	# 	o as a relative path to the working directory.
246	# 	o as an absolute path relative to the original root.
247	# In the last case the path is adjusted to remove the unused portion.
248	#
249	# The pid file can be absolute and outside of the chroot, it is
250	# written just prior to performing the chroot and dropping permissions.
251	#
252	# Additionally, unbound may need to access /dev/random (for entropy).
253	# How to do this is specific to your OS.
254	#
255	# If you give "" no chroot is performed. The path must not end in a /.
256	# chroot: "/var/unbound"
257
258	# if given, user privileges are dropped (after binding port),
259	# and the given username is assumed. Default is user "unbound".
260	# If you give "" no privileges are dropped.
261	# username: "unbound"
262
263	# the working directory. The relative files in this config are
264	# relative to this directory. If you give "" the working directory
265	# is not changed.
266	# If you give a server: directory: dir before include: file statements
267	# then those includes can be relative to the working directory.
268	# directory: "/var/unbound"
269
270	# the log file, "" means log to stderr.
271	# Use of this option sets use-syslog to "no".
272	# logfile: ""
273
274	# Log to syslog(3) if yes. The log facility LOG_DAEMON is used to
275	# log to, with identity "unbound". If yes, it overrides the logfile.
276	# use-syslog: yes
277
278	# print UTC timestamp in ascii to logfile, default is epoch in seconds.
279	# log-time-ascii: no
280
281	# print one line with time, IP, name, type, class for every query.
282	# log-queries: no
283
284	# the pid file. Can be an absolute path outside of chroot/work dir.
285	# pidfile: "/var/unbound/unbound.pid"
286
287	# file to read root hints from.
288	# get one from https://www.internic.net/domain/named.cache
289	# root-hints: ""
290
291	# enable to not answer id.server and hostname.bind queries.
292	# hide-identity: no
293
294	# enable to not answer version.server and version.bind queries.
295	# hide-version: no
296
297	# the identity to report. Leave "" or default to return hostname.
298	# identity: ""
299
300	# the version to report. Leave "" or default to return package version.
301	# version: ""
302
303	# the target fetch policy.
304	# series of integers describing the policy per dependency depth.
305	# The number of values in the list determines the maximum dependency
306	# depth the recursor will pursue before giving up. Each integer means:
307	# 	-1 : fetch all targets opportunistically,
308	# 	0: fetch on demand,
309	#	positive value: fetch that many targets opportunistically.
310	# Enclose the list of numbers between quotes ("").
311	# target-fetch-policy: "3 2 1 0 0"
312
313	# Harden against very small EDNS buffer sizes.
314	# harden-short-bufsize: no
315
316	# Harden against unseemly large queries.
317	# harden-large-queries: no
318
319	# Harden against out of zone rrsets, to avoid spoofing attempts.
320	# harden-glue: yes
321
322	# Harden against receiving dnssec-stripped data. If you turn it
323	# off, failing to validate dnskey data for a trustanchor will
324	# trigger insecure mode for that zone (like without a trustanchor).
325	# Default on, which insists on dnssec data for trust-anchored zones.
326	# harden-dnssec-stripped: yes
327
328	# Harden against queries that fall under dnssec-signed nxdomain names.
329	# harden-below-nxdomain: no
330
331        # Harden the referral path by performing additional queries for
332	# infrastructure data.  Validates the replies (if possible).
333	# Default off, because the lookups burden the server.  Experimental
334	# implementation of draft-wijngaards-dnsext-resolver-side-mitigation.
335	# harden-referral-path: no
336
337	# Harden against algorithm downgrade when multiple algorithms are
338	# advertised in the DS record.  If no, allows the weakest algorithm
339	# to validate the zone.
340	# harden-algo-downgrade: no
341
342	# Sent minimum amount of information to upstream servers to enhance
343	# privacy. Only sent minimum required labels of the QNAME and set QTYPE
344	# to NS when possible.
345	# qname-minimisation: no
346
347	# Use 0x20-encoded random bits in the query to foil spoof attempts.
348	# This feature is an experimental implementation of draft dns-0x20.
349	# use-caps-for-id: no
350
351	# Domains (and domains in them) without support for dns-0x20 and
352	# the fallback fails because they keep sending different answers.
353	# caps-whitelist: "licdn.com"
354	# caps-whitelist: "senderbase.org"
355
356	# Enforce privacy of these addresses. Strips them away from answers.
357	# It may cause DNSSEC validation to additionally mark it as bogus.
358	# Protects against 'DNS Rebinding' (uses browser as network proxy).
359	# Only 'private-domain' and 'local-data' names are allowed to have
360	# these private addresses. No default.
361	# private-address: 10.0.0.0/8
362	# private-address: 172.16.0.0/12
363	# private-address: 192.168.0.0/16
364	# private-address: 169.254.0.0/16
365	# private-address: fd00::/8
366	# private-address: fe80::/10
367	# private-address: ::ffff:0:0/96
368
369	# Allow the domain (and its subdomains) to contain private addresses.
370	# local-data statements are allowed to contain private addresses too.
371	# private-domain: "example.com"
372
373	# If nonzero, unwanted replies are not only reported in statistics,
374	# but also a running total is kept per thread. If it reaches the
375	# threshold, a warning is printed and a defensive action is taken,
376	# the cache is cleared to flush potential poison out of it.
377	# A suggested value is 10000000, the default is 0 (turned off).
378	# unwanted-reply-threshold: 0
379
380	# Do not query the following addresses. No DNS queries are sent there.
381	# List one address per entry. List classless netblocks with /size,
382	# do-not-query-address: 127.0.0.1/8
383	# do-not-query-address: ::1
384
385	# if yes, the above default do-not-query-address entries are present.
386	# if no, localhost can be queried (for testing and debugging).
387	# do-not-query-localhost: yes
388
389	# if yes, perform prefetching of almost expired message cache entries.
390	# prefetch: no
391
392	# if yes, perform key lookups adjacent to normal lookups.
393	# prefetch-key: no
394
395	# if yes, Unbound rotates RRSet order in response.
396	# rrset-roundrobin: no
397
398	# if yes, Unbound doesn't insert authority/additional sections
399	# into response messages when those sections are not required.
400	# minimal-responses: no
401
402	# true to disable DNSSEC lameness check in iterator.
403	# disable-dnssec-lame-check: no
404
405	# module configuration of the server. A string with identifiers
406	# separated by spaces. Syntax: "[dns64] [validator] iterator"
407	# module-config: "validator iterator"
408
409	# File with trusted keys, kept uptodate using RFC5011 probes,
410	# initial file like trust-anchor-file, then it stores metadata.
411	# Use several entries, one per domain name, to track multiple zones.
412	#
413	# If you want to perform DNSSEC validation, run unbound-anchor before
414	# you start unbound (i.e. in the system boot scripts).  And enable:
415	# Please note usage of unbound-anchor root anchor is at your own risk
416	# and under the terms of our LICENSE (see that file in the source).
417	# auto-trust-anchor-file: "/var/unbound/root.key"
418
419	# File with DLV trusted keys. Same format as trust-anchor-file.
420	# There can be only one DLV configured, it is trusted from root down.
421	# DLV is going to be decommissioned.  Please do not use it any more.
422	# dlv-anchor-file: "dlv.isc.org.key"
423
424	# File with trusted keys for validation. Specify more than one file
425	# with several entries, one file per entry.
426	# Zone file format, with DS and DNSKEY entries.
427	# Note this gets out of date, use auto-trust-anchor-file please.
428	# trust-anchor-file: ""
429
430	# Trusted key for validation. DS or DNSKEY. specify the RR on a
431	# single line, surrounded by "". TTL is ignored. class is IN default.
432	# Note this gets out of date, use auto-trust-anchor-file please.
433	# (These examples are from August 2007 and may not be valid anymore).
434	# trust-anchor: "nlnetlabs.nl. DNSKEY 257 3 5 AQPzzTWMz8qSWIQlfRnPckx2BiVmkVN6LPupO3mbz7FhLSnm26n6iG9N Lby97Ji453aWZY3M5/xJBSOS2vWtco2t8C0+xeO1bc/d6ZTy32DHchpW 6rDH1vp86Ll+ha0tmwyy9QP7y2bVw5zSbFCrefk8qCUBgfHm9bHzMG1U BYtEIQ=="
435	# trust-anchor: "jelte.nlnetlabs.nl. DS 42860 5 1 14D739EB566D2B1A5E216A0BA4D17FA9B038BE4A"
436
437	# File with trusted keys for validation. Specify more than one file
438	# with several entries, one file per entry. Like trust-anchor-file
439	# but has a different file format. Format is BIND-9 style format,
440	# the trusted-keys { name flag proto algo "key"; }; clauses are read.
441	# you need external update procedures to track changes in keys.
442	# trusted-keys-file: ""
443
444	# Ignore chain of trust. Domain is treated as insecure.
445	# domain-insecure: "example.com"
446
447	# Override the date for validation with a specific fixed date.
448	# Do not set this unless you are debugging signature inception
449	# and expiration. "" or "0" turns the feature off. -1 ignores date.
450	# val-override-date: ""
451
452	# The time to live for bogus data, rrsets and messages. This avoids
453	# some of the revalidation, until the time interval expires. in secs.
454	# val-bogus-ttl: 60
455
456	# The signature inception and expiration dates are allowed to be off
457	# by 10% of the signature lifetime (expir-incep) from our local clock.
458	# This leeway is capped with a minimum and a maximum.  In seconds.
459	# val-sig-skew-min: 3600
460	# val-sig-skew-max: 86400
461
462	# Should additional section of secure message also be kept clean of
463	# unsecure data. Useful to shield the users of this validator from
464	# potential bogus data in the additional section. All unsigned data
465	# in the additional section is removed from secure messages.
466	# val-clean-additional: yes
467
468	# Turn permissive mode on to permit bogus messages. Thus, messages
469	# for which security checks failed will be returned to clients,
470	# instead of SERVFAIL. It still performs the security checks, which
471	# result in interesting log files and possibly the AD bit in
472	# replies if the message is found secure. The default is off.
473	# val-permissive-mode: no
474
475	# Ignore the CD flag in incoming queries and refuse them bogus data.
476	# Enable it if the only clients of unbound are legacy servers (w2008)
477	# that set CD but cannot validate themselves.
478	# ignore-cd-flag: no
479
480	# Have the validator log failed validations for your diagnosis.
481	# 0: off. 1: A line per failed user query. 2: With reason and bad IP.
482	# val-log-level: 0
483
484	# It is possible to configure NSEC3 maximum iteration counts per
485	# keysize. Keep this table very short, as linear search is done.
486	# A message with an NSEC3 with larger count is marked insecure.
487	# List in ascending order the keysize and count values.
488	# val-nsec3-keysize-iterations: "1024 150 2048 500 4096 2500"
489
490	# instruct the auto-trust-anchor-file probing to add anchors after ttl.
491	# add-holddown: 2592000 # 30 days
492
493	# instruct the auto-trust-anchor-file probing to del anchors after ttl.
494	# del-holddown: 2592000 # 30 days
495
496	# auto-trust-anchor-file probing removes missing anchors after ttl.
497	# If the value 0 is given, missing anchors are not removed.
498	# keep-missing: 31622400 # 366 days
499
500	# debug option that allows very small holddown times for key rollover,
501	# otherwise the RFC mandates probe intervals must be at least 1 hour.
502	# permit-small-holddown: no
503
504	# the amount of memory to use for the key cache.
505	# plain value in bytes or you can append k, m or G. default is "4Mb".
506	# key-cache-size: 4m
507
508	# the number of slabs to use for the key cache.
509	# the number of slabs must be a power of 2.
510	# more slabs reduce lock contention, but fragment memory usage.
511	# key-cache-slabs: 4
512
513	# the amount of memory to use for the negative cache (used for DLV).
514	# plain value in bytes or you can append k, m or G. default is "1Mb".
515	# neg-cache-size: 1m
516
517	# By default, for a number of zones a small default 'nothing here'
518	# reply is built-in.  Query traffic is thus blocked.  If you
519	# wish to serve such zone you can unblock them by uncommenting one
520	# of the nodefault statements below.
521	# You may also have to use domain-insecure: zone to make DNSSEC work,
522	# unless you have your own trust anchors for this zone.
523	# local-zone: "localhost." nodefault
524	# local-zone: "127.in-addr.arpa." nodefault
525	# 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
526	# local-zone: "onion." nodefault
527	# local-zone: "10.in-addr.arpa." nodefault
528	# local-zone: "16.172.in-addr.arpa." nodefault
529	# local-zone: "17.172.in-addr.arpa." nodefault
530	# local-zone: "18.172.in-addr.arpa." nodefault
531	# local-zone: "19.172.in-addr.arpa." nodefault
532	# local-zone: "20.172.in-addr.arpa." nodefault
533	# local-zone: "21.172.in-addr.arpa." nodefault
534	# local-zone: "22.172.in-addr.arpa." nodefault
535	# local-zone: "23.172.in-addr.arpa." nodefault
536	# local-zone: "24.172.in-addr.arpa." nodefault
537	# local-zone: "25.172.in-addr.arpa." nodefault
538	# local-zone: "26.172.in-addr.arpa." nodefault
539	# local-zone: "27.172.in-addr.arpa." nodefault
540	# local-zone: "28.172.in-addr.arpa." nodefault
541	# local-zone: "29.172.in-addr.arpa." nodefault
542	# local-zone: "30.172.in-addr.arpa." nodefault
543	# local-zone: "31.172.in-addr.arpa." nodefault
544	# local-zone: "168.192.in-addr.arpa." nodefault
545	# local-zone: "0.in-addr.arpa." nodefault
546	# local-zone: "254.169.in-addr.arpa." nodefault
547	# local-zone: "2.0.192.in-addr.arpa." nodefault
548	# local-zone: "100.51.198.in-addr.arpa." nodefault
549	# local-zone: "113.0.203.in-addr.arpa." nodefault
550	# local-zone: "255.255.255.255.in-addr.arpa." nodefault
551	# 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
552	# local-zone: "d.f.ip6.arpa." nodefault
553	# local-zone: "8.e.f.ip6.arpa." nodefault
554	# local-zone: "9.e.f.ip6.arpa." nodefault
555	# local-zone: "a.e.f.ip6.arpa." nodefault
556	# local-zone: "b.e.f.ip6.arpa." nodefault
557	# local-zone: "8.b.d.0.1.0.0.2.ip6.arpa." nodefault
558	# And for 64.100.in-addr.arpa. to 127.100.in-addr.arpa.
559
560	# If unbound is running service for the local host then it is useful
561	# to perform lan-wide lookups to the upstream, and unblock the
562	# long list of local-zones above.  If this unbound is a dns server
563	# for a network of computers, disabled is better and stops information
564	# leakage of local lan information.
565	# unblock-lan-zones: no
566
567	# The insecure-lan-zones option disables validation for
568	# these zones, as if they were all listed as domain-insecure.
569	# insecure-lan-zones: no
570
571	# a number of locally served zones can be configured.
572	# 	local-zone: <zone> <type>
573	# 	local-data: "<resource record string>"
574	# o deny serves local data (if any), else, drops queries.
575	# o refuse serves local data (if any), else, replies with error.
576	# o static serves local data, else, nxdomain or nodata answer.
577	# o transparent gives local data, but resolves normally for other names
578	# o redirect serves the zone data for any subdomain in the zone.
579	# o nodefault can be used to normally resolve AS112 zones.
580	# o typetransparent resolves normally for other types and other names
581	# o inform resolves normally, but logs client IP address
582	# o inform_deny drops queries and logs client IP address
583	# o always_transparent, always_refuse, always_nxdomain, resolve in
584	#   that way but ignore local data for that name.
585	#
586	# defaults are localhost address, reverse for 127.0.0.1 and ::1
587	# and nxdomain for AS112 zones. If you configure one of these zones
588	# the default content is omitted, or you can omit it with 'nodefault'.
589	#
590	# If you configure local-data without specifying local-zone, by
591	# default a transparent local-zone is created for the data.
592	#
593	# You can add locally served data with
594	# local-zone: "local." static
595	# local-data: "mycomputer.local. IN A 192.0.2.51"
596	# local-data: 'mytext.local TXT "content of text record"'
597	#
598	# You can override certain queries with
599	# local-data: "adserver.example.com A 127.0.0.1"
600	#
601	# You can redirect a domain to a fixed address with
602	# (this makes example.com, www.example.com, etc, all go to 192.0.2.3)
603	# local-zone: "example.com" redirect
604	# local-data: "example.com A 192.0.2.3"
605	#
606	# Shorthand to make PTR records, "IPv4 name" or "IPv6 name".
607	# You can also add PTR records using local-data directly, but then
608	# you need to do the reverse notation yourself.
609	# local-data-ptr: "192.0.2.3 www.example.com"
610
611	# tag a localzone with a list of tag names (in "" with spaces between)
612	# local-zone-tag: "example.com" "tag2 tag3"
613
614	# add a netblock specific override to a localzone, with zone type
615	# local-zone-override: "example.com" 192.0.2.0/24 refuse
616
617	# service clients over SSL (on the TCP sockets), with plain DNS inside
618	# the SSL stream.  Give the certificate to use and private key.
619	# default is "" (disabled).  requires restart to take effect.
620	# ssl-service-key: "path/to/privatekeyfile.key"
621	# ssl-service-pem: "path/to/publiccertfile.pem"
622	# ssl-port: 853
623
624	# request upstream over SSL (with plain DNS inside the SSL stream).
625	# Default is no.  Can be turned on and off with unbound-control.
626	# ssl-upstream: no
627
628	# DNS64 prefix. Must be specified when DNS64 is use.
629	# Enable dns64 in module-config.  Used to synthesize IPv6 from IPv4.
630	# dns64-prefix: 64:ff9b::0/96
631
632	# ratelimit for uncached, new queries, this limits recursion effort.
633	# ratelimiting is experimental, and may help against randomqueryflood.
634	# if 0(default) it is disabled, otherwise state qps allowed per zone.
635	# ratelimit: 0
636
637	# ratelimits are tracked in a cache, size in bytes of cache (or k,m).
638	# ratelimit-size: 4m
639	# ratelimit cache slabs, reduces lock contention if equal to cpucount.
640	# ratelimit-slabs: 4
641
642	# 0 blocks when ratelimited, otherwise let 1/xth traffic through
643	# ratelimit-factor: 10
644
645	# override the ratelimit for a specific domain name.
646	# give this setting multiple times to have multiple overrides.
647	# ratelimit-for-domain: example.com 1000
648	# override the ratelimits for all domains below a domain name
649	# can give this multiple times, the name closest to the zone is used.
650	# ratelimit-below-domain: com 1000
651
652# Python config section. To enable:
653# o use --with-pythonmodule to configure before compiling.
654# o list python in the module-config string (above) to enable.
655# o and give a python-script to run.
656python:
657	# Script file to load
658	# python-script: "/var/unbound/ubmodule-tst.py"
659
660# Remote control config section.
661remote-control:
662	# Enable remote control with unbound-control(8) here.
663	# set up the keys and certificates with unbound-control-setup.
664	# control-enable: no
665
666	# Set to no and use an absolute path as control-interface to use
667	# a unix local named pipe for unbound-control.
668	# control-use-cert: yes
669
670	# what interfaces are listened to for remote control.
671	# give 0.0.0.0 and ::0 to listen to all interfaces.
672	# control-interface: 127.0.0.1
673	# control-interface: ::1
674
675	# port number for remote control operations.
676	# control-port: 8953
677
678	# unbound server key file.
679	# server-key-file: "/var/unbound/unbound_server.key"
680
681	# unbound server certificate file.
682	# server-cert-file: "/var/unbound/unbound_server.pem"
683
684	# unbound-control key file.
685	# control-key-file: "/var/unbound/unbound_control.key"
686
687	# unbound-control certificate file.
688	# control-cert-file: "/var/unbound/unbound_control.pem"
689
690# Stub zones.
691# Create entries like below, to make all queries for 'example.com' and
692# 'example.org' go to the given list of nameservers. list zero or more
693# nameservers by hostname or by ipaddress. If you set stub-prime to yes,
694# the list is treated as priming hints (default is no).
695# With stub-first yes, it attempts without the stub if it fails.
696# Consider adding domain-insecure: name and local-zone: name nodefault
697# to the server: section if the stub is a locally served zone.
698# stub-zone:
699#	name: "example.com"
700#	stub-addr: 192.0.2.68
701#	stub-prime: no
702#	stub-first: no
703# stub-zone:
704#	name: "example.org"
705#	stub-host: ns.example.com.
706
707# Forward zones
708# Create entries like below, to make all queries for 'example.com' and
709# 'example.org' go to the given list of servers. These servers have to handle
710# recursion to other nameservers. List zero or more nameservers by hostname
711# or by ipaddress. Use an entry with name "." to forward all queries.
712# If you enable forward-first, it attempts without the forward if it fails.
713# forward-zone:
714# 	name: "example.com"
715# 	forward-addr: 192.0.2.68
716# 	forward-addr: 192.0.2.73@5355  # forward to port 5355.
717# 	forward-first: no
718# forward-zone:
719# 	name: "example.org"
720# 	forward-host: fwd.example.com
721