Skip to content

Instantly share code, notes, and snippets.

@jbergstroem
Created September 21, 2021 13:06
Show Gist options
  • Save jbergstroem/b0841e9d7c9133cfcc4d776024007c29 to your computer and use it in GitHub Desktop.
Save jbergstroem/b0841e9d7c9133cfcc4d776024007c29 to your computer and use it in GitHub Desktop.
Local unbound with dns blocking and looking up via cloudflare
server:
username: jbergstroem
port: 53
chroot: ""
interface: 127.0.0.1
do-ip4: yes
do-udp: yes
do-tcp: yes
logfile: /var/tmp/unbound.log
verbosity: 0
log-queries: no
prefer-ip6: no
auto-trust-anchor-file: "/usr/local/etc/unbound/root.key"
tls-upstream: yes
tls-cert-bundle: "/usr/local/etc/openssl/cert.pem"
access-control: 127.0.0.1/8 allow
access-control: 192.168.0.0/16 allow
private-address: 192.168.0.0/16
private-address: 169.254.0.0/16
private-address: 172.16.0.0/12
private-address: 10.0.0.0/8
private-address: fd00::/8
private-address: fe80::/10
harden-glue: yes
harden-dnssec-stripped: yes
use-caps-for-id: no
edns-buffer-size: 1472
prefetch: yes
num-threads: 1
so-rcvbuf: 1m
qname-minimisation: yes
prefetch: yes
rrset-roundrobin: yes
use-caps-for-id: yes
include: "/Users/jbergstroem/.config/unbound/unbound-nxdomain.blacklist"
forward-zone:
name: "."
forward-addr: 1.1.1.1@853
forward-addr: 1.0.0.1@853
forward-ssl-upstream: yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment