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