mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 19:01:54 +00:00
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
28 lines
414 B
Cheetah
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
|
|
}
|