Guest User

Untitled

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