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