Skip to content

Instantly share code, notes, and snippets.

@ei-grad
Created August 22, 2024 11:15
Show Gist options
  • Save ei-grad/7580bc472206b485f7adadf90f1cfeef to your computer and use it in GitHub Desktop.
Save ei-grad/7580bc472206b485f7adadf90f1cfeef to your computer and use it in GitHub Desktop.
Using `coredns` as local caching name server
. {
bind lo
#forward . /etc/resolv.dhcp.conf
forward . tls://1.1.1.1 tls://1.0.0.1 {
tls_servername cloudflare-dns.com
}
cache {
success 99840 259200 600
serve_stale
}
errors
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment