unbound.conf 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. server:
  2. verbosity: 1
  3. statistics-interval: 0
  4. statistics-cumulative: no
  5. extended-statistics: yes
  6. num-threads: 4
  7. # Listen only on loopback and pvt.example.com IPv4/IPv6 interfaces.
  8. # The default is to listen to localhost (127.0.0.1 and ::1).
  9. # The listen interfaces are not changed on reload, only on restart.
  10. interface: 127.0.0.1
  11. interface: ::1
  12. interface:
  13. interface:
  14. interface-automatic: no
  15. outgoing-port-permit: 32768-60999
  16. outgoing-port-avoid: 0-32767
  17. so-reuseport: yes
  18. ip-transparent: yes
  19. max-udp-size: 3072
  20. # Control which clients are allowed to make (recursive) queries
  21. # to this server. Specify classless netblocks with /size and action.
  22. # By default everything is refused, except for localhost.
  23. access-control: 127.0.0.0/8 allow
  24. access-control: ::1 allow
  25. access-control:
  26. access-control:
  27. chroot: ""
  28. username: "unbound"
  29. directory: "/etc/unbound"
  30. log-time-ascii: yes
  31. pidfile: "/var/run/unbound/unbound.pid"
  32. harden-glue: yes
  33. harden-dnssec-stripped: yes
  34. harden-below-nxdomain: yes
  35. harden-referral-path: yes
  36. qname-minimisation: yes
  37. aggressive-nsec: yes
  38. unwanted-reply-threshold: 10000000
  39. prefetch: yes
  40. prefetch-key: yes
  41. rrset-roundrobin: yes
  42. minimal-responses: yes
  43. module-config: "ipsecmod validator iterator"
  44. trust-anchor-signaling: yes
  45. root-key-sentinel: yes
  46. trusted-keys-file: /etc/unbound/keys.d/*.key
  47. auto-trust-anchor-file: "/var/lib/unbound/root.key"
  48. # Ignore chain of trust. Domain is treated as insecure.
  49. domain-insecure:
  50. domain-insecure:
  51. domain-insecure: "4.7.1.6.8.4.4.6.5.6.2.5.2.6.c.f.ip6.arpa"
  52. val-clean-additional: yes
  53. val-permissive-mode: no
  54. serve-expired: yes
  55. val-log-level: 1
  56. # By default, for a number of zones a small default 'nothing here'
  57. # reply is built-in. Query traffic is thus blocked. If you
  58. # wish to serve such zone you can unblock them by uncommenting one
  59. # of the nodefault statements below.
  60. # You may also have to use domain-insecure: zone to make DNSSEC work,
  61. # unless you have your own trust anchors for this zone.
  62. # local-zone: "localhost." nodefault
  63. # local-zone: "127.in-addr.arpa." nodefault
  64. # 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
  65. local-zone:
  66. local-zone:
  67. local-zone: "4.7.1.6.8.4.4.6.5.6.2.5.2.6.c.f.ip6.arpa" nodefault
  68. include: /etc/unbound/local.d/*.conf
  69. ipsecmod-enabled: no
  70. ipsecmod-hook:/usr/libexec/ipsec/_unbound-hook
  71. python:
  72. remote-control:
  73. control-enable: yes
  74. server-key-file: "/etc/unbound/unbound_server.key"
  75. server-cert-file: "/etc/unbound/unbound_server.pem"
  76. control-key-file: "/etc/unbound/unbound_control.key"
  77. control-cert-file: "/etc/unbound/unbound_control.pem"
  78. # Stub and Forward zones
  79. include: /etc/unbound/conf.d/*.conf
  80. # Stub zones.
  81. # Create entries like below, to make all queries for 'example.com' and
  82. # 'example.org' go to the given list of nameservers. list zero or more
  83. # nameservers by hostname or by ipaddress. If you set stub-prime to yes,
  84. # the list is treated as priming hints (default is no).
  85. # Consider adding domain-insecure: name and local-zone: name nodefault
  86. # to the server: section if the stub is a locally served zone.
  87. stub-zone:
  88. name: ""
  89. stub-addr:
  90. stub-addr:
  91. stub-zone:
  92. name: ""
  93. stub-addr:
  94. stub-addr:
  95. stub-zone:
  96. name: "4.7.1.6.8.4.4.6.5.6.2.5.2.6.c.f.ip6.arpa"
  97. stub-addr: 192.168.62.10
  98. stub-addr: fc62:5265:6448:6174::a
  99. # Forward zones
  100. # Create entries like below, to make all queries for 'example.com' and
  101. # 'example.org' go to the given list of servers. These servers have to handle
  102. # recursion to other nameservers. List zero or more nameservers by hostname
  103. # or by ipaddress. Use an entry with name "." to forward all queries.
  104. forward-zone:
  105. name: ""
  106. forward-addr:
  107. auth-zone:
  108. name: "."
  109. for-downstream: no
  110. for-upstream: yes
  111. fallback-enabled: yes
  112. master: b.root-servers.net
  113. master: c.root-servers.net
  114. master: e.root-servers.net
  115. master: f.root-servers.net
  116. master: g.root-servers.net
  117. master: k.root-servers.net