Skip to content

Instantly share code, notes, and snippets.

@shawnzhu
Last active August 13, 2023 18:20
Show Gist options
  • Save shawnzhu/50aa0b1f50d30290f91c56159fee7e6d to your computer and use it in GitHub Desktop.
Save shawnzhu/50aa0b1f50d30290f91c56159fee7e6d to your computer and use it in GitHub Desktop.
configure unbound as DOH server
server:
verbosity: 1
interface: 0.0.0.0@443
tls-service-key: "cert.key"
tls-service-pem: "cert.pem"
# TLS 1.3 only
tls-ciphersuites: "TLS_AES_128_GCM_SHA256:TLS_AES_128_CCM_8_SHA256:TLS_AES_128_CCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256"
https-port: 443
access-control: 0.0.0.0/0 allow_snoop
access-control: ::0/0 allow_snoop
private-address: 192.168.0.0/16
private-address: fe80::/10
# disable DNSSEC
module-config: "iterator"
# uncomment to debug via root user
# username: "root"
# private
private-domain: "lan"
unblock-lan-zones: yes
insecure-lan-zones: yes
# disable DNSSEC validation
domain-insecure: "lan"
forward-zone:
name: "."
forward-addr: <ip-address-of-dns-server>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment