infrastructure/ansible/roles/coredns_docker_proxy/files/Corefile
Jake Howard c6bae0f797
All checks were successful
/ terraform (push) Successful in 33s
/ ansible (push) Successful in 1m42s
Do simple endsWith matching for docker view
This saves the need for a regex
2024-01-14 22:27:02 +00:00

22 lines
329 B
Plaintext

. {
errors
cancel
# Only allow requests to `.docker` records
view docker {
expr name() endsWith '.docker.'
}
# Strip the `.docker` suffix
rewrite name suffix .docker . answer auto
# Forward requests to Docker's DNS server
forward . 127.0.0.11
}
. {
acl {
block
}
}