unbound.conf 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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
  25. private-address: 10.0.0.0/8
  26. private-address: 169.254.0.0/16
  27. private-address: 172.16.0.0/12
  28. private-address: 192.168.0.0/16
  29. # Do not leak software identity/version via CHAOS queries
  30. hide-identity: yes
  31. hide-version: yes
  32. directory: "/etc/unbound"
  33. logfile: ""
  34. pidfile: "/run/unbound/unbound.pid"
  35. identity: "unbound-sec"
  36. auto-trust-anchor-file: "/run/unbound/root.key"
  37. tls-cert-bundle: /etc/ssl/certs/ca-certificates.crt
  38. include: "/config/*.conf"