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