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