| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- # unbound-sec base configuration
- # Drop-in overrides: any *.conf file in /config is included (lexicographic order).
- server:
- verbosity: 1
- module-config: "validator cachedb iterator"
- statistics-interval: 600
- statistics-cumulative: yes
- # 0 avoids the cachedb warning about serve-expired for external cache entries
- serve-expired-reply-ttl: 0
- interface: 0.0.0.0@5053
- do-ip4: yes
- do-ip6: no
- do-udp: yes
- do-tcp: yes
- so-sndbuf: 0
- do-daemonize: no
- # LAN + loopback by default (drop-in compatible with crazymax/unbound).
- # Tighten via drop-in in /config for larger exposures, e.g.:
- # access-control: 10.0.0.0/8 refuse
- access-control: 10.0.0.0/8 allow
- access-control: 127.0.0.0/8 allow
- access-control: 172.16.0.0/12 allow
- access-control: 192.168.0.0/16 allow
- # Never return these ranges in responses (DNS-rebinding protection)
- private-address: 10.0.0.0/8
- private-address: 127.0.0.0/8
- private-address: 169.254.0.0/16
- private-address: 172.16.0.0/12
- private-address: 192.168.0.0/16
- private-address: ::1/128
- private-address: fc00::/7
- private-address: fe80::/10
- # Do not leak software identity/version via CHAOS queries
- hide-identity: yes
- hide-version: yes
- directory: "/etc/unbound"
- logfile: ""
- pidfile: "/run/unbound/unbound.pid"
- identity: "unbound-sec"
- # RFC5011 anchor: persistent dir (named volume in compose), initialized
- # once by the entrypoint — learned keys survive restarts.
- auto-trust-anchor-file: "/var/unbound/root.key"
- tls-cert-bundle: /etc/ssl/certs/ca-certificates.crt
- include: "/config/*.conf"
|