example.conf.in revision 295535
155682Smarkm#
255682Smarkm# Example configuration file.
355682Smarkm#
455682Smarkm# See unbound.conf(5) man page, version 1.5.7.
555682Smarkm#
655682Smarkm# this is a comment.
755682Smarkm
855682Smarkm#Use this to include other text into the file.
955682Smarkm#include: "otherfile.conf"
1055682Smarkm
1155682Smarkm# The server clause sets the main parameters.
1255682Smarkmserver:
1355682Smarkm	# whitespace is not necessary, but looks cleaner.
1455682Smarkm
1555682Smarkm	# verbosity number, 0 is least verbose. 1 is default.
1655682Smarkm	verbosity: 1
1755682Smarkm
1855682Smarkm	# print statistics to the log (for every thread) every N seconds.
1955682Smarkm	# Set to "" or 0 to disable. Default is disabled.
2055682Smarkm	# statistics-interval: 0
2155682Smarkm
2255682Smarkm	# enable cumulative statistics, without clearing them after printing.
2355682Smarkm	# statistics-cumulative: no
2455682Smarkm
2555682Smarkm	# enable extended statistics (query types, answer codes, status)
2655682Smarkm	# printed from unbound-control. default off, because of speed.
2755682Smarkm	# extended-statistics: no
2855682Smarkm
2955682Smarkm	# number of threads to create. 1 disables threading.
3055682Smarkm	# num-threads: 1
3155682Smarkm
3255682Smarkm	# specify the interfaces to answer queries from by ip-address.
3355682Smarkm	# The default is to listen to localhost (127.0.0.1 and ::1).
3455682Smarkm	# specify 0.0.0.0 and ::0 to bind to all available interfaces.
3555682Smarkm	# specify every interface[@port] on a new 'interface:' labelled line.
3655682Smarkm	# The listen interfaces are not changed on reload, only on restart.
3755682Smarkm	# interface: 192.0.2.153
3855682Smarkm	# interface: 192.0.2.154
3955682Smarkm	# interface: 192.0.2.154@5003
4055682Smarkm	# interface: 2001:DB8::5
4155682Smarkm
4255682Smarkm	# enable this feature to copy the source address of queries to reply.
4355682Smarkm	# Socket options are not supported on all platforms. experimental.
4455682Smarkm	# interface-automatic: no
4555682Smarkm
4655682Smarkm	# port to answer queries from
4755682Smarkm	# port: 53
4855682Smarkm
4955682Smarkm	# specify the interfaces to send outgoing queries to authoritative
5055682Smarkm	# server from by ip-address. If none, the default (all) interface
5155682Smarkm	# is used. Specify every interface on a 'outgoing-interface:' line.
5255682Smarkm	# outgoing-interface: 192.0.2.153
5355682Smarkm	# outgoing-interface: 2001:DB8::5
5455682Smarkm	# outgoing-interface: 2001:DB8::6
5555682Smarkm
5655682Smarkm	# number of ports to allocate per thread, determines the size of the
5755682Smarkm	# port range that can be open simultaneously.  About double the
5855682Smarkm	# num-queries-per-thread, or, use as many as the OS will allow you.
5955682Smarkm	# outgoing-range: 4096
6055682Smarkm
6155682Smarkm	# permit unbound to use this port number or port range for
6255682Smarkm	# making outgoing queries, using an outgoing interface.
6355682Smarkm	# outgoing-port-permit: 32768
6455682Smarkm
6555682Smarkm	# deny unbound the use this of port number or port range for
6655682Smarkm	# making outgoing queries, using an outgoing interface.
6755682Smarkm	# Use this to make sure unbound does not grab a UDP port that some
6855682Smarkm	# other server on this computer needs. The default is to avoid
6955682Smarkm	# IANA-assigned port numbers.
7055682Smarkm	# If multiple outgoing-port-permit and outgoing-port-avoid options
7155682Smarkm	# are present, they are processed in order.
7255682Smarkm	# outgoing-port-avoid: "3200-3208"
7355682Smarkm
7455682Smarkm	# number of outgoing simultaneous tcp buffers to hold per thread.
7555682Smarkm	# outgoing-num-tcp: 10
7655682Smarkm
7755682Smarkm	# number of incoming simultaneous tcp buffers to hold per thread.
7855682Smarkm	# incoming-num-tcp: 10
7955682Smarkm
8055682Smarkm	# buffer size for UDP port 53 incoming (SO_RCVBUF socket option).
8155682Smarkm	# 0 is system default.  Use 4m to catch query spikes for busy servers.
8255682Smarkm	# so-rcvbuf: 0
8355682Smarkm
8455682Smarkm	# buffer size for UDP port 53 outgoing (SO_SNDBUF socket option).
8555682Smarkm	# 0 is system default.  Use 4m to handle spikes on very busy servers.
8655682Smarkm	# so-sndbuf: 0
8755682Smarkm
8855682Smarkm	# use SO_REUSEPORT to distribute queries over threads.
8955682Smarkm	# so-reuseport: no
9055682Smarkm
9155682Smarkm	# use IP_TRANSPARENT so the interface: addresses can be non-local
9255682Smarkm	# and you can config non-existing IPs that are going to work later on
9355682Smarkm	# ip-transparent: no
9455682Smarkm
9555682Smarkm	# EDNS reassembly buffer to advertise to UDP peers (the actual buffer
9655682Smarkm	# is set with msg-buffer-size). 1480 can solve fragmentation (timeouts).
9755682Smarkm	# edns-buffer-size: 4096
9855682Smarkm
9955682Smarkm	# Maximum UDP response size (not applied to TCP response).
10055682Smarkm	# Suggested values are 512 to 4096. Default is 4096. 65536 disables it.
10155682Smarkm	# max-udp-size: 4096
10255682Smarkm
10355682Smarkm	# buffer size for handling DNS data. No messages larger than this
10455682Smarkm	# size can be sent or received, by UDP or TCP. In bytes.
10555682Smarkm	# msg-buffer-size: 65552
10655682Smarkm
10755682Smarkm	# the amount of memory to use for the message cache.
108178825Sdfr	# plain value in bytes or you can append k, m or G. default is "4Mb".
10955682Smarkm	# msg-cache-size: 4m
11055682Smarkm
111178825Sdfr	# the number of slabs to use for the message cache.
112178825Sdfr	# the number of slabs must be a power of 2.
11355682Smarkm	# more slabs reduce lock contention, but fragment memory usage.
114178825Sdfr	# msg-cache-slabs: 4
115178825Sdfr
11655682Smarkm	# the number of queries that a thread gets to service.
11755682Smarkm	# num-queries-per-thread: 1024
118178825Sdfr
119178825Sdfr	# if very busy, 50% queries run to completion, 50% get timeout in msec
12055682Smarkm	# jostle-timeout: 200
12155682Smarkm
12255682Smarkm	# msec to wait before close of port on timeout UDP. 0 disables.
12355682Smarkm	# delay-close: 0
12455682Smarkm
12555682Smarkm	# the amount of memory to use for the RRset cache.
12655682Smarkm	# plain value in bytes or you can append k, m or G. default is "4Mb".
12755682Smarkm	# rrset-cache-size: 4m
12855682Smarkm
12955682Smarkm	# the number of slabs to use for the RRset cache.
13055682Smarkm	# the number of slabs must be a power of 2.
13155682Smarkm	# more slabs reduce lock contention, but fragment memory usage.
13255682Smarkm	# rrset-cache-slabs: 4
13355682Smarkm
13455682Smarkm	# the time to live (TTL) value lower bound, in seconds. Default 0.
13555682Smarkm	# If more than an hour could easily give trouble due to stale data.
13655682Smarkm	# cache-min-ttl: 0
13755682Smarkm
13855682Smarkm	# the time to live (TTL) value cap for RRsets and messages in the
13955682Smarkm	# cache. Items are not cached for longer. In seconds.
14055682Smarkm	# cache-max-ttl: 86400
14155682Smarkm
14255682Smarkm	# the time to live (TTL) value cap for negative responses in the cache
14355682Smarkm	# cache-max-negative-ttl: 3600
14455682Smarkm
14555682Smarkm	# the time to live (TTL) value for cached roundtrip times, lameness and
14655682Smarkm	# EDNS version information for hosts. In seconds.
14755682Smarkm	# infra-host-ttl: 900
14855682Smarkm
14955682Smarkm	# minimum wait time for responses, increase if uplink is long. In msec.
15055682Smarkm	# infra-cache-min-rtt: 50
15155682Smarkm
15255682Smarkm	# the number of slabs to use for the Infrastructure cache.
15355682Smarkm	# the number of slabs must be a power of 2.
15455682Smarkm	# more slabs reduce lock contention, but fragment memory usage.
15555682Smarkm	# infra-cache-slabs: 4
15655682Smarkm
15755682Smarkm	# the maximum number of hosts that are cached (roundtrip, EDNS, lame).
15855682Smarkm	# infra-cache-numhosts: 10000
15955682Smarkm
16055682Smarkm	# Enable IPv4, "yes" or "no".
16155682Smarkm	# do-ip4: yes
16255682Smarkm
16355682Smarkm	# Enable IPv6, "yes" or "no".
16455682Smarkm	# do-ip6: yes
16555682Smarkm
16655682Smarkm	# Enable UDP, "yes" or "no".
16755682Smarkm	# do-udp: yes
16855682Smarkm
16955682Smarkm	# Enable TCP, "yes" or "no".
17055682Smarkm	# do-tcp: yes
17155682Smarkm
17255682Smarkm	# upstream connections use TCP only (and no UDP), "yes" or "no"
17355682Smarkm	# useful for tunneling scenarios, default no.
17455682Smarkm	# tcp-upstream: no
17555682Smarkm
17655682Smarkm	# Detach from the terminal, run in background, "yes" or "no".
17755682Smarkm	# do-daemonize: yes
17855682Smarkm
17955682Smarkm	# control which clients are allowed to make (recursive) queries
18055682Smarkm	# to this server. Specify classless netblocks with /size and action.
18155682Smarkm	# By default everything is refused, except for localhost.
18255682Smarkm	# Choose deny (drop message), refuse (polite error reply),
18355682Smarkm	# allow (recursive ok), allow_snoop (recursive and nonrecursive ok)
18455682Smarkm	# deny_non_local (drop queries unless can be answered from local-data)
18555682Smarkm	# refuse_non_local (like deny_non_local but polite error reply).
18655682Smarkm	# access-control: 0.0.0.0/0 refuse
18755682Smarkm	# access-control: 127.0.0.0/8 allow
18855682Smarkm	# access-control: ::0/0 refuse
18955682Smarkm	# access-control: ::1 allow
19055682Smarkm	# access-control: ::ffff:127.0.0.1 allow
19155682Smarkm
19255682Smarkm	# if given, a chroot(2) is done to the given directory.
19355682Smarkm	# i.e. you can chroot to the working directory, for example,
19455682Smarkm	# for extra security, but make sure all files are in that directory.
19555682Smarkm	#
19655682Smarkm	# If chroot is enabled, you should pass the configfile (from the
197178825Sdfr	# commandline) as a full path from the original root. After the
198178825Sdfr	# chroot has been performed the now defunct portion of the config
199178825Sdfr	# file path is removed to be able to reread the config after a reload.
20055682Smarkm	#
20155682Smarkm	# All other file paths (working dir, logfile, roothints, and
202178825Sdfr	# key files) can be specified in several ways:
203178825Sdfr	# 	o as an absolute path relative to the new root.
20455682Smarkm	# 	o as a relative path to the working directory.
205178825Sdfr	# 	o as an absolute path relative to the original root.
206178825Sdfr	# In the last case the path is adjusted to remove the unused portion.
20755682Smarkm	#
20855682Smarkm	# The pid file can be absolute and outside of the chroot, it is
209178825Sdfr	# written just prior to performing the chroot and dropping permissions.
210178825Sdfr	#
21155682Smarkm	# Additionally, unbound may need to access /dev/random (for entropy).
21255682Smarkm	# How to do this is specific to your OS.
21355682Smarkm	#
21455682Smarkm	# If you give "" no chroot is performed. The path must not end in a /.
21555682Smarkm	# chroot: "@UNBOUND_CHROOT_DIR@"
21655682Smarkm
21755682Smarkm	# if given, user privileges are dropped (after binding port),
218	# and the given username is assumed. Default is user "unbound".
219	# If you give "" no privileges are dropped.
220	# username: "@UNBOUND_USERNAME@"
221
222	# the working directory. The relative files in this config are
223	# relative to this directory. If you give "" the working directory
224	# is not changed.
225	# directory: "@UNBOUND_RUN_DIR@"
226
227	# the log file, "" means log to stderr.
228	# Use of this option sets use-syslog to "no".
229	# logfile: ""
230
231	# Log to syslog(3) if yes. The log facility LOG_DAEMON is used to
232	# log to, with identity "unbound". If yes, it overrides the logfile.
233	# use-syslog: yes
234
235	# print UTC timestamp in ascii to logfile, default is epoch in seconds.
236	# log-time-ascii: no
237
238	# print one line with time, IP, name, type, class for every query.
239	# log-queries: no
240
241	# the pid file. Can be an absolute path outside of chroot/work dir.
242	# pidfile: "@UNBOUND_PIDFILE@"
243
244	# file to read root hints from.
245	# get one from https://www.internic.net/domain/named.cache
246	# root-hints: ""
247
248	# enable to not answer id.server and hostname.bind queries.
249	# hide-identity: no
250
251	# enable to not answer version.server and version.bind queries.
252	# hide-version: no
253
254	# the identity to report. Leave "" or default to return hostname.
255	# identity: ""
256
257	# the version to report. Leave "" or default to return package version.
258	# version: ""
259
260	# the target fetch policy.
261	# series of integers describing the policy per dependency depth.
262	# The number of values in the list determines the maximum dependency
263	# depth the recursor will pursue before giving up. Each integer means:
264	# 	-1 : fetch all targets opportunistically,
265	# 	0: fetch on demand,
266	#	positive value: fetch that many targets opportunistically.
267	# Enclose the list of numbers between quotes ("").
268	# target-fetch-policy: "3 2 1 0 0"
269
270	# Harden against very small EDNS buffer sizes.
271	# harden-short-bufsize: no
272
273	# Harden against unseemly large queries.
274	# harden-large-queries: no
275
276	# Harden against out of zone rrsets, to avoid spoofing attempts.
277	# harden-glue: yes
278
279	# Harden against receiving dnssec-stripped data. If you turn it
280	# off, failing to validate dnskey data for a trustanchor will
281	# trigger insecure mode for that zone (like without a trustanchor).
282	# Default on, which insists on dnssec data for trust-anchored zones.
283	# harden-dnssec-stripped: yes
284
285	# Harden against queries that fall under dnssec-signed nxdomain names.
286	# harden-below-nxdomain: no
287
288        # Harden the referral path by performing additional queries for
289	# infrastructure data.  Validates the replies (if possible).
290	# Default off, because the lookups burden the server.  Experimental
291	# implementation of draft-wijngaards-dnsext-resolver-side-mitigation.
292	# harden-referral-path: no
293
294	# Harden against algorithm downgrade when multiple algorithms are
295	# advertised in the DS record.  If no, allows the weakest algorithm
296	# to validate the zone.
297	# harden-algo-downgrade: no
298
299	# Sent minimum amount of information to upstream servers to enhance
300	# privacy. Only sent minimum required labels of the QNAME and set QTYPE
301	# to NS when possible.
302	# qname-minimisation: no
303
304	# Use 0x20-encoded random bits in the query to foil spoof attempts.
305	# This feature is an experimental implementation of draft dns-0x20.
306	# use-caps-for-id: no
307
308	# Domains (and domains in them) without support for dns-0x20 and
309	# the fallback fails because they keep sending different answers.
310	# caps-whitelist: "licdn.com"
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	# private-address: ::ffff:0:0/96
324
325	# Allow the domain (and its subdomains) to contain private addresses.
326	# local-data statements are allowed to contain private addresses too.
327	# private-domain: "example.com"
328
329	# If nonzero, unwanted replies are not only reported in statistics,
330	# but also a running total is kept per thread. If it reaches the
331	# threshold, a warning is printed and a defensive action is taken,
332	# the cache is cleared to flush potential poison out of it.
333	# A suggested value is 10000000, the default is 0 (turned off).
334	# unwanted-reply-threshold: 0
335
336	# Do not query the following addresses. No DNS queries are sent there.
337	# List one address per entry. List classless netblocks with /size,
338	# do-not-query-address: 127.0.0.1/8
339	# do-not-query-address: ::1
340
341	# if yes, the above default do-not-query-address entries are present.
342	# if no, localhost can be queried (for testing and debugging).
343	# do-not-query-localhost: yes
344
345	# if yes, perform prefetching of almost expired message cache entries.
346	# prefetch: no
347
348	# if yes, perform key lookups adjacent to normal lookups.
349	# prefetch-key: no
350
351	# if yes, Unbound rotates RRSet order in response.
352	# rrset-roundrobin: no
353
354	# if yes, Unbound doesn't insert authority/additional sections
355	# into response messages when those sections are not required.
356	# minimal-responses: no
357
358	# module configuration of the server. A string with identifiers
359	# separated by spaces. Syntax: "[dns64] [validator] iterator"
360	# module-config: "validator iterator"
361
362	# File with trusted keys, kept uptodate using RFC5011 probes,
363	# initial file like trust-anchor-file, then it stores metadata.
364	# Use several entries, one per domain name, to track multiple zones.
365	#
366	# If you want to perform DNSSEC validation, run unbound-anchor before
367	# you start unbound (i.e. in the system boot scripts).  And enable:
368	# Please note usage of unbound-anchor root anchor is at your own risk
369	# and under the terms of our LICENSE (see that file in the source).
370	# auto-trust-anchor-file: "@UNBOUND_ROOTKEY_FILE@"
371
372	# File with DLV trusted keys. Same format as trust-anchor-file.
373	# There can be only one DLV configured, it is trusted from root down.
374	# DLV is going to be decommissioned.  Please do not use it any more.
375	# dlv-anchor-file: "dlv.isc.org.key"
376
377	# File with trusted keys for validation. Specify more than one file
378	# with several entries, one file per entry.
379	# Zone file format, with DS and DNSKEY entries.
380	# Note this gets out of date, use auto-trust-anchor-file please.
381	# trust-anchor-file: ""
382
383	# Trusted key for validation. DS or DNSKEY. specify the RR on a
384	# single line, surrounded by "". TTL is ignored. class is IN default.
385	# Note this gets out of date, use auto-trust-anchor-file please.
386	# (These examples are from August 2007 and may not be valid anymore).
387	# trust-anchor: "nlnetlabs.nl. DNSKEY 257 3 5 AQPzzTWMz8qSWIQlfRnPckx2BiVmkVN6LPupO3mbz7FhLSnm26n6iG9N Lby97Ji453aWZY3M5/xJBSOS2vWtco2t8C0+xeO1bc/d6ZTy32DHchpW 6rDH1vp86Ll+ha0tmwyy9QP7y2bVw5zSbFCrefk8qCUBgfHm9bHzMG1U BYtEIQ=="
388	# trust-anchor: "jelte.nlnetlabs.nl. DS 42860 5 1 14D739EB566D2B1A5E216A0BA4D17FA9B038BE4A"
389
390	# File with trusted keys for validation. Specify more than one file
391	# with several entries, one file per entry. Like trust-anchor-file
392	# but has a different file format. Format is BIND-9 style format,
393	# the trusted-keys { name flag proto algo "key"; }; clauses are read.
394	# you need external update procedures to track changes in keys.
395	# trusted-keys-file: ""
396
397	# Ignore chain of trust. Domain is treated as insecure.
398	# domain-insecure: "example.com"
399
400	# Override the date for validation with a specific fixed date.
401	# Do not set this unless you are debugging signature inception
402	# and expiration. "" or "0" turns the feature off. -1 ignores date.
403	# val-override-date: ""
404
405	# The time to live for bogus data, rrsets and messages. This avoids
406	# some of the revalidation, until the time interval expires. in secs.
407	# val-bogus-ttl: 60
408
409	# The signature inception and expiration dates are allowed to be off
410	# by 10% of the signature lifetime (expir-incep) from our local clock.
411	# This leeway is capped with a minimum and a maximum.  In seconds.
412	# val-sig-skew-min: 3600
413	# val-sig-skew-max: 86400
414
415	# Should additional section of secure message also be kept clean of
416	# unsecure data. Useful to shield the users of this validator from
417	# potential bogus data in the additional section. All unsigned data
418	# in the additional section is removed from secure messages.
419	# val-clean-additional: yes
420
421	# Turn permissive mode on to permit bogus messages. Thus, messages
422	# for which security checks failed will be returned to clients,
423	# instead of SERVFAIL. It still performs the security checks, which
424	# result in interesting log files and possibly the AD bit in
425	# replies if the message is found secure. The default is off.
426	# val-permissive-mode: no
427
428	# Ignore the CD flag in incoming queries and refuse them bogus data.
429	# Enable it if the only clients of unbound are legacy servers (w2008)
430	# that set CD but cannot validate themselves.
431	# ignore-cd-flag: no
432
433	# Have the validator log failed validations for your diagnosis.
434	# 0: off. 1: A line per failed user query. 2: With reason and bad IP.
435	# val-log-level: 0
436
437	# It is possible to configure NSEC3 maximum iteration counts per
438	# keysize. Keep this table very short, as linear search is done.
439	# A message with an NSEC3 with larger count is marked insecure.
440	# List in ascending order the keysize and count values.
441	# val-nsec3-keysize-iterations: "1024 150 2048 500 4096 2500"
442
443	# instruct the auto-trust-anchor-file probing to add anchors after ttl.
444	# add-holddown: 2592000 # 30 days
445
446	# instruct the auto-trust-anchor-file probing to del anchors after ttl.
447	# del-holddown: 2592000 # 30 days
448
449	# auto-trust-anchor-file probing removes missing anchors after ttl.
450	# If the value 0 is given, missing anchors are not removed.
451	# keep-missing: 31622400 # 366 days
452
453	# debug option that allows very small holddown times for key rollover
454	# permit-small-holddown: no
455
456	# the amount of memory to use for the key cache.
457	# plain value in bytes or you can append k, m or G. default is "4Mb".
458	# key-cache-size: 4m
459
460	# the number of slabs to use for the key cache.
461	# the number of slabs must be a power of 2.
462	# more slabs reduce lock contention, but fragment memory usage.
463	# key-cache-slabs: 4
464
465	# the amount of memory to use for the negative cache (used for DLV).
466	# plain value in bytes or you can append k, m or G. default is "1Mb".
467	# neg-cache-size: 1m
468
469	# By default, for a number of zones a small default 'nothing here'
470	# reply is built-in.  Query traffic is thus blocked.  If you
471	# wish to serve such zone you can unblock them by uncommenting one
472	# of the nodefault statements below.
473	# You may also have to use domain-insecure: zone to make DNSSEC work,
474	# unless you have your own trust anchors for this zone.
475	# local-zone: "localhost." nodefault
476	# local-zone: "127.in-addr.arpa." nodefault
477	# 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
478	# local-zone: "10.in-addr.arpa." nodefault
479	# local-zone: "16.172.in-addr.arpa." nodefault
480	# local-zone: "17.172.in-addr.arpa." nodefault
481	# local-zone: "18.172.in-addr.arpa." nodefault
482	# local-zone: "19.172.in-addr.arpa." nodefault
483	# local-zone: "20.172.in-addr.arpa." nodefault
484	# local-zone: "21.172.in-addr.arpa." nodefault
485	# local-zone: "22.172.in-addr.arpa." nodefault
486	# local-zone: "23.172.in-addr.arpa." nodefault
487	# local-zone: "24.172.in-addr.arpa." nodefault
488	# local-zone: "25.172.in-addr.arpa." nodefault
489	# local-zone: "26.172.in-addr.arpa." nodefault
490	# local-zone: "27.172.in-addr.arpa." nodefault
491	# local-zone: "28.172.in-addr.arpa." nodefault
492	# local-zone: "29.172.in-addr.arpa." nodefault
493	# local-zone: "30.172.in-addr.arpa." nodefault
494	# local-zone: "31.172.in-addr.arpa." nodefault
495	# local-zone: "168.192.in-addr.arpa." nodefault
496	# local-zone: "0.in-addr.arpa." nodefault
497	# local-zone: "254.169.in-addr.arpa." nodefault
498	# local-zone: "2.0.192.in-addr.arpa." nodefault
499	# local-zone: "100.51.198.in-addr.arpa." nodefault
500	# local-zone: "113.0.203.in-addr.arpa." nodefault
501	# local-zone: "255.255.255.255.in-addr.arpa." nodefault
502	# 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
503	# local-zone: "d.f.ip6.arpa." nodefault
504	# local-zone: "8.e.f.ip6.arpa." nodefault
505	# local-zone: "9.e.f.ip6.arpa." nodefault
506	# local-zone: "a.e.f.ip6.arpa." nodefault
507	# local-zone: "b.e.f.ip6.arpa." nodefault
508	# local-zone: "8.b.d.0.1.0.0.2.ip6.arpa." nodefault
509	# And for 64.100.in-addr.arpa. to 127.100.in-addr.arpa.
510
511	# If unbound is running service for the local host then it is useful
512	# to perform lan-wide lookups to the upstream, and unblock the
513	# long list of local-zones above.  If this unbound is a dns server
514	# for a network of computers, disabled is better and stops information
515	# leakage of local lan information.
516	# unblock-lan-zones: no
517
518	# The insecure-lan-zones option disables validation for
519	# these zones, as if they were all listed as domain-insecure.
520	# insecure-lan-zones: no
521
522	# a number of locally served zones can be configured.
523	# 	local-zone: <zone> <type>
524	# 	local-data: "<resource record string>"
525	# o deny serves local data (if any), else, drops queries.
526	# o refuse serves local data (if any), else, replies with error.
527	# o static serves local data, else, nxdomain or nodata answer.
528	# o transparent gives local data, but resolves normally for other names
529	# o redirect serves the zone data for any subdomain in the zone.
530	# o nodefault can be used to normally resolve AS112 zones.
531	# o typetransparent resolves normally for other types and other names
532	# o inform resolves normally, but logs client IP address
533	# o inform_deny drops queries and logs client IP address
534	#
535	# defaults are localhost address, reverse for 127.0.0.1 and ::1
536	# and nxdomain for AS112 zones. If you configure one of these zones
537	# the default content is omitted, or you can omit it with 'nodefault'.
538	#
539	# If you configure local-data without specifying local-zone, by
540	# default a transparent local-zone is created for the data.
541	#
542	# You can add locally served data with
543	# local-zone: "local." static
544	# local-data: "mycomputer.local. IN A 192.0.2.51"
545	# local-data: 'mytext.local TXT "content of text record"'
546	#
547	# You can override certain queries with
548	# local-data: "adserver.example.com A 127.0.0.1"
549	#
550	# You can redirect a domain to a fixed address with
551	# (this makes example.com, www.example.com, etc, all go to 192.0.2.3)
552	# local-zone: "example.com" redirect
553	# local-data: "example.com A 192.0.2.3"
554	#
555	# Shorthand to make PTR records, "IPv4 name" or "IPv6 name".
556	# You can also add PTR records using local-data directly, but then
557	# you need to do the reverse notation yourself.
558	# local-data-ptr: "192.0.2.3 www.example.com"
559
560	# service clients over SSL (on the TCP sockets), with plain DNS inside
561	# the SSL stream.  Give the certificate to use and private key.
562	# default is "" (disabled).  requires restart to take effect.
563	# ssl-service-key: "path/to/privatekeyfile.key"
564	# ssl-service-pem: "path/to/publiccertfile.pem"
565	# ssl-port: 853
566
567	# request upstream over SSL (with plain DNS inside the SSL stream).
568	# Default is no.  Can be turned on and off with unbound-control.
569	# ssl-upstream: no
570
571	# DNS64 prefix. Must be specified when DNS64 is use.
572	# Enable dns64 in module-config.  Used to synthesize IPv6 from IPv4.
573	# dns64-prefix: 64:ff9b::0/96
574
575	# ratelimit for uncached, new queries, this limits recursion effort.
576	# ratelimiting is experimental, and may help against randomqueryflood.
577	# if 0(default) it is disabled, otherwise state qps allowed per zone.
578	# ratelimit: 0
579
580	# ratelimits are tracked in a cache, size in bytes of cache (or k,m).
581	# ratelimit-size: 4m
582	# ratelimit cache slabs, reduces lock contention if equal to cpucount.
583	# ratelimit-slabs: 4
584
585	# 0 blocks when ratelimited, otherwise let 1/xth traffic through
586	# ratelimit-factor: 10
587
588	# override the ratelimit for a specific domain name.
589	# give this setting multiple times to have multiple overrides.
590	# ratelimit-for-domain: example.com 1000
591	# override the ratelimits for all domains below a domain name
592	# can give this multiple times, the name closest to the zone is used.
593	# ratelimit-below-domain: example 1000
594
595# Python config section. To enable:
596# o use --with-pythonmodule to configure before compiling.
597# o list python in the module-config string (above) to enable.
598# o and give a python-script to run.
599python:
600	# Script file to load
601	# python-script: "@UNBOUND_SHARE_DIR@/ubmodule-tst.py"
602
603# Remote control config section.
604remote-control:
605	# Enable remote control with unbound-control(8) here.
606	# set up the keys and certificates with unbound-control-setup.
607	# control-enable: no
608
609	# Set to no and use an absolute path as control-interface to use
610	# a unix local named pipe for unbound-control.
611	# control-use-cert: yes
612
613	# what interfaces are listened to for remote control.
614	# give 0.0.0.0 and ::0 to listen to all interfaces.
615	# control-interface: 127.0.0.1
616	# control-interface: ::1
617
618	# port number for remote control operations.
619	# control-port: 8953
620
621	# unbound server key file.
622	# server-key-file: "@UNBOUND_RUN_DIR@/unbound_server.key"
623
624	# unbound server certificate file.
625	# server-cert-file: "@UNBOUND_RUN_DIR@/unbound_server.pem"
626
627	# unbound-control key file.
628	# control-key-file: "@UNBOUND_RUN_DIR@/unbound_control.key"
629
630	# unbound-control certificate file.
631	# control-cert-file: "@UNBOUND_RUN_DIR@/unbound_control.pem"
632
633# Stub zones.
634# Create entries like below, to make all queries for 'example.com' and
635# 'example.org' go to the given list of nameservers. list zero or more
636# nameservers by hostname or by ipaddress. If you set stub-prime to yes,
637# the list is treated as priming hints (default is no).
638# With stub-first yes, it attempts without the stub if it fails.
639# Consider adding domain-insecure: name and local-zone: name nodefault
640# to the server: section if the stub is a locally served zone.
641# stub-zone:
642#	name: "example.com"
643#	stub-addr: 192.0.2.68
644#	stub-prime: no
645#	stub-first: no
646# stub-zone:
647#	name: "example.org"
648#	stub-host: ns.example.com.
649
650# Forward zones
651# Create entries like below, to make all queries for 'example.com' and
652# 'example.org' go to the given list of servers. These servers have to handle
653# recursion to other nameservers. List zero or more nameservers by hostname
654# or by ipaddress. Use an entry with name "." to forward all queries.
655# If you enable forward-first, it attempts without the forward if it fails.
656# forward-zone:
657# 	name: "example.com"
658# 	forward-addr: 192.0.2.68
659# 	forward-addr: 192.0.2.73@5355  # forward to port 5355.
660# 	forward-first: no
661# forward-zone:
662# 	name: "example.org"
663# 	forward-host: fwd.example.com
664