Skip to content

Instantly share code, notes, and snippets.

@slonka
Created December 16, 2022 09:37
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 slonka/f47590177d749b6ee774ad7e31cffc15 to your computer and use it in GitHub Desktop.
Save slonka/f47590177d749b6ee774ad7e31cffc15 to your computer and use it in GitHub Desktop.
coredns config with logging
.:{{ .CoreDNSPort }} {
forward . 127.0.0.1:{{ .EnvoyDNSPort }}
alternate NOTIMP,FORMERR,NXDOMAIN,SERVFAIL,REFUSED . /etc/resolv.conf
prometheus localhost:{{ .PrometheusPort }}
errors
log
}
.:{{ .CoreDNSEmptyPort }} {
template ANY ANY . {
rcode NXDOMAIN
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment