1# 2# Example configuration file. 3# 4# See unbound.conf(5) man page, version 1.16.0. 5# 6# this is a comment. 7 8# Use this anywhere in the file to include other text into this file. 9#include: "otherfile.conf" 10 11# Use this anywhere in the file to include other text, that explicitly starts a 12# clause, into this file. Text after this directive needs to start a clause. 13#include-toplevel: "otherfile.conf" 14 15# The server clause sets the main parameters. 16server: 17 # whitespace is not necessary, but looks cleaner. 18 19 # verbosity number, 0 is least verbose. 1 is default. 20 verbosity: 1 21 22 # print statistics to the log (for every thread) every N seconds. 23 # Set to "" or 0 to disable. Default is disabled. 24 # statistics-interval: 0 25 26 # enable shm for stats, default no. if you enable also enable 27 # statistics-interval, every time it also writes stats to the 28 # shared memory segment keyed with shm-key. 29 # shm-enable: no 30 31 # shm for stats uses this key, and key+1 for the shared mem segment. 32 # shm-key: 11777 33 34 # enable cumulative statistics, without clearing them after printing. 35 # statistics-cumulative: no 36 37 # enable extended statistics (query types, answer codes, status) 38 # printed from unbound-control. default off, because of speed. 39 # extended-statistics: no 40 41 # number of threads to create. 1 disables threading. 42 # num-threads: 1 43 44 # specify the interfaces to answer queries from by ip-address. 45 # The default is to listen to localhost (127.0.0.1 and ::1). 46 # specify 0.0.0.0 and ::0 to bind to all available interfaces. 47 # specify every interface[@port] on a new 'interface:' labelled line. 48 # The listen interfaces are not changed on reload, only on restart. 49 # interface: 192.0.2.153 50 # interface: 192.0.2.154 51 # interface: 192.0.2.154@5003 52 # interface: 2001:DB8::5 53 54 # enable this feature to copy the source address of queries to reply. 55 # Socket options are not supported on all platforms. experimental. 56 # interface-automatic: no 57 58 # instead of the default port, open additional ports separated by 59 # spaces when interface-automatic is enabled, by listing them here. 60 # interface-automatic-ports: "" 61 62 # port to answer queries from 63 # port: 53 64 65 # specify the interfaces to send outgoing queries to authoritative 66 # server from by ip-address. If none, the default (all) interface 67 # is used. Specify every interface on a 'outgoing-interface:' line. 68 # outgoing-interface: 192.0.2.153 69 # outgoing-interface: 2001:DB8::5 70 # outgoing-interface: 2001:DB8::6 71 72 # Specify a netblock to use remainder 64 bits as random bits for 73 # upstream queries. Uses freebind option (Linux). 74 # outgoing-interface: 2001:DB8::/64 75 # Also (Linux:) ip -6 addr add 2001:db8::/64 dev lo 76 # And: ip -6 route add local 2001:db8::/64 dev lo 77 # And set prefer-ip6: yes to use the ip6 randomness from a netblock. 78 # Set this to yes to prefer ipv6 upstream servers over ipv4. 79 # prefer-ip6: no 80 81 # Prefer ipv4 upstream servers, even if ipv6 is available. 82 # prefer-ip4: no 83 84 # number of ports to allocate per thread, determines the size of the 85 # port range that can be open simultaneously. About double the 86 # num-queries-per-thread, or, use as many as the OS will allow you. 87 # outgoing-range: 4096 88 89 # permit Unbound to use this port number or port range for 90 # making outgoing queries, using an outgoing interface. 91 # outgoing-port-permit: 32768 92 93 # deny Unbound the use this of port number or port range for 94 # making outgoing queries, using an outgoing interface. 95 # Use this to make sure Unbound does not grab a UDP port that some 96 # other server on this computer needs. The default is to avoid 97 # IANA-assigned port numbers. 98 # If multiple outgoing-port-permit and outgoing-port-avoid options 99 # are present, they are processed in order. 100 # outgoing-port-avoid: "3200-3208" 101 102 # number of outgoing simultaneous tcp buffers to hold per thread. 103 # outgoing-num-tcp: 10 104 105 # number of incoming simultaneous tcp buffers to hold per thread. 106 # incoming-num-tcp: 10 107 108 # buffer size for UDP port 53 incoming (SO_RCVBUF socket option). 109 # 0 is system default. Use 4m to catch query spikes for busy servers. 110 # so-rcvbuf: 0 111 112 # buffer size for UDP port 53 outgoing (SO_SNDBUF socket option). 113 # 0 is system default. Use 4m to handle spikes on very busy servers. 114 # so-sndbuf: 0 115 116 # use SO_REUSEPORT to distribute queries over threads. 117 # at extreme load it could be better to turn it off to distribute even. 118 # so-reuseport: yes 119 120 # use IP_TRANSPARENT so the interface: addresses can be non-local 121 # and you can config non-existing IPs that are going to work later on 122 # (uses IP_BINDANY on FreeBSD). 123 # ip-transparent: no 124 125 # use IP_FREEBIND so the interface: addresses can be non-local 126 # and you can bind to nonexisting IPs and interfaces that are down. 127 # Linux only. On Linux you also have ip-transparent that is similar. 128 # ip-freebind: no 129 130 # the value of the Differentiated Services Codepoint (DSCP) 131 # in the differentiated services field (DS) of the outgoing 132 # IP packets 133 # ip-dscp: 0 134 135 # EDNS reassembly buffer to advertise to UDP peers (the actual buffer 136 # is set with msg-buffer-size). 137 # edns-buffer-size: 1232 138 139 # Maximum UDP response size (not applied to TCP response). 140 # Suggested values are 512 to 4096. Default is 4096. 65536 disables it. 141 # max-udp-size: 4096 142 143 # max memory to use for stream(tcp and tls) waiting result buffers. 144 # stream-wait-size: 4m 145 146 # buffer size for handling DNS data. No messages larger than this 147 # size can be sent or received, by UDP or TCP. In bytes. 148 # msg-buffer-size: 65552 149 150 # the amount of memory to use for the message cache. 151 # plain value in bytes or you can append k, m or G. default is "4Mb". 152 # msg-cache-size: 4m 153 154 # the number of slabs to use for the message cache. 155 # the number of slabs must be a power of 2. 156 # more slabs reduce lock contention, but fragment memory usage. 157 # msg-cache-slabs: 4 158 159 # the number of queries that a thread gets to service. 160 # num-queries-per-thread: 1024 161 162 # if very busy, 50% queries run to completion, 50% get timeout in msec 163 # jostle-timeout: 200 164 165 # msec to wait before close of port on timeout UDP. 0 disables. 166 # delay-close: 0 167 168 # perform connect for UDP sockets to mitigate ICMP side channel. 169 # udp-connect: yes 170 171 # The number of retries when a non-positive response is received. 172 # outbound-msg-retry: 5 173 174 # msec for waiting for an unknown server to reply. Increase if you 175 # are behind a slow satellite link, to eg. 1128. 176 # unknown-server-time-limit: 376 177 178 # the amount of memory to use for the RRset cache. 179 # plain value in bytes or you can append k, m or G. default is "4Mb". 180 # rrset-cache-size: 4m 181 182 # the number of slabs to use for the RRset cache. 183 # the number of slabs must be a power of 2. 184 # more slabs reduce lock contention, but fragment memory usage. 185 # rrset-cache-slabs: 4 186 187 # the time to live (TTL) value lower bound, in seconds. Default 0. 188 # If more than an hour could easily give trouble due to stale data. 189 # cache-min-ttl: 0 190 191 # the time to live (TTL) value cap for RRsets and messages in the 192 # cache. Items are not cached for longer. In seconds. 193 # cache-max-ttl: 86400 194 195 # the time to live (TTL) value cap for negative responses in the cache 196 # cache-max-negative-ttl: 3600 197 198 # the time to live (TTL) value for cached roundtrip times, lameness and 199 # EDNS version information for hosts. In seconds. 200 # infra-host-ttl: 900 201 202 # minimum wait time for responses, increase if uplink is long. In msec. 203 # infra-cache-min-rtt: 50 204 205 # enable to make server probe down hosts more frequently. 206 # infra-keep-probing: no 207 208 # the number of slabs to use for the Infrastructure cache. 209 # the number of slabs must be a power of 2. 210 # more slabs reduce lock contention, but fragment memory usage. 211 # infra-cache-slabs: 4 212 213 # the maximum number of hosts that are cached (roundtrip, EDNS, lame). 214 # infra-cache-numhosts: 10000 215 216 # define a number of tags here, use with local-zone, access-control. 217 # repeat the define-tag statement to add additional tags. 218 # define-tag: "tag1 tag2 tag3" 219 220 # Enable IPv4, "yes" or "no". 221 # do-ip4: yes 222 223 # Enable IPv6, "yes" or "no". 224 # do-ip6: yes 225 226 # Enable UDP, "yes" or "no". 227 # do-udp: yes 228 229 # Enable TCP, "yes" or "no". 230 # do-tcp: yes 231 232 # upstream connections use TCP only (and no UDP), "yes" or "no" 233 # useful for tunneling scenarios, default no. 234 # tcp-upstream: no 235 236 # upstream connections also use UDP (even if do-udp is no). 237 # useful if if you want UDP upstream, but don't provide UDP downstream. 238 # udp-upstream-without-downstream: no 239 240 # Maximum segment size (MSS) of TCP socket on which the server 241 # responds to queries. Default is 0, system default MSS. 242 # tcp-mss: 0 243 244 # Maximum segment size (MSS) of TCP socket for outgoing queries. 245 # Default is 0, system default MSS. 246 # outgoing-tcp-mss: 0 247 248 # Idle TCP timeout, connection closed in milliseconds 249 # tcp-idle-timeout: 30000 250 251 # Enable EDNS TCP keepalive option. 252 # edns-tcp-keepalive: no 253 254 # Timeout for EDNS TCP keepalive, in msec. 255 # edns-tcp-keepalive-timeout: 120000 256 257 # Use systemd socket activation for UDP, TCP, and control sockets. 258 # use-systemd: no 259 260 # Detach from the terminal, run in background, "yes" or "no". 261 # Set the value to "no" when Unbound runs as systemd service. 262 # do-daemonize: yes 263 264 # control which clients are allowed to make (recursive) queries 265 # to this server. Specify classless netblocks with /size and action. 266 # By default everything is refused, except for localhost. 267 # Choose deny (drop message), refuse (polite error reply), 268 # allow (recursive ok), allow_setrd (recursive ok, rd bit is forced on), 269 # allow_snoop (recursive and nonrecursive ok) 270 # deny_non_local (drop queries unless can be answered from local-data) 271 # refuse_non_local (like deny_non_local but polite error reply). 272 # access-control: 0.0.0.0/0 refuse 273 # access-control: 127.0.0.0/8 allow 274 # access-control: ::0/0 refuse 275 # access-control: ::1 allow 276 # access-control: ::ffff:127.0.0.1 allow 277 278 # tag access-control with list of tags (in "" with spaces between) 279 # Clients using this access control element use localzones that 280 # are tagged with one of these tags. 281 # access-control-tag: 192.0.2.0/24 "tag2 tag3" 282 283 # set action for particular tag for given access control element 284 # if you have multiple tag values, the tag used to lookup the action 285 # is the first tag match between access-control-tag and local-zone-tag 286 # where "first" comes from the order of the define-tag values. 287 # access-control-tag-action: 192.0.2.0/24 tag3 refuse 288 289 # set redirect data for particular tag for access control element 290 # access-control-tag-data: 192.0.2.0/24 tag2 "A 127.0.0.1" 291 292 # Set view for access control element 293 # access-control-view: 192.0.2.0/24 viewname 294 295 # if given, a chroot(2) is done to the given directory. 296 # i.e. you can chroot to the working directory, for example, 297 # for extra security, but make sure all files are in that directory. 298 # 299 # If chroot is enabled, you should pass the configfile (from the 300 # commandline) as a full path from the original root. After the 301 # chroot has been performed the now defunct portion of the config 302 # file path is removed to be able to reread the config after a reload. 303 # 304 # All other file paths (working dir, logfile, roothints, and 305 # key files) can be specified in several ways: 306 # o as an absolute path relative to the new root. 307 # o as a relative path to the working directory. 308 # o as an absolute path relative to the original root. 309 # In the last case the path is adjusted to remove the unused portion. 310 # 311 # The pid file can be absolute and outside of the chroot, it is 312 # written just prior to performing the chroot and dropping permissions. 313 # 314 # Additionally, Unbound may need to access /dev/urandom (for entropy). 315 # How to do this is specific to your OS. 316 # 317 # If you give "" no chroot is performed. The path must not end in a /. 318 # chroot: "@UNBOUND_CHROOT_DIR@" 319 320 # if given, user privileges are dropped (after binding port), 321 # and the given username is assumed. Default is user "unbound". 322 # If you give "" no privileges are dropped. 323 # username: "@UNBOUND_USERNAME@" 324 325 # the working directory. The relative files in this config are 326 # relative to this directory. If you give "" the working directory 327 # is not changed. 328 # If you give a server: directory: dir before include: file statements 329 # then those includes can be relative to the working directory. 330 # directory: "@UNBOUND_RUN_DIR@" 331 332 # the log file, "" means log to stderr. 333 # Use of this option sets use-syslog to "no". 334 # logfile: "" 335 336 # Log to syslog(3) if yes. The log facility LOG_DAEMON is used to 337 # log to. If yes, it overrides the logfile. 338 # use-syslog: yes 339 340 # Log identity to report. if empty, defaults to the name of argv[0] 341 # (usually "unbound"). 342 # log-identity: "" 343 344 # print UTC timestamp in ascii to logfile, default is epoch in seconds. 345 # log-time-ascii: no 346 347 # print one line with time, IP, name, type, class for every query. 348 # log-queries: no 349 350 # print one line per reply, with time, IP, name, type, class, rcode, 351 # timetoresolve, fromcache and responsesize. 352 # log-replies: no 353 354 # log with tag 'query' and 'reply' instead of 'info' for 355 # filtering log-queries and log-replies from the log. 356 # log-tag-queryreply: no 357 358 # log the local-zone actions, like local-zone type inform is enabled 359 # also for the other local zone types. 360 # log-local-actions: no 361 362 # print log lines that say why queries return SERVFAIL to clients. 363 # log-servfail: no 364 365 # the pid file. Can be an absolute path outside of chroot/work dir. 366 # pidfile: "@UNBOUND_PIDFILE@" 367 368 # file to read root hints from. 369 # get one from https://www.internic.net/domain/named.cache 370 # root-hints: "" 371 372 # enable to not answer id.server and hostname.bind queries. 373 # hide-identity: no 374 375 # enable to not answer version.server and version.bind queries. 376 # hide-version: no 377 378 # enable to not answer trustanchor.unbound queries. 379 # hide-trustanchor: no 380 381 # enable to not set the User-Agent HTTP header. 382 # hide-http-user-agent: no 383 384 # the identity to report. Leave "" or default to return hostname. 385 # identity: "" 386 387 # the version to report. Leave "" or default to return package version. 388 # version: "" 389 390 # NSID identity (hex string, or "ascii_somestring"). default disabled. 391 # nsid: "aabbccdd" 392 393 # User-Agent HTTP header to use. Leave "" or default to use package name 394 # and version. 395 # http-user-agent: "" 396 397 # the target fetch policy. 398 # series of integers describing the policy per dependency depth. 399 # The number of values in the list determines the maximum dependency 400 # depth the recursor will pursue before giving up. Each integer means: 401 # -1 : fetch all targets opportunistically, 402 # 0: fetch on demand, 403 # positive value: fetch that many targets opportunistically. 404 # Enclose the list of numbers between quotes (""). 405 # target-fetch-policy: "3 2 1 0 0" 406 407 # Harden against very small EDNS buffer sizes. 408 # harden-short-bufsize: yes 409 410 # Harden against unseemly large queries. 411 # harden-large-queries: no 412 413 # Harden against out of zone rrsets, to avoid spoofing attempts. 414 # harden-glue: yes 415 416 # Harden against receiving dnssec-stripped data. If you turn it 417 # off, failing to validate dnskey data for a trustanchor will 418 # trigger insecure mode for that zone (like without a trustanchor). 419 # Default on, which insists on dnssec data for trust-anchored zones. 420 # harden-dnssec-stripped: yes 421 422 # Harden against queries that fall under dnssec-signed nxdomain names. 423 # harden-below-nxdomain: yes 424 425 # Harden the referral path by performing additional queries for 426 # infrastructure data. Validates the replies (if possible). 427 # Default off, because the lookups burden the server. Experimental 428 # implementation of draft-wijngaards-dnsext-resolver-side-mitigation. 429 # harden-referral-path: no 430 431 # Harden against algorithm downgrade when multiple algorithms are 432 # advertised in the DS record. If no, allows the weakest algorithm 433 # to validate the zone. 434 # harden-algo-downgrade: no 435 436 # Sent minimum amount of information to upstream servers to enhance 437 # privacy. Only sent minimum required labels of the QNAME and set QTYPE 438 # to A when possible. 439 # qname-minimisation: yes 440 441 # QNAME minimisation in strict mode. Do not fall-back to sending full 442 # QNAME to potentially broken nameservers. A lot of domains will not be 443 # resolvable when this option in enabled. 444 # This option only has effect when qname-minimisation is enabled. 445 # qname-minimisation-strict: no 446 447 # Aggressive NSEC uses the DNSSEC NSEC chain to synthesize NXDOMAIN 448 # and other denials, using information from previous NXDOMAINs answers. 449 # aggressive-nsec: yes 450 451 # Use 0x20-encoded random bits in the query to foil spoof attempts. 452 # This feature is an experimental implementation of draft dns-0x20. 453 # use-caps-for-id: no 454 455 # Domains (and domains in them) without support for dns-0x20 and 456 # the fallback fails because they keep sending different answers. 457 # caps-exempt: "licdn.com" 458 # caps-exempt: "senderbase.org" 459 460 # Enforce privacy of these addresses. Strips them away from answers. 461 # It may cause DNSSEC validation to additionally mark it as bogus. 462 # Protects against 'DNS Rebinding' (uses browser as network proxy). 463 # Only 'private-domain' and 'local-data' names are allowed to have 464 # these private addresses. No default. 465 # private-address: 10.0.0.0/8 466 # private-address: 172.16.0.0/12 467 # private-address: 192.168.0.0/16 468 # private-address: 169.254.0.0/16 469 # private-address: fd00::/8 470 # private-address: fe80::/10 471 # private-address: ::ffff:0:0/96 472 473 # Allow the domain (and its subdomains) to contain private addresses. 474 # local-data statements are allowed to contain private addresses too. 475 # private-domain: "example.com" 476 477 # If nonzero, unwanted replies are not only reported in statistics, 478 # but also a running total is kept per thread. If it reaches the 479 # threshold, a warning is printed and a defensive action is taken, 480 # the cache is cleared to flush potential poison out of it. 481 # A suggested value is 10000000, the default is 0 (turned off). 482 # unwanted-reply-threshold: 0 483 484 # Do not query the following addresses. No DNS queries are sent there. 485 # List one address per entry. List classless netblocks with /size, 486 # do-not-query-address: 127.0.0.1/8 487 # do-not-query-address: ::1 488 489 # if yes, the above default do-not-query-address entries are present. 490 # if no, localhost can be queried (for testing and debugging). 491 # do-not-query-localhost: yes 492 493 # if yes, perform prefetching of almost expired message cache entries. 494 # prefetch: no 495 496 # if yes, perform key lookups adjacent to normal lookups. 497 # prefetch-key: no 498 499 # deny queries of type ANY with an empty response. 500 # deny-any: no 501 502 # if yes, Unbound rotates RRSet order in response. 503 # rrset-roundrobin: yes 504 505 # if yes, Unbound doesn't insert authority/additional sections 506 # into response messages when those sections are not required. 507 # minimal-responses: yes 508 509 # true to disable DNSSEC lameness check in iterator. 510 # disable-dnssec-lame-check: no 511 512 # module configuration of the server. A string with identifiers 513 # separated by spaces. Syntax: "[dns64] [validator] iterator" 514 # most modules have to be listed at the beginning of the line, 515 # except cachedb(just before iterator), and python (at the beginning, 516 # or, just before the iterator). 517 # module-config: "validator iterator" 518 519 # File with trusted keys, kept uptodate using RFC5011 probes, 520 # initial file like trust-anchor-file, then it stores metadata. 521 # Use several entries, one per domain name, to track multiple zones. 522 # 523 # If you want to perform DNSSEC validation, run unbound-anchor before 524 # you start Unbound (i.e. in the system boot scripts). 525 # And then enable the auto-trust-anchor-file config item. 526 # Please note usage of unbound-anchor root anchor is at your own risk 527 # and under the terms of our LICENSE (see that file in the source). 528 # auto-trust-anchor-file: "@UNBOUND_ROOTKEY_FILE@" 529 530 # trust anchor signaling sends a RFC8145 key tag query after priming. 531 # trust-anchor-signaling: yes 532 533 # Root key trust anchor sentinel (draft-ietf-dnsop-kskroll-sentinel) 534 # root-key-sentinel: yes 535 536 # File with trusted keys for validation. Specify more than one file 537 # with several entries, one file per entry. 538 # Zone file format, with DS and DNSKEY entries. 539 # Note this gets out of date, use auto-trust-anchor-file please. 540 # trust-anchor-file: "" 541 542 # Trusted key for validation. DS or DNSKEY. specify the RR on a 543 # single line, surrounded by "". TTL is ignored. class is IN default. 544 # Note this gets out of date, use auto-trust-anchor-file please. 545 # (These examples are from August 2007 and may not be valid anymore). 546 # trust-anchor: "nlnetlabs.nl. DNSKEY 257 3 5 AQPzzTWMz8qSWIQlfRnPckx2BiVmkVN6LPupO3mbz7FhLSnm26n6iG9N Lby97Ji453aWZY3M5/xJBSOS2vWtco2t8C0+xeO1bc/d6ZTy32DHchpW 6rDH1vp86Ll+ha0tmwyy9QP7y2bVw5zSbFCrefk8qCUBgfHm9bHzMG1U BYtEIQ==" 547 # trust-anchor: "jelte.nlnetlabs.nl. DS 42860 5 1 14D739EB566D2B1A5E216A0BA4D17FA9B038BE4A" 548 549 # File with trusted keys for validation. Specify more than one file 550 # with several entries, one file per entry. Like trust-anchor-file 551 # but has a different file format. Format is BIND-9 style format, 552 # the trusted-keys { name flag proto algo "key"; }; clauses are read. 553 # you need external update procedures to track changes in keys. 554 # trusted-keys-file: "" 555 556 # Ignore chain of trust. Domain is treated as insecure. 557 # domain-insecure: "example.com" 558 559 # Override the date for validation with a specific fixed date. 560 # Do not set this unless you are debugging signature inception 561 # and expiration. "" or "0" turns the feature off. -1 ignores date. 562 # val-override-date: "" 563 564 # The time to live for bogus data, rrsets and messages. This avoids 565 # some of the revalidation, until the time interval expires. in secs. 566 # val-bogus-ttl: 60 567 568 # The signature inception and expiration dates are allowed to be off 569 # by 10% of the signature lifetime (expir-incep) from our local clock. 570 # This leeway is capped with a minimum and a maximum. In seconds. 571 # val-sig-skew-min: 3600 572 # val-sig-skew-max: 86400 573 574 # The maximum number the validator should restart validation with 575 # another authority in case of failed validation. 576 # val-max-restart: 5 577 578 # Should additional section of secure message also be kept clean of 579 # unsecure data. Useful to shield the users of this validator from 580 # potential bogus data in the additional section. All unsigned data 581 # in the additional section is removed from secure messages. 582 # val-clean-additional: yes 583 584 # Turn permissive mode on to permit bogus messages. Thus, messages 585 # for which security checks failed will be returned to clients, 586 # instead of SERVFAIL. It still performs the security checks, which 587 # result in interesting log files and possibly the AD bit in 588 # replies if the message is found secure. The default is off. 589 # val-permissive-mode: no 590 591 # Ignore the CD flag in incoming queries and refuse them bogus data. 592 # Enable it if the only clients of Unbound are legacy servers (w2008) 593 # that set CD but cannot validate themselves. 594 # ignore-cd-flag: no 595 596 # Serve expired responses from cache, with serve-expired-reply-ttl in 597 # the response, and then attempt to fetch the data afresh. 598 # serve-expired: no 599 # 600 # Limit serving of expired responses to configured seconds after 601 # expiration. 0 disables the limit. 602 # serve-expired-ttl: 0 603 # 604 # Set the TTL of expired records to the serve-expired-ttl value after a 605 # failed attempt to retrieve the record from upstream. This makes sure 606 # that the expired records will be served as long as there are queries 607 # for it. 608 # serve-expired-ttl-reset: no 609 # 610 # TTL value to use when replying with expired data. 611 # serve-expired-reply-ttl: 30 612 # 613 # Time in milliseconds before replying to the client with expired data. 614 # This essentially enables the serve-stale behavior as specified in 615 # RFC 8767 that first tries to resolve before 616 # immediately responding with expired data. 0 disables this behavior. 617 # A recommended value is 1800. 618 # serve-expired-client-timeout: 0 619 620 # Return the original TTL as received from the upstream name server rather 621 # than the decrementing TTL as stored in the cache. Enabling this feature 622 # does not impact cache expiry, it only changes the TTL Unbound embeds in 623 # responses to queries. Note that enabling this feature implicitly disables 624 # enforcement of the configured minimum and maximum TTL. 625 # serve-original-ttl: no 626 627 # Have the validator log failed validations for your diagnosis. 628 # 0: off. 1: A line per failed user query. 2: With reason and bad IP. 629 # val-log-level: 0 630 631 # It is possible to configure NSEC3 maximum iteration counts per 632 # keysize. Keep this table very short, as linear search is done. 633 # A message with an NSEC3 with larger count is marked insecure. 634 # List in ascending order the keysize and count values. 635 # val-nsec3-keysize-iterations: "1024 150 2048 150 4096 150" 636 637 # if enabled, ZONEMD verification failures do not block the zone. 638 # zonemd-permissive-mode: no 639 640 # instruct the auto-trust-anchor-file probing to add anchors after ttl. 641 # add-holddown: 2592000 # 30 days 642 643 # instruct the auto-trust-anchor-file probing to del anchors after ttl. 644 # del-holddown: 2592000 # 30 days 645 646 # auto-trust-anchor-file probing removes missing anchors after ttl. 647 # If the value 0 is given, missing anchors are not removed. 648 # keep-missing: 31622400 # 366 days 649 650 # debug option that allows very small holddown times for key rollover, 651 # otherwise the RFC mandates probe intervals must be at least 1 hour. 652 # permit-small-holddown: no 653 654 # the amount of memory to use for the key cache. 655 # plain value in bytes or you can append k, m or G. default is "4Mb". 656 # key-cache-size: 4m 657 658 # the number of slabs to use for the key cache. 659 # the number of slabs must be a power of 2. 660 # more slabs reduce lock contention, but fragment memory usage. 661 # key-cache-slabs: 4 662 663 # the amount of memory to use for the negative cache. 664 # plain value in bytes or you can append k, m or G. default is "1Mb". 665 # neg-cache-size: 1m 666 667 # By default, for a number of zones a small default 'nothing here' 668 # reply is built-in. Query traffic is thus blocked. If you 669 # wish to serve such zone you can unblock them by uncommenting one 670 # of the nodefault statements below. 671 # You may also have to use domain-insecure: zone to make DNSSEC work, 672 # unless you have your own trust anchors for this zone. 673 # local-zone: "localhost." nodefault 674 # local-zone: "127.in-addr.arpa." nodefault 675 # 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 676 # local-zone: "home.arpa." nodefault 677 # local-zone: "onion." nodefault 678 # local-zone: "test." nodefault 679 # local-zone: "invalid." nodefault 680 # local-zone: "10.in-addr.arpa." nodefault 681 # local-zone: "16.172.in-addr.arpa." nodefault 682 # local-zone: "17.172.in-addr.arpa." nodefault 683 # local-zone: "18.172.in-addr.arpa." nodefault 684 # local-zone: "19.172.in-addr.arpa." nodefault 685 # local-zone: "20.172.in-addr.arpa." nodefault 686 # local-zone: "21.172.in-addr.arpa." nodefault 687 # local-zone: "22.172.in-addr.arpa." nodefault 688 # local-zone: "23.172.in-addr.arpa." nodefault 689 # local-zone: "24.172.in-addr.arpa." nodefault 690 # local-zone: "25.172.in-addr.arpa." nodefault 691 # local-zone: "26.172.in-addr.arpa." nodefault 692 # local-zone: "27.172.in-addr.arpa." nodefault 693 # local-zone: "28.172.in-addr.arpa." nodefault 694 # local-zone: "29.172.in-addr.arpa." nodefault 695 # local-zone: "30.172.in-addr.arpa." nodefault 696 # local-zone: "31.172.in-addr.arpa." nodefault 697 # local-zone: "168.192.in-addr.arpa." nodefault 698 # local-zone: "0.in-addr.arpa." nodefault 699 # local-zone: "254.169.in-addr.arpa." nodefault 700 # local-zone: "2.0.192.in-addr.arpa." nodefault 701 # local-zone: "100.51.198.in-addr.arpa." nodefault 702 # local-zone: "113.0.203.in-addr.arpa." nodefault 703 # local-zone: "255.255.255.255.in-addr.arpa." nodefault 704 # 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 705 # local-zone: "d.f.ip6.arpa." nodefault 706 # local-zone: "8.e.f.ip6.arpa." nodefault 707 # local-zone: "9.e.f.ip6.arpa." nodefault 708 # local-zone: "a.e.f.ip6.arpa." nodefault 709 # local-zone: "b.e.f.ip6.arpa." nodefault 710 # local-zone: "8.b.d.0.1.0.0.2.ip6.arpa." nodefault 711 # And for 64.100.in-addr.arpa. to 127.100.in-addr.arpa. 712 713 # Add example.com into ipset 714 # local-zone: "example.com" ipset 715 716 # If Unbound is running service for the local host then it is useful 717 # to perform lan-wide lookups to the upstream, and unblock the 718 # long list of local-zones above. If this Unbound is a dns server 719 # for a network of computers, disabled is better and stops information 720 # leakage of local lan information. 721 # unblock-lan-zones: no 722 723 # The insecure-lan-zones option disables validation for 724 # these zones, as if they were all listed as domain-insecure. 725 # insecure-lan-zones: no 726 727 # a number of locally served zones can be configured. 728 # local-zone: <zone> <type> 729 # local-data: "<resource record string>" 730 # o deny serves local data (if any), else, drops queries. 731 # o refuse serves local data (if any), else, replies with error. 732 # o static serves local data, else, nxdomain or nodata answer. 733 # o transparent gives local data, but resolves normally for other names 734 # o redirect serves the zone data for any subdomain in the zone. 735 # o nodefault can be used to normally resolve AS112 zones. 736 # o typetransparent resolves normally for other types and other names 737 # o inform acts like transparent, but logs client IP address 738 # o inform_deny drops queries and logs client IP address 739 # o inform_redirect redirects queries and logs client IP address 740 # o always_transparent, always_refuse, always_nxdomain, always_nodata, 741 # always_deny resolve in that way but ignore local data for 742 # that name 743 # o always_null returns 0.0.0.0 or ::0 for any name in the zone. 744 # o noview breaks out of that view towards global local-zones. 745 # 746 # defaults are localhost address, reverse for 127.0.0.1 and ::1 747 # and nxdomain for AS112 zones. If you configure one of these zones 748 # the default content is omitted, or you can omit it with 'nodefault'. 749 # 750 # If you configure local-data without specifying local-zone, by 751 # default a transparent local-zone is created for the data. 752 # 753 # You can add locally served data with 754 # local-zone: "local." static 755 # local-data: "mycomputer.local. IN A 192.0.2.51" 756 # local-data: 'mytext.local TXT "content of text record"' 757 # 758 # You can override certain queries with 759 # local-data: "adserver.example.com A 127.0.0.1" 760 # 761 # You can redirect a domain to a fixed address with 762 # (this makes example.com, www.example.com, etc, all go to 192.0.2.3) 763 # local-zone: "example.com" redirect 764 # local-data: "example.com A 192.0.2.3" 765 # 766 # Shorthand to make PTR records, "IPv4 name" or "IPv6 name". 767 # You can also add PTR records using local-data directly, but then 768 # you need to do the reverse notation yourself. 769 # local-data-ptr: "192.0.2.3 www.example.com" 770 771 # tag a localzone with a list of tag names (in "" with spaces between) 772 # local-zone-tag: "example.com" "tag2 tag3" 773 774 # add a netblock specific override to a localzone, with zone type 775 # local-zone-override: "example.com" 192.0.2.0/24 refuse 776 777 # service clients over TLS (on the TCP sockets) with plain DNS inside 778 # the TLS stream, and over HTTPS using HTTP/2 as specified in RFC8484. 779 # Give the certificate to use and private key. 780 # default is "" (disabled). requires restart to take effect. 781 # tls-service-key: "path/to/privatekeyfile.key" 782 # tls-service-pem: "path/to/publiccertfile.pem" 783 # tls-port: 853 784 # https-port: 443 785 786 # cipher setting for TLSv1.2 787 # tls-ciphers: "DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256" 788 # cipher setting for TLSv1.3 789 # tls-ciphersuites: "TLS_AES_128_GCM_SHA256:TLS_AES_128_CCM_8_SHA256:TLS_AES_128_CCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256" 790 791 # Pad responses to padded queries received over TLS 792 # pad-responses: yes 793 794 # Padded responses will be padded to the closest multiple of this size. 795 # pad-responses-block-size: 468 796 797 # Use the SNI extension for TLS connections. Default is yes. 798 # Changing the value requires a reload. 799 # tls-use-sni: yes 800 801 # Add the secret file for TLS Session Ticket. 802 # Secret file must be 80 bytes of random data. 803 # First key use to encrypt and decrypt TLS session tickets. 804 # Other keys use to decrypt only. 805 # requires restart to take effect. 806 # tls-session-ticket-keys: "path/to/secret_file1" 807 # tls-session-ticket-keys: "path/to/secret_file2" 808 809 # request upstream over TLS (with plain DNS inside the TLS stream). 810 # Default is no. Can be turned on and off with unbound-control. 811 # tls-upstream: no 812 813 # Certificates used to authenticate connections made upstream. 814 # tls-cert-bundle: "" 815 816 # Add system certs to the cert bundle, from the Windows Cert Store 817 # tls-win-cert: no 818 # and on other systems, the default openssl certificates 819 # tls-system-cert: no 820 821 # Pad queries over TLS upstreams 822 # pad-queries: yes 823 824 # Padded queries will be padded to the closest multiple of this size. 825 # pad-queries-block-size: 128 826 827 # Also serve tls on these port numbers (eg. 443, ...), by listing 828 # tls-additional-port: portno for each of the port numbers. 829 830 # HTTP endpoint to provide DNS-over-HTTPS service on. 831 # http-endpoint: "/dns-query" 832 833 # HTTP/2 SETTINGS_MAX_CONCURRENT_STREAMS value to use. 834 # http-max-streams: 100 835 836 # Maximum number of bytes used for all HTTP/2 query buffers. 837 # http-query-buffer-size: 4m 838 839 # Maximum number of bytes used for all HTTP/2 response buffers. 840 # http-response-buffer-size: 4m 841 842 # Set TCP_NODELAY socket option on sockets used for DNS-over-HTTPS 843 # service. 844 # http-nodelay: yes 845 846 # Disable TLS for DNS-over-HTTP downstream service. 847 # http-notls-downstream: no 848 849 # DNS64 prefix. Must be specified when DNS64 is use. 850 # Enable dns64 in module-config. Used to synthesize IPv6 from IPv4. 851 # dns64-prefix: 64:ff9b::0/96 852 853 # DNS64 ignore AAAA records for these domains and use A instead. 854 # dns64-ignore-aaaa: "example.com" 855 856 # ratelimit for uncached, new queries, this limits recursion effort. 857 # ratelimiting is experimental, and may help against randomqueryflood. 858 # if 0(default) it is disabled, otherwise state qps allowed per zone. 859 # ratelimit: 0 860 861 # ratelimits are tracked in a cache, size in bytes of cache (or k,m). 862 # ratelimit-size: 4m 863 # ratelimit cache slabs, reduces lock contention if equal to cpucount. 864 # ratelimit-slabs: 4 865 866 # 0 blocks when ratelimited, otherwise let 1/xth traffic through 867 # ratelimit-factor: 10 868 869 # Aggressive rate limit when the limit is reached and until demand has 870 # decreased in a 2 second rate window. 871 # ratelimit-backoff: no 872 873 # override the ratelimit for a specific domain name. 874 # give this setting multiple times to have multiple overrides. 875 # ratelimit-for-domain: example.com 1000 876 # override the ratelimits for all domains below a domain name 877 # can give this multiple times, the name closest to the zone is used. 878 # ratelimit-below-domain: com 1000 879 880 # global query ratelimit for all ip addresses. 881 # feature is experimental. 882 # if 0(default) it is disabled, otherwise states qps allowed per ip address 883 # ip-ratelimit: 0 884 885 # ip ratelimits are tracked in a cache, size in bytes of cache (or k,m). 886 # ip-ratelimit-size: 4m 887 # ip ratelimit cache slabs, reduces lock contention if equal to cpucount. 888 # ip-ratelimit-slabs: 4 889 890 # 0 blocks when ip is ratelimited, otherwise let 1/xth traffic through 891 # ip-ratelimit-factor: 10 892 893 # Aggressive rate limit when the limit is reached and until demand has 894 # decreased in a 2 second rate window. 895 # ip-ratelimit-backoff: no 896 897 # Limit the number of connections simultaneous from a netblock 898 # tcp-connection-limit: 192.0.2.0/24 12 899 900 # select from the fastest servers this many times out of 1000. 0 means 901 # the fast server select is disabled. prefetches are not sped up. 902 # fast-server-permil: 0 903 # the number of servers that will be used in the fast server selection. 904 # fast-server-num: 3 905 906 # Enable to attach Extended DNS Error codes (RFC8914) to responses. 907 # ede: no 908 909 # Enable to attach an Extended DNS Error (RFC8914) Code 3 - Stale 910 # Answer as EDNS0 option to expired responses. 911 # Note that the ede option above needs to be enabled for this to work. 912 # ede-serve-expired: no 913 914 # Specific options for ipsecmod. Unbound needs to be configured with 915 # --enable-ipsecmod for these to take effect. 916 # 917 # Enable or disable ipsecmod (it still needs to be defined in 918 # module-config above). Can be used when ipsecmod needs to be 919 # enabled/disabled via remote-control(below). 920 # ipsecmod-enabled: yes 921 # 922 # Path to executable external hook. It must be defined when ipsecmod is 923 # listed in module-config (above). 924 # ipsecmod-hook: "./my_executable" 925 # 926 # When enabled Unbound will reply with SERVFAIL if the return value of 927 # the ipsecmod-hook is not 0. 928 # ipsecmod-strict: no 929 # 930 # Maximum time to live (TTL) for cached A/AAAA records with IPSECKEY. 931 # ipsecmod-max-ttl: 3600 932 # 933 # Reply with A/AAAA even if the relevant IPSECKEY is bogus. Mainly used for 934 # testing. 935 # ipsecmod-ignore-bogus: no 936 # 937 # Domains for which ipsecmod will be triggered. If not defined (default) 938 # all domains are treated as being allowed. 939 # ipsecmod-allow: "example.com" 940 # ipsecmod-allow: "nlnetlabs.nl" 941 942 # Timeout for REUSE entries in milliseconds. 943 # tcp-reuse-timeout: 60000 944 # Max number of queries on a reuse connection. 945 # max-reuse-tcp-queries: 200 946 # Timeout in milliseconds for TCP queries to auth servers. 947 # tcp-auth-query-timeout: 3000 948 949 950# Python config section. To enable: 951# o use --with-pythonmodule to configure before compiling. 952# o list python in the module-config string (above) to enable. 953# It can be at the start, it gets validated results, or just before 954# the iterator and process before DNSSEC validation. 955# o and give a python-script to run. 956python: 957 # Script file to load 958 # python-script: "@UNBOUND_SHARE_DIR@/ubmodule-tst.py" 959 960# Dynamic library config section. To enable: 961# o use --with-dynlibmodule to configure before compiling. 962# o list dynlib in the module-config string (above) to enable. 963# It can be placed anywhere, the dynlib module is only a very thin wrapper 964# to load modules dynamically. 965# o and give a dynlib-file to run. If more than one dynlib entry is listed in 966# the module-config then you need one dynlib-file per instance. 967dynlib: 968 # Script file to load 969 # dynlib-file: "@UNBOUND_SHARE_DIR@/dynlib.so" 970 971# Remote control config section. 972remote-control: 973 # Enable remote control with unbound-control(8) here. 974 # set up the keys and certificates with unbound-control-setup. 975 # control-enable: no 976 977 # what interfaces are listened to for remote control. 978 # give 0.0.0.0 and ::0 to listen to all interfaces. 979 # set to an absolute path to use a unix local name pipe, certificates 980 # are not used for that, so key and cert files need not be present. 981 # control-interface: 127.0.0.1 982 # control-interface: ::1 983 984 # port number for remote control operations. 985 # control-port: 8953 986 987 # for localhost, you can disable use of TLS by setting this to "no" 988 # For local sockets this option is ignored, and TLS is not used. 989 # control-use-cert: "yes" 990 991 # Unbound server key file. 992 # server-key-file: "@UNBOUND_RUN_DIR@/unbound_server.key" 993 994 # Unbound server certificate file. 995 # server-cert-file: "@UNBOUND_RUN_DIR@/unbound_server.pem" 996 997 # unbound-control key file. 998 # control-key-file: "@UNBOUND_RUN_DIR@/unbound_control.key" 999 1000 # unbound-control certificate file. 1001 # control-cert-file: "@UNBOUND_RUN_DIR@/unbound_control.pem" 1002 1003# Stub zones. 1004# Create entries like below, to make all queries for 'example.com' and 1005# 'example.org' go to the given list of nameservers. list zero or more 1006# nameservers by hostname or by ipaddress. If you set stub-prime to yes, 1007# the list is treated as priming hints (default is no). 1008# With stub-first yes, it attempts without the stub if it fails. 1009# Consider adding domain-insecure: name and local-zone: name nodefault 1010# to the server: section if the stub is a locally served zone. 1011# stub-zone: 1012# name: "example.com" 1013# stub-addr: 192.0.2.68 1014# stub-prime: no 1015# stub-first: no 1016# stub-tcp-upstream: no 1017# stub-tls-upstream: no 1018# stub-no-cache: no 1019# stub-zone: 1020# name: "example.org" 1021# stub-host: ns.example.com. 1022 1023# Forward zones 1024# Create entries like below, to make all queries for 'example.com' and 1025# 'example.org' go to the given list of servers. These servers have to handle 1026# recursion to other nameservers. List zero or more nameservers by hostname 1027# or by ipaddress. Use an entry with name "." to forward all queries. 1028# If you enable forward-first, it attempts without the forward if it fails. 1029# forward-zone: 1030# name: "example.com" 1031# forward-addr: 192.0.2.68 1032# forward-addr: 192.0.2.73@5355 # forward to port 5355. 1033# forward-first: no 1034# forward-tcp-upstream: no 1035# forward-tls-upstream: no 1036# forward-no-cache: no 1037# forward-zone: 1038# name: "example.org" 1039# forward-host: fwd.example.com 1040 1041# Authority zones 1042# The data for these zones is kept locally, from a file or downloaded. 1043# The data can be served to downstream clients, or used instead of the 1044# upstream (which saves a lookup to the upstream). The first example 1045# has a copy of the root for local usage. The second serves example.org 1046# authoritatively. zonefile: reads from file (and writes to it if you also 1047# download it), primary: fetches with AXFR and IXFR, or url to zonefile. 1048# With allow-notify: you can give additional (apart from primaries) sources of 1049# notifies. 1050# auth-zone: 1051# name: "." 1052# primary: 199.9.14.201 # b.root-servers.net 1053# primary: 192.33.4.12 # c.root-servers.net 1054# primary: 199.7.91.13 # d.root-servers.net 1055# primary: 192.5.5.241 # f.root-servers.net 1056# primary: 192.112.36.4 # g.root-servers.net 1057# primary: 193.0.14.129 # k.root-servers.net 1058# primary: 192.0.47.132 # xfr.cjr.dns.icann.org 1059# primary: 192.0.32.132 # xfr.lax.dns.icann.org 1060# primary: 2001:500:200::b # b.root-servers.net 1061# primary: 2001:500:2::c # c.root-servers.net 1062# primary: 2001:500:2d::d # d.root-servers.net 1063# primary: 2001:500:2f::f # f.root-servers.net 1064# primary: 2001:500:12::d0d # g.root-servers.net 1065# primary: 2001:7fd::1 # k.root-servers.net 1066# primary: 2620:0:2830:202::132 # xfr.cjr.dns.icann.org 1067# primary: 2620:0:2d0:202::132 # xfr.lax.dns.icann.org 1068# fallback-enabled: yes 1069# for-downstream: no 1070# for-upstream: yes 1071# auth-zone: 1072# name: "example.org" 1073# for-downstream: yes 1074# for-upstream: yes 1075# zonemd-check: no 1076# zonemd-reject-absence: no 1077# zonefile: "example.org.zone" 1078 1079# Views 1080# Create named views. Name must be unique. Map views to requests using 1081# the access-control-view option. Views can contain zero or more local-zone 1082# and local-data options. Options from matching views will override global 1083# options. Global options will be used if no matching view is found. 1084# With view-first yes, it will try to answer using the global local-zone and 1085# local-data elements if there is no view specific match. 1086# view: 1087# name: "viewname" 1088# local-zone: "example.com" redirect 1089# local-data: "example.com A 192.0.2.3" 1090# local-data-ptr: "192.0.2.3 www.example.com" 1091# view-first: no 1092# view: 1093# name: "anotherview" 1094# local-zone: "example.com" refuse 1095 1096# DNSCrypt 1097# To enable, use --enable-dnscrypt to configure before compiling. 1098# Caveats: 1099# 1. the keys/certs cannot be produced by Unbound. You can use dnscrypt-wrapper 1100# for this: https://github.com/cofyc/dnscrypt-wrapper/blob/master/README.md#usage 1101# 2. dnscrypt channel attaches to an interface. you MUST set interfaces to 1102# listen on `dnscrypt-port` with the follo0wing snippet: 1103# server: 1104# interface: 0.0.0.0@443 1105# interface: ::0@443 1106# 1107# Finally, `dnscrypt` config has its own section. 1108# dnscrypt: 1109# dnscrypt-enable: yes 1110# dnscrypt-port: 443 1111# dnscrypt-provider: 2.dnscrypt-cert.example.com. 1112# dnscrypt-secret-key: /path/unbound-conf/keys1/1.key 1113# dnscrypt-secret-key: /path/unbound-conf/keys2/1.key 1114# dnscrypt-provider-cert: /path/unbound-conf/keys1/1.cert 1115# dnscrypt-provider-cert: /path/unbound-conf/keys2/1.cert 1116 1117# CacheDB 1118# External backend DB as auxiliary cache. 1119# To enable, use --enable-cachedb to configure before compiling. 1120# Specify the backend name 1121# (default is "testframe", which has no use other than for debugging and 1122# testing) and backend-specific options. The 'cachedb' module must be 1123# included in module-config, just before the iterator module. 1124# cachedb: 1125# backend: "testframe" 1126# # secret seed string to calculate hashed keys 1127# secret-seed: "default" 1128# 1129# # For "redis" backend: 1130# # (to enable, use --with-libhiredis to configure before compiling) 1131# # redis server's IP address or host name 1132# redis-server-host: 127.0.0.1 1133# # redis server's TCP port 1134# redis-server-port: 6379 1135# # timeout (in ms) for communication with the redis server 1136# redis-timeout: 100 1137# # set timeout on redis records based on DNS response TTL 1138# redis-expire-records: no 1139 1140# IPSet 1141# Add specify domain into set via ipset. 1142# To enable: 1143# o use --enable-ipset to configure before compiling; 1144# o Unbound then needs to run as root user. 1145# ipset: 1146# # set name for ip v4 addresses 1147# name-v4: "list-v4" 1148# # set name for ip v6 addresses 1149# name-v6: "list-v6" 1150# 1151 1152# Dnstap logging support, if compiled in by using --enable-dnstap to configure. 1153# To enable, set the dnstap-enable to yes and also some of 1154# dnstap-log-..-messages to yes. And select an upstream log destination, by 1155# socket path, TCP or TLS destination. 1156# dnstap: 1157# dnstap-enable: no 1158# # if set to yes frame streams will be used in bidirectional mode 1159# dnstap-bidirectional: yes 1160# dnstap-socket-path: "@DNSTAP_SOCKET_PATH@" 1161# # if "" use the unix socket in dnstap-socket-path, otherwise, 1162# # set it to "IPaddress[@port]" of the destination. 1163# dnstap-ip: "" 1164# # if set to yes if you want to use TLS to dnstap-ip, no for TCP. 1165# dnstap-tls: yes 1166# # name for authenticating the upstream server. or "" disabled. 1167# dnstap-tls-server-name: "" 1168# # if "", it uses the cert bundle from the main Unbound config. 1169# dnstap-tls-cert-bundle: "" 1170# # key file for client authentication, or "" disabled. 1171# dnstap-tls-client-key-file: "" 1172# # cert file for client authentication, or "" disabled. 1173# dnstap-tls-client-cert-file: "" 1174# dnstap-send-identity: no 1175# dnstap-send-version: no 1176# # if "" it uses the hostname. 1177# dnstap-identity: "" 1178# # if "" it uses the package version. 1179# dnstap-version: "" 1180# dnstap-log-resolver-query-messages: no 1181# dnstap-log-resolver-response-messages: no 1182# dnstap-log-client-query-messages: no 1183# dnstap-log-client-response-messages: no 1184# dnstap-log-forwarder-query-messages: no 1185# dnstap-log-forwarder-response-messages: no 1186 1187# Response Policy Zones 1188# RPZ policies. Applied in order of configuration. QNAME, Response IP 1189# Address, nsdname, nsip and clientip triggers are supported. Supported 1190# actions are: NXDOMAIN, NODATA, PASSTHRU, DROP, Local Data, tcp-only 1191# and drop. Policies can be loaded from a file, or using zone 1192# transfer, or using HTTP. The respip module needs to be added 1193# to the module-config, e.g.: module-config: "respip validator iterator". 1194# rpz: 1195# name: "rpz.example.com" 1196# zonefile: "rpz.example.com" 1197# primary: 192.0.2.0 1198# allow-notify: 192.0.2.0/32 1199# url: http://www.example.com/rpz.example.org.zone 1200# rpz-action-override: cname 1201# rpz-cname-override: www.example.org 1202# rpz-log: yes 1203# rpz-log-name: "example policy" 1204# rpz-signal-nxdomain-ra: no 1205# for-downstream: no 1206# tags: "example" 1207