Skip to content

Instantly share code, notes, and snippets.

@gallegogt
Created May 28, 2021 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gallegogt/4a25393ec0174fb7e7f86d85cfeb56c1 to your computer and use it in GitHub Desktop.
Save gallegogt/4a25393ec0174fb7e7f86d85cfeb56c1 to your computer and use it in GitHub Desktop.
Unbound DNS Config
include: "/etc/unbound/unbound.conf.d/*.conf"
server:
num-threads: 2
verbosity: 1
root-hints: /etc/unbound/root.hints
# auto-trust-anchor-file: /var/lib/unbound/root.key
interface: 0.0.0.0
interface: ::0
max-udp-size: 3072
access-control: 0.0.0.0/0 refuse
access-control: 10.5.0.0/24 allow
access-control: 127.0.0.1 allow
private-address: 10.5.0.0/24
hide-identity: yes
hide-version: yes
harden-glue: yes
harden-dnssec-stripped: yes
harden-referral-path: yes
unwanted-reply-threshold: 10000000
val-log-level: 1
cache-min-ttl: 1800
cache-max-ttl: 14400
prefetch: yes
qname-minimisation: yes
prefetch-key: yes
forward-zone:
name: "."
forward-addr: 172.31.0.2
forward-addr: 1.1.1.1
forward-addr: 8.8.8.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment