Files
computer-playbook/compose/Corefile.tmpl
T
kevinveenbirkenbach 84e592f630 fix(dns): avoid CoreDNS forwarding via /etc/resolv.conf
CoreDNS was forwarding external queries via its own /etc/resolv.conf,
which caused SERVFAIL in systemd-based CI containers due to a broken
Docker/host resolver chain.

Switch to explicit upstream DNS servers (1.1.1.1, 8.8.8.8) to ensure
reliable external name resolution (e.g. pypi.org, google.com) in CI.

https://chatgpt.com/share/69837671-6884-800f-8ded-706b35e82bab
2026-02-04 17:40:12 +01:00

28 lines
414 B
Cheetah

.:53 {
template IN A {
match ^${DOMAIN_RE}\.$
answer "{{ .Name }} 60 IN A ${IP4}"
fallthrough
}
template IN A {
match ^(.*)\.${DOMAIN_RE}\.$
answer "{{ .Name }} 60 IN A ${IP4}"
fallthrough
}
template IN AAAA {
match ^${DOMAIN_RE}\.$
fallthrough
}
template IN AAAA {
match ^(.*)\.${DOMAIN_RE}\.$
fallthrough
}
forward . 1.1.1.1 8.8.8.8
log
errors
}