mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-09 12:17:13 +00:00
- Replace NXDOMAIN for AAAA with fallthrough to avoid SERVFAIL and Node EAI_AGAIN - Add robust Docker-in-Docker DNS health check (A + no SERVFAIL) - Add Node/getaddrinfo DNS validation (matches CSP checker behavior) - Add make target to stop CI compose stack without removing volumes This prevents DNS resolver failures inside DinD and makes CSP health checks reliable. https://chatgpt.com/share/696aba87-e5d4-800f-871c-aac049201fb7
28 lines
415 B
Cheetah
28 lines
415 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 . /etc/resolv.conf
|
|
log
|
|
errors
|
|
}
|