1276612Sdes# 2276612Sdes# Example configuration file. 3276612Sdes# 4285206Sdes# See unbound.conf(5) man page, version 1.5.3. 5276612Sdes# 6276612Sdes# this is a comment. 7276612Sdes 8276612Sdes#Use this to include other text into the file. 9276612Sdes#include: "otherfile.conf" 10276612Sdes 11276612Sdes# The server clause sets the main parameters. 12276612Sdesserver: 13276612Sdes # whitespace is not necessary, but looks cleaner. 14276612Sdes 15276612Sdes # verbosity number, 0 is least verbose. 1 is default. 16276612Sdes verbosity: 1 17276612Sdes 18276612Sdes # print statistics to the log (for every thread) every N seconds. 19276612Sdes # Set to "" or 0 to disable. Default is disabled. 20276612Sdes # statistics-interval: 0 21276612Sdes 22276612Sdes # enable cumulative statistics, without clearing them after printing. 23276612Sdes # statistics-cumulative: no 24276612Sdes 25276612Sdes # enable extended statistics (query types, answer codes, status) 26276612Sdes # printed from unbound-control. default off, because of speed. 27276612Sdes # extended-statistics: no 28276612Sdes 29276612Sdes # number of threads to create. 1 disables threading. 30276612Sdes # num-threads: 1 31276612Sdes 32276612Sdes # specify the interfaces to answer queries from by ip-address. 33276612Sdes # The default is to listen to localhost (127.0.0.1 and ::1). 34276612Sdes # specify 0.0.0.0 and ::0 to bind to all available interfaces. 35276612Sdes # specify every interface[@port] on a new 'interface:' labelled line. 36276612Sdes # The listen interfaces are not changed on reload, only on restart. 37276612Sdes # interface: 192.0.2.153 38276612Sdes # interface: 192.0.2.154 39276612Sdes # interface: 192.0.2.154@5003 40276612Sdes # interface: 2001:DB8::5 41276612Sdes 42276612Sdes # enable this feature to copy the source address of queries to reply. 43276612Sdes # Socket options are not supported on all platforms. experimental. 44276612Sdes # interface-automatic: no 45276612Sdes 46276612Sdes # port to answer queries from 47276612Sdes # port: 53 48276612Sdes 49276612Sdes # specify the interfaces to send outgoing queries to authoritative 50276612Sdes # server from by ip-address. If none, the default (all) interface 51276612Sdes # is used. Specify every interface on a 'outgoing-interface:' line. 52276612Sdes # outgoing-interface: 192.0.2.153 53276612Sdes # outgoing-interface: 2001:DB8::5 54276612Sdes # outgoing-interface: 2001:DB8::6 55276612Sdes 56276612Sdes # number of ports to allocate per thread, determines the size of the 57276612Sdes # port range that can be open simultaneously. About double the 58276612Sdes # num-queries-per-thread, or, use as many as the OS will allow you. 59276612Sdes # outgoing-range: 4096 60276612Sdes 61276612Sdes # permit unbound to use this port number or port range for 62276612Sdes # making outgoing queries, using an outgoing interface. 63276612Sdes # outgoing-port-permit: 32768 64276612Sdes 65276612Sdes # deny unbound the use this of port number or port range for 66276612Sdes # making outgoing queries, using an outgoing interface. 67276612Sdes # Use this to make sure unbound does not grab a UDP port that some 68276612Sdes # other server on this computer needs. The default is to avoid 69276612Sdes # IANA-assigned port numbers. 70276612Sdes # If multiple outgoing-port-permit and outgoing-port-avoid options 71276612Sdes # are present, they are processed in order. 72276612Sdes # outgoing-port-avoid: "3200-3208" 73276612Sdes 74276612Sdes # number of outgoing simultaneous tcp buffers to hold per thread. 75276612Sdes # outgoing-num-tcp: 10 76276612Sdes 77276612Sdes # number of incoming simultaneous tcp buffers to hold per thread. 78276612Sdes # incoming-num-tcp: 10 79276612Sdes 80276612Sdes # buffer size for UDP port 53 incoming (SO_RCVBUF socket option). 81276612Sdes # 0 is system default. Use 4m to catch query spikes for busy servers. 82276612Sdes # so-rcvbuf: 0 83276612Sdes 84276612Sdes # buffer size for UDP port 53 outgoing (SO_SNDBUF socket option). 85276612Sdes # 0 is system default. Use 4m to handle spikes on very busy servers. 86276612Sdes # so-sndbuf: 0 87276612Sdes 88276612Sdes # use SO_REUSEPORT to distribute queries over threads. 89276612Sdes # so-reuseport: no 90276612Sdes 91276612Sdes # EDNS reassembly buffer to advertise to UDP peers (the actual buffer 92276612Sdes # is set with msg-buffer-size). 1480 can solve fragmentation (timeouts). 93276612Sdes # edns-buffer-size: 4096 94276612Sdes 95276612Sdes # Maximum UDP response size (not applied to TCP response). 96276612Sdes # Suggested values are 512 to 4096. Default is 4096. 65536 disables it. 97276612Sdes # max-udp-size: 4096 98276612Sdes 99276612Sdes # buffer size for handling DNS data. No messages larger than this 100276612Sdes # size can be sent or received, by UDP or TCP. In bytes. 101276612Sdes # msg-buffer-size: 65552 102276612Sdes 103276612Sdes # the amount of memory to use for the message cache. 104276612Sdes # plain value in bytes or you can append k, m or G. default is "4Mb". 105276612Sdes # msg-cache-size: 4m 106276612Sdes 107276612Sdes # the number of slabs to use for the message cache. 108276612Sdes # the number of slabs must be a power of 2. 109276612Sdes # more slabs reduce lock contention, but fragment memory usage. 110276612Sdes # msg-cache-slabs: 4 111276612Sdes 112276612Sdes # the number of queries that a thread gets to service. 113276612Sdes # num-queries-per-thread: 1024 114276612Sdes 115276612Sdes # if very busy, 50% queries run to completion, 50% get timeout in msec 116276612Sdes # jostle-timeout: 200 117276612Sdes 118276612Sdes # msec to wait before close of port on timeout UDP. 0 disables. 119276612Sdes # delay-close: 0 120276612Sdes 121276612Sdes # the amount of memory to use for the RRset cache. 122276612Sdes # plain value in bytes or you can append k, m or G. default is "4Mb". 123276612Sdes # rrset-cache-size: 4m 124276612Sdes 125276612Sdes # the number of slabs to use for the RRset cache. 126276612Sdes # the number of slabs must be a power of 2. 127276612Sdes # more slabs reduce lock contention, but fragment memory usage. 128276612Sdes # rrset-cache-slabs: 4 129276612Sdes 130276612Sdes # the time to live (TTL) value lower bound, in seconds. Default 0. 131276612Sdes # If more than an hour could easily give trouble due to stale data. 132276612Sdes # cache-min-ttl: 0 133276612Sdes 134276612Sdes # the time to live (TTL) value cap for RRsets and messages in the 135276612Sdes # cache. Items are not cached for longer. In seconds. 136276612Sdes # cache-max-ttl: 86400 137276612Sdes 138276612Sdes # the time to live (TTL) value for cached roundtrip times, lameness and 139276612Sdes # EDNS version information for hosts. In seconds. 140276612Sdes # infra-host-ttl: 900 141285206Sdes 142285206Sdes # minimum wait time for responses, increase if uplink is long. In msec. 143285206Sdes # infra-cache-min-rtt: 50 144276612Sdes 145276612Sdes # the number of slabs to use for the Infrastructure cache. 146276612Sdes # the number of slabs must be a power of 2. 147276612Sdes # more slabs reduce lock contention, but fragment memory usage. 148276612Sdes # infra-cache-slabs: 4 149276612Sdes 150276612Sdes # the maximum number of hosts that are cached (roundtrip, EDNS, lame). 151276612Sdes # infra-cache-numhosts: 10000 152276612Sdes 153276612Sdes # Enable IPv4, "yes" or "no". 154276612Sdes # do-ip4: yes 155276612Sdes 156276612Sdes # Enable IPv6, "yes" or "no". 157276612Sdes # do-ip6: yes 158276612Sdes 159276612Sdes # Enable UDP, "yes" or "no". 160276612Sdes # do-udp: yes 161276612Sdes 162276612Sdes # Enable TCP, "yes" or "no". 163276612Sdes # do-tcp: yes 164276612Sdes 165276612Sdes # upstream connections use TCP only (and no UDP), "yes" or "no" 166276612Sdes # useful for tunneling scenarios, default no. 167276612Sdes # tcp-upstream: no 168276612Sdes 169276612Sdes # Detach from the terminal, run in background, "yes" or "no". 170276612Sdes # do-daemonize: yes 171276612Sdes 172276612Sdes # control which clients are allowed to make (recursive) queries 173276612Sdes # to this server. Specify classless netblocks with /size and action. 174276612Sdes # By default everything is refused, except for localhost. 175276612Sdes # Choose deny (drop message), refuse (polite error reply), 176276612Sdes # allow (recursive ok), allow_snoop (recursive and nonrecursive ok) 177276612Sdes # deny_non_local (drop queries unless can be answered from local-data) 178276612Sdes # refuse_non_local (like deny_non_local but polite error reply). 179276612Sdes # access-control: 0.0.0.0/0 refuse 180276612Sdes # access-control: 127.0.0.0/8 allow 181276612Sdes # access-control: ::0/0 refuse 182276612Sdes # access-control: ::1 allow 183276612Sdes # access-control: ::ffff:127.0.0.1 allow 184276612Sdes 185276612Sdes # if given, a chroot(2) is done to the given directory. 186276612Sdes # i.e. you can chroot to the working directory, for example, 187276612Sdes # for extra security, but make sure all files are in that directory. 188276612Sdes # 189276612Sdes # If chroot is enabled, you should pass the configfile (from the 190276612Sdes # commandline) as a full path from the original root. After the 191276612Sdes # chroot has been performed the now defunct portion of the config 192276612Sdes # file path is removed to be able to reread the config after a reload. 193276612Sdes # 194276612Sdes # All other file paths (working dir, logfile, roothints, and 195276612Sdes # key files) can be specified in several ways: 196276612Sdes # o as an absolute path relative to the new root. 197276612Sdes # o as a relative path to the working directory. 198276612Sdes # o as an absolute path relative to the original root. 199276612Sdes # In the last case the path is adjusted to remove the unused portion. 200276612Sdes # 201276612Sdes # The pid file can be absolute and outside of the chroot, it is 202276612Sdes # written just prior to performing the chroot and dropping permissions. 203276612Sdes # 204276612Sdes # Additionally, unbound may need to access /dev/random (for entropy). 205276612Sdes # How to do this is specific to your OS. 206276612Sdes # 207276612Sdes # If you give "" no chroot is performed. The path must not end in a /. 208276612Sdes # chroot: "/var/unbound" 209276612Sdes 210276612Sdes # if given, user privileges are dropped (after binding port), 211276612Sdes # and the given username is assumed. Default is user "unbound". 212276612Sdes # If you give "" no privileges are dropped. 213276612Sdes # username: "unbound" 214276612Sdes 215276612Sdes # the working directory. The relative files in this config are 216276612Sdes # relative to this directory. If you give "" the working directory 217276612Sdes # is not changed. 218276612Sdes # directory: "/var/unbound" 219276612Sdes 220276612Sdes # the log file, "" means log to stderr. 221276612Sdes # Use of this option sets use-syslog to "no". 222276612Sdes # logfile: "" 223276612Sdes 224276612Sdes # Log to syslog(3) if yes. The log facility LOG_DAEMON is used to 225276612Sdes # log to, with identity "unbound". If yes, it overrides the logfile. 226276612Sdes # use-syslog: yes 227276612Sdes 228276612Sdes # print UTC timestamp in ascii to logfile, default is epoch in seconds. 229276612Sdes # log-time-ascii: no 230276612Sdes 231276612Sdes # print one line with time, IP, name, type, class for every query. 232276612Sdes # log-queries: no 233276612Sdes 234276612Sdes # the pid file. Can be an absolute path outside of chroot/work dir. 235276612Sdes # pidfile: "/var/unbound/unbound.pid" 236276612Sdes 237276612Sdes # file to read root hints from. 238276612Sdes # get one from ftp://FTP.INTERNIC.NET/domain/named.cache 239276612Sdes # root-hints: "" 240276612Sdes 241276612Sdes # enable to not answer id.server and hostname.bind queries. 242276612Sdes # hide-identity: no 243276612Sdes 244276612Sdes # enable to not answer version.server and version.bind queries. 245276612Sdes # hide-version: no 246276612Sdes 247276612Sdes # the identity to report. Leave "" or default to return hostname. 248276612Sdes # identity: "" 249276612Sdes 250276612Sdes # the version to report. Leave "" or default to return package version. 251276612Sdes # version: "" 252276612Sdes 253276612Sdes # the target fetch policy. 254276612Sdes # series of integers describing the policy per dependency depth. 255276612Sdes # The number of values in the list determines the maximum dependency 256276612Sdes # depth the recursor will pursue before giving up. Each integer means: 257276612Sdes # -1 : fetch all targets opportunistically, 258276612Sdes # 0: fetch on demand, 259276612Sdes # positive value: fetch that many targets opportunistically. 260276612Sdes # Enclose the list of numbers between quotes (""). 261276612Sdes # target-fetch-policy: "3 2 1 0 0" 262276612Sdes 263276612Sdes # Harden against very small EDNS buffer sizes. 264276612Sdes # harden-short-bufsize: no 265276612Sdes 266276612Sdes # Harden against unseemly large queries. 267276612Sdes # harden-large-queries: no 268276612Sdes 269276612Sdes # Harden against out of zone rrsets, to avoid spoofing attempts. 270276612Sdes # harden-glue: yes 271276612Sdes 272276612Sdes # Harden against receiving dnssec-stripped data. If you turn it 273276612Sdes # off, failing to validate dnskey data for a trustanchor will 274276612Sdes # trigger insecure mode for that zone (like without a trustanchor). 275276612Sdes # Default on, which insists on dnssec data for trust-anchored zones. 276276612Sdes # harden-dnssec-stripped: yes 277276612Sdes 278276612Sdes # Harden against queries that fall under dnssec-signed nxdomain names. 279276612Sdes # harden-below-nxdomain: no 280276612Sdes 281276612Sdes # Harden the referral path by performing additional queries for 282276612Sdes # infrastructure data. Validates the replies (if possible). 283276612Sdes # Default off, because the lookups burden the server. Experimental 284276612Sdes # implementation of draft-wijngaards-dnsext-resolver-side-mitigation. 285276612Sdes # harden-referral-path: no 286276612Sdes 287276612Sdes # Use 0x20-encoded random bits in the query to foil spoof attempts. 288276612Sdes # This feature is an experimental implementation of draft dns-0x20. 289276612Sdes # use-caps-for-id: no 290276612Sdes 291276612Sdes # Enforce privacy of these addresses. Strips them away from answers. 292276612Sdes # It may cause DNSSEC validation to additionally mark it as bogus. 293276612Sdes # Protects against 'DNS Rebinding' (uses browser as network proxy). 294276612Sdes # Only 'private-domain' and 'local-data' names are allowed to have 295276612Sdes # these private addresses. No default. 296276612Sdes # private-address: 10.0.0.0/8 297276612Sdes # private-address: 172.16.0.0/12 298276612Sdes # private-address: 192.168.0.0/16 299276612Sdes # private-address: 169.254.0.0/16 300276612Sdes # private-address: fd00::/8 301276612Sdes # private-address: fe80::/10 302276612Sdes 303276612Sdes # Allow the domain (and its subdomains) to contain private addresses. 304276612Sdes # local-data statements are allowed to contain private addresses too. 305276612Sdes # private-domain: "example.com" 306276612Sdes 307276612Sdes # If nonzero, unwanted replies are not only reported in statistics, 308276612Sdes # but also a running total is kept per thread. If it reaches the 309276612Sdes # threshold, a warning is printed and a defensive action is taken, 310276612Sdes # the cache is cleared to flush potential poison out of it. 311276612Sdes # A suggested value is 10000000, the default is 0 (turned off). 312276612Sdes # unwanted-reply-threshold: 0 313276612Sdes 314276612Sdes # Do not query the following addresses. No DNS queries are sent there. 315276612Sdes # List one address per entry. List classless netblocks with /size, 316276612Sdes # do-not-query-address: 127.0.0.1/8 317276612Sdes # do-not-query-address: ::1 318276612Sdes 319276612Sdes # if yes, the above default do-not-query-address entries are present. 320276612Sdes # if no, localhost can be queried (for testing and debugging). 321276612Sdes # do-not-query-localhost: yes 322276612Sdes 323276612Sdes # if yes, perform prefetching of almost expired message cache entries. 324276612Sdes # prefetch: no 325276612Sdes 326276612Sdes # if yes, perform key lookups adjacent to normal lookups. 327276612Sdes # prefetch-key: no 328276612Sdes 329276612Sdes # if yes, Unbound rotates RRSet order in response. 330276612Sdes # rrset-roundrobin: no 331276612Sdes 332276612Sdes # if yes, Unbound doesn't insert authority/additional sections 333276612Sdes # into response messages when those sections are not required. 334276612Sdes # minimal-responses: no 335276612Sdes 336276612Sdes # module configuration of the server. A string with identifiers 337276612Sdes # separated by spaces. Syntax: "[dns64] [validator] iterator" 338276612Sdes # module-config: "validator iterator" 339276612Sdes 340276612Sdes # File with trusted keys, kept uptodate using RFC5011 probes, 341276612Sdes # initial file like trust-anchor-file, then it stores metadata. 342276612Sdes # Use several entries, one per domain name, to track multiple zones. 343276612Sdes # 344276612Sdes # If you want to perform DNSSEC validation, run unbound-anchor before 345276612Sdes # you start unbound (i.e. in the system boot scripts). And enable: 346276612Sdes # Please note usage of unbound-anchor root anchor is at your own risk 347276612Sdes # and under the terms of our LICENSE (see that file in the source). 348276612Sdes # auto-trust-anchor-file: "/var/unbound/root.key" 349276612Sdes 350276612Sdes # File with DLV trusted keys. Same format as trust-anchor-file. 351276612Sdes # There can be only one DLV configured, it is trusted from root down. 352276612Sdes # Download http://ftp.isc.org/www/dlv/dlv.isc.org.key 353276612Sdes # dlv-anchor-file: "dlv.isc.org.key" 354276612Sdes 355276612Sdes # File with trusted keys for validation. Specify more than one file 356276612Sdes # with several entries, one file per entry. 357276612Sdes # Zone file format, with DS and DNSKEY entries. 358276612Sdes # Note this gets out of date, use auto-trust-anchor-file please. 359276612Sdes # trust-anchor-file: "" 360276612Sdes 361276612Sdes # Trusted key for validation. DS or DNSKEY. specify the RR on a 362276612Sdes # single line, surrounded by "". TTL is ignored. class is IN default. 363276612Sdes # Note this gets out of date, use auto-trust-anchor-file please. 364276612Sdes # (These examples are from August 2007 and may not be valid anymore). 365276612Sdes # trust-anchor: "nlnetlabs.nl. DNSKEY 257 3 5 AQPzzTWMz8qSWIQlfRnPckx2BiVmkVN6LPupO3mbz7FhLSnm26n6iG9N Lby97Ji453aWZY3M5/xJBSOS2vWtco2t8C0+xeO1bc/d6ZTy32DHchpW 6rDH1vp86Ll+ha0tmwyy9QP7y2bVw5zSbFCrefk8qCUBgfHm9bHzMG1U BYtEIQ==" 366276612Sdes # trust-anchor: "jelte.nlnetlabs.nl. DS 42860 5 1 14D739EB566D2B1A5E216A0BA4D17FA9B038BE4A" 367276612Sdes 368276612Sdes # File with trusted keys for validation. Specify more than one file 369276612Sdes # with several entries, one file per entry. Like trust-anchor-file 370276612Sdes # but has a different file format. Format is BIND-9 style format, 371276612Sdes # the trusted-keys { name flag proto algo "key"; }; clauses are read. 372276612Sdes # you need external update procedures to track changes in keys. 373276612Sdes # trusted-keys-file: "" 374276612Sdes 375276612Sdes # Ignore chain of trust. Domain is treated as insecure. 376276612Sdes # domain-insecure: "example.com" 377276612Sdes 378276612Sdes # Override the date for validation with a specific fixed date. 379276612Sdes # Do not set this unless you are debugging signature inception 380276612Sdes # and expiration. "" or "0" turns the feature off. -1 ignores date. 381276612Sdes # val-override-date: "" 382276612Sdes 383276612Sdes # The time to live for bogus data, rrsets and messages. This avoids 384276612Sdes # some of the revalidation, until the time interval expires. in secs. 385276612Sdes # val-bogus-ttl: 60 386276612Sdes 387276612Sdes # The signature inception and expiration dates are allowed to be off 388276612Sdes # by 10% of the signature lifetime (expir-incep) from our local clock. 389276612Sdes # This leeway is capped with a minimum and a maximum. In seconds. 390276612Sdes # val-sig-skew-min: 3600 391276612Sdes # val-sig-skew-max: 86400 392276612Sdes 393276612Sdes # Should additional section of secure message also be kept clean of 394276612Sdes # unsecure data. Useful to shield the users of this validator from 395276612Sdes # potential bogus data in the additional section. All unsigned data 396276612Sdes # in the additional section is removed from secure messages. 397276612Sdes # val-clean-additional: yes 398276612Sdes 399276612Sdes # Turn permissive mode on to permit bogus messages. Thus, messages 400276612Sdes # for which security checks failed will be returned to clients, 401276612Sdes # instead of SERVFAIL. It still performs the security checks, which 402276612Sdes # result in interesting log files and possibly the AD bit in 403276612Sdes # replies if the message is found secure. The default is off. 404276612Sdes # val-permissive-mode: no 405276612Sdes 406276612Sdes # Ignore the CD flag in incoming queries and refuse them bogus data. 407276612Sdes # Enable it if the only clients of unbound are legacy servers (w2008) 408276612Sdes # that set CD but cannot validate themselves. 409276612Sdes # ignore-cd-flag: no 410276612Sdes 411276612Sdes # Have the validator log failed validations for your diagnosis. 412276612Sdes # 0: off. 1: A line per failed user query. 2: With reason and bad IP. 413276612Sdes # val-log-level: 0 414276612Sdes 415276612Sdes # It is possible to configure NSEC3 maximum iteration counts per 416276612Sdes # keysize. Keep this table very short, as linear search is done. 417276612Sdes # A message with an NSEC3 with larger count is marked insecure. 418276612Sdes # List in ascending order the keysize and count values. 419276612Sdes # val-nsec3-keysize-iterations: "1024 150 2048 500 4096 2500" 420276612Sdes 421276612Sdes # instruct the auto-trust-anchor-file probing to add anchors after ttl. 422276612Sdes # add-holddown: 2592000 # 30 days 423276612Sdes 424276612Sdes # instruct the auto-trust-anchor-file probing to del anchors after ttl. 425276612Sdes # del-holddown: 2592000 # 30 days 426276612Sdes 427276612Sdes # auto-trust-anchor-file probing removes missing anchors after ttl. 428276612Sdes # If the value 0 is given, missing anchors are not removed. 429276612Sdes # keep-missing: 31622400 # 366 days 430276612Sdes 431276612Sdes # the amount of memory to use for the key cache. 432276612Sdes # plain value in bytes or you can append k, m or G. default is "4Mb". 433276612Sdes # key-cache-size: 4m 434276612Sdes 435276612Sdes # the number of slabs to use for the key cache. 436276612Sdes # the number of slabs must be a power of 2. 437276612Sdes # more slabs reduce lock contention, but fragment memory usage. 438276612Sdes # key-cache-slabs: 4 439276612Sdes 440276612Sdes # the amount of memory to use for the negative cache (used for DLV). 441276612Sdes # plain value in bytes or you can append k, m or G. default is "1Mb". 442276612Sdes # neg-cache-size: 1m 443285206Sdes 444276612Sdes # By default, for a number of zones a small default 'nothing here' 445276612Sdes # reply is built-in. Query traffic is thus blocked. If you 446276612Sdes # wish to serve such zone you can unblock them by uncommenting one 447276612Sdes # of the nodefault statements below. 448276612Sdes # You may also have to use domain-insecure: zone to make DNSSEC work, 449276612Sdes # unless you have your own trust anchors for this zone. 450276612Sdes # local-zone: "localhost." nodefault 451276612Sdes # local-zone: "127.in-addr.arpa." nodefault 452276612Sdes # 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 453276612Sdes # local-zone: "10.in-addr.arpa." nodefault 454276612Sdes # local-zone: "16.172.in-addr.arpa." nodefault 455276612Sdes # local-zone: "17.172.in-addr.arpa." nodefault 456276612Sdes # local-zone: "18.172.in-addr.arpa." nodefault 457276612Sdes # local-zone: "19.172.in-addr.arpa." nodefault 458276612Sdes # local-zone: "20.172.in-addr.arpa." nodefault 459276612Sdes # local-zone: "21.172.in-addr.arpa." nodefault 460276612Sdes # local-zone: "22.172.in-addr.arpa." nodefault 461276612Sdes # local-zone: "23.172.in-addr.arpa." nodefault 462276612Sdes # local-zone: "24.172.in-addr.arpa." nodefault 463276612Sdes # local-zone: "25.172.in-addr.arpa." nodefault 464276612Sdes # local-zone: "26.172.in-addr.arpa." nodefault 465276612Sdes # local-zone: "27.172.in-addr.arpa." nodefault 466276612Sdes # local-zone: "28.172.in-addr.arpa." nodefault 467276612Sdes # local-zone: "29.172.in-addr.arpa." nodefault 468276612Sdes # local-zone: "30.172.in-addr.arpa." nodefault 469276612Sdes # local-zone: "31.172.in-addr.arpa." nodefault 470276612Sdes # local-zone: "168.192.in-addr.arpa." nodefault 471276612Sdes # local-zone: "0.in-addr.arpa." nodefault 472276612Sdes # local-zone: "254.169.in-addr.arpa." nodefault 473276612Sdes # local-zone: "2.0.192.in-addr.arpa." nodefault 474276612Sdes # local-zone: "100.51.198.in-addr.arpa." nodefault 475276612Sdes # local-zone: "113.0.203.in-addr.arpa." nodefault 476276612Sdes # local-zone: "255.255.255.255.in-addr.arpa." nodefault 477276612Sdes # 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 478276612Sdes # local-zone: "d.f.ip6.arpa." nodefault 479276612Sdes # local-zone: "8.e.f.ip6.arpa." nodefault 480276612Sdes # local-zone: "9.e.f.ip6.arpa." nodefault 481276612Sdes # local-zone: "a.e.f.ip6.arpa." nodefault 482276612Sdes # local-zone: "b.e.f.ip6.arpa." nodefault 483276612Sdes # local-zone: "8.b.d.0.1.0.0.2.ip6.arpa." nodefault 484276612Sdes # And for 64.100.in-addr.arpa. to 127.100.in-addr.arpa. 485276612Sdes 486276612Sdes # if unbound is running service for the local host then it is useful 487276612Sdes # to perform lan-wide lookups to the upstream, and unblock the 488276612Sdes # long list of local-zones above. If this unbound is a dns server 489276612Sdes # for a network of computers, disabled is better and stops information 490276612Sdes # leakage of local lan information. 491276612Sdes # unblock-lan-zones: no 492276612Sdes 493276612Sdes # a number of locally served zones can be configured. 494276612Sdes # local-zone: <zone> <type> 495276612Sdes # local-data: "<resource record string>" 496276612Sdes # o deny serves local data (if any), else, drops queries. 497276612Sdes # o refuse serves local data (if any), else, replies with error. 498276612Sdes # o static serves local data, else, nxdomain or nodata answer. 499276612Sdes # o transparent gives local data, but resolves normally for other names 500276612Sdes # o redirect serves the zone data for any subdomain in the zone. 501276612Sdes # o nodefault can be used to normally resolve AS112 zones. 502276612Sdes # o typetransparent resolves normally for other types and other names 503285206Sdes # o inform resolves normally, but logs client IP address 504276612Sdes # 505276612Sdes # defaults are localhost address, reverse for 127.0.0.1 and ::1 506276612Sdes # and nxdomain for AS112 zones. If you configure one of these zones 507276612Sdes # the default content is omitted, or you can omit it with 'nodefault'. 508276612Sdes # 509276612Sdes # If you configure local-data without specifying local-zone, by 510276612Sdes # default a transparent local-zone is created for the data. 511276612Sdes # 512276612Sdes # You can add locally served data with 513276612Sdes # local-zone: "local." static 514276612Sdes # local-data: "mycomputer.local. IN A 192.0.2.51" 515276612Sdes # local-data: 'mytext.local TXT "content of text record"' 516276612Sdes # 517276612Sdes # You can override certain queries with 518276612Sdes # local-data: "adserver.example.com A 127.0.0.1" 519276612Sdes # 520276612Sdes # You can redirect a domain to a fixed address with 521276612Sdes # (this makes example.com, www.example.com, etc, all go to 192.0.2.3) 522276612Sdes # local-zone: "example.com" redirect 523276612Sdes # local-data: "example.com A 192.0.2.3" 524276612Sdes # 525276612Sdes # Shorthand to make PTR records, "IPv4 name" or "IPv6 name". 526276612Sdes # You can also add PTR records using local-data directly, but then 527276612Sdes # you need to do the reverse notation yourself. 528276612Sdes # local-data-ptr: "192.0.2.3 www.example.com" 529276612Sdes 530276612Sdes # service clients over SSL (on the TCP sockets), with plain DNS inside 531276612Sdes # the SSL stream. Give the certificate to use and private key. 532276612Sdes # default is "" (disabled). requires restart to take effect. 533276612Sdes # ssl-service-key: "path/to/privatekeyfile.key" 534276612Sdes # ssl-service-pem: "path/to/publiccertfile.pem" 535276612Sdes # ssl-port: 443 536276612Sdes 537276612Sdes # request upstream over SSL (with plain DNS inside the SSL stream). 538276612Sdes # Default is no. Can be turned on and off with unbound-control. 539276612Sdes # ssl-upstream: no 540276612Sdes 541276612Sdes # DNS64 prefix. Must be specified when DNS64 is use. 542276612Sdes # Enable dns64 in module-config. Used to synthesize IPv6 from IPv4. 543276612Sdes # dns64-prefix: 64:ff9b::0/96 544276612Sdes 545276612Sdes# Python config section. To enable: 546276612Sdes# o use --with-pythonmodule to configure before compiling. 547276612Sdes# o list python in the module-config string (above) to enable. 548276612Sdes# o and give a python-script to run. 549276612Sdespython: 550276612Sdes # Script file to load 551276612Sdes # python-script: "/var/unbound/ubmodule-tst.py" 552276612Sdes 553276612Sdes# Remote control config section. 554276612Sdesremote-control: 555276612Sdes # Enable remote control with unbound-control(8) here. 556276612Sdes # set up the keys and certificates with unbound-control-setup. 557276612Sdes # control-enable: no 558276612Sdes 559285206Sdes # Set to no and use an absolute path as control-interface to use 560285206Sdes # a unix local named pipe for unbound-control. 561285206Sdes # control-use-cert: yes 562285206Sdes 563276612Sdes # what interfaces are listened to for remote control. 564276612Sdes # give 0.0.0.0 and ::0 to listen to all interfaces. 565276612Sdes # control-interface: 127.0.0.1 566276612Sdes # control-interface: ::1 567276612Sdes 568276612Sdes # port number for remote control operations. 569276612Sdes # control-port: 8953 570276612Sdes 571276612Sdes # unbound server key file. 572276612Sdes # server-key-file: "/var/unbound/unbound_server.key" 573276612Sdes 574276612Sdes # unbound server certificate file. 575276612Sdes # server-cert-file: "/var/unbound/unbound_server.pem" 576276612Sdes 577276612Sdes # unbound-control key file. 578276612Sdes # control-key-file: "/var/unbound/unbound_control.key" 579276612Sdes 580276612Sdes # unbound-control certificate file. 581276612Sdes # control-cert-file: "/var/unbound/unbound_control.pem" 582276612Sdes 583276612Sdes# Stub zones. 584276612Sdes# Create entries like below, to make all queries for 'example.com' and 585276612Sdes# 'example.org' go to the given list of nameservers. list zero or more 586276612Sdes# nameservers by hostname or by ipaddress. If you set stub-prime to yes, 587276612Sdes# the list is treated as priming hints (default is no). 588276612Sdes# With stub-first yes, it attempts without the stub if it fails. 589276612Sdes# stub-zone: 590276612Sdes# name: "example.com" 591276612Sdes# stub-addr: 192.0.2.68 592276612Sdes# stub-prime: no 593276612Sdes# stub-first: no 594276612Sdes# stub-zone: 595276612Sdes# name: "example.org" 596276612Sdes# stub-host: ns.example.com. 597276612Sdes 598276612Sdes# Forward zones 599276612Sdes# Create entries like below, to make all queries for 'example.com' and 600276612Sdes# 'example.org' go to the given list of servers. These servers have to handle 601276612Sdes# recursion to other nameservers. List zero or more nameservers by hostname 602276612Sdes# or by ipaddress. Use an entry with name "." to forward all queries. 603276612Sdes# If you enable forward-first, it attempts without the forward if it fails. 604276612Sdes# forward-zone: 605276612Sdes# name: "example.com" 606276612Sdes# forward-addr: 192.0.2.68 607276612Sdes# forward-addr: 192.0.2.73@5355 # forward to port 5355. 608276612Sdes# forward-first: no 609276612Sdes# forward-zone: 610276612Sdes# name: "example.org" 611276612Sdes# forward-host: fwd.example.com 612