I already configured with stubby. I am no longer an admirer of these solutions. I think you'd better invest in OpnSense, with Squid 4, with SSL. I prefer the local DoT solutions, without intermediate commercial servers.
This is my current unbound.conf, without Fowader zone.
Code:
server:
# port to answer queries from
port: 40
verbosity: 1
do-ip4: yes
do-ip6: yes
do-udp: yes
do-tcp: yes
# don't be picky about interfaces but consider your firewall
interface: 0.0.0.0
interface: ::0
access-control: 0.0.0.0/0 refuse
access-control: 127.0.0.0/8 allow
access-control: 10.0.30.0/24 allow
access-control: ::0/0 refuse
access-control: ::1 allow
# private networks:
private-address: 10.0.0.0/8
private-address: 172.16.0.0/12
private-address: 192.168.0.0/16
private-address: 169.254.0.0/16
# no threads and no memory slabs for threads
num-threads: 1
msg-cache-slabs: 2
rrset-cache-slabs: 2
infra-cache-slabs: 2
key-cache-slabs: 2
# tiny memory cache
key-cache-size: 8m
msg-cache-size: 4m
rrset-cache-size: 4m
cache-min-ttl: 300
cache-max-ttl: 86400
edns-buffer-size: 1472
delay-close: 10000
neg-cache-size: 4M
serve-expired: yes
# prefetch
prefetch: yes
prefetch-key: yes
minimal-responses: yes
# gentle on recursion
hide-identity: yes
hide-version: yes
do-not-query-localhost: no
qname-minimisation: yes
harden-dnssec-stripped: yes
harden-below-nxdomain: yes
harden-algo-downgrade: no
harden-glue: yes
aggressive-nsec: yes
# Self jail Unbound with user "unbound" to /var/lib/unbound
username: "nobody"
directory: "/opt/var/lib/unbound"
chroot: "/opt/var/lib/unbound"
root-hints: "/opt/var/lib/unbound/root.hints"
# DNSSEC and DNS-over-TLS
module-config: "validator iterator"
auto-trust-anchor-file: "/opt/var/lib/unbound/root.key"
domain-insecure: "vaka.me"
# The pid file
pidfile: "/opt/var/run/unbound.pid"
# Adblock blacklist
include: /jffs/adservers.txt
remote-control:
control-enable: yes
control-interface: 127.0.0.1
control-port: 953
server-key-file: "/opt/var/lib/unbound/unbound_server.key"
server-cert-file: "/opt/var/lib/unbound/unbound_server.pem"
control-key-file: "/opt/var/lib/unbound/unbound_control.key"
control-cert-file: "/opt/var/lib/unbound/unbound_control.pem"