Skip to content

Instantly share code, notes, and snippets.

@passcod
Created June 23, 2021 14:12
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 passcod/f79bcaa6af8c38b880418873a0e93e00 to your computer and use it in GitHub Desktop.
Save passcod/f79bcaa6af8c38b880418873a0e93e00 to your computer and use it in GitHub Desktop.
Coredns with one local-only zone
your.zone.tld {
ready
cancel
loop
log
loadbalance round_robin
auto {
directory /local/zones (.*) {1}
}
forward . 1.1.1.1 1.0.0.1
errors
}
. {
ready
cancel
loop
local
forward . 1.1.1.1 1.0.0.1
errors
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment