Advertisement
Guest User

lookup.mylan.local

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