unbound.conf 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # unbound-sec base configuration
  2. # Drop-in overrides: any *.conf file in /config is included (lexicographic order).
  3. server:
  4. verbosity: 1
  5. module-config: "validator cachedb iterator"
  6. statistics-interval: 600
  7. statistics-cumulative: yes
  8. # 0 avoids the cachedb warning about serve-expired for external cache entries
  9. serve-expired-reply-ttl: 0
  10. interface: 0.0.0.0@5053
  11. do-ip4: yes
  12. do-ip6: no
  13. do-udp: yes
  14. do-tcp: yes
  15. so-sndbuf: 0
  16. do-daemonize: no
  17. # LAN + loopback by default (drop-in compatible with crazymax/unbound).
  18. # Tighten via drop-in in /config for larger exposures, e.g.:
  19. # access-control: 10.0.0.0/8 refuse
  20. access-control: 10.0.0.0/8 allow
  21. access-control: 127.0.0.0/8 allow
  22. access-control: 172.16.0.0/12 allow
  23. access-control: 192.168.0.0/16 allow
  24. # Never return these ranges in responses (DNS-rebinding protection)
  25. private-address: 10.0.0.0/8
  26. private-address: 127.0.0.0/8
  27. private-address: 169.254.0.0/16
  28. private-address: 172.16.0.0/12
  29. private-address: 192.168.0.0/16
  30. private-address: ::1/128
  31. private-address: fc00::/7
  32. private-address: fe80::/10
  33. # Do not leak software identity/version via CHAOS queries
  34. hide-identity: yes
  35. hide-version: yes
  36. directory: "/etc/unbound"
  37. logfile: ""
  38. pidfile: "/run/unbound/unbound.pid"
  39. identity: "unbound-sec"
  40. # RFC5011 anchor: persistent dir (named volume in compose), initialized
  41. # once by the entrypoint — learned keys survive restarts.
  42. auto-trust-anchor-file: "/var/unbound/root.key"
  43. tls-cert-bundle: /etc/ssl/certs/ca-certificates.crt
  44. include: "/config/*.conf"