mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-11 21:26:44 +00:00
Four system scripts (wsl2-systemd-enable, wsl-dns-setup, tls-trust
linux/wsl2) sourced scripts/meta/env/{runtime,defaults}.sh — both
collapsed into load.sh by the SPOT refactor (80c396b8). Route them
through load.sh so INFINITO_IS_WSL2/INFINITO_CONTAINER resolve via
the generated .env.
Also rename the CoreDNS template placeholders to the INFINITO_*
namespace: \${IP4}/\${DOMAIN_RE} -> \${INFINITO_IP4}/\${INFINITO_DOMAIN_RE}.
env/ci.env carries the prefixed names since the env-prefix lint
(22cf6f38f), so envsubst was rendering empty answers — NXDOMAIN on
every CoreDNS query, breaking test-dns.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
28 lines
500 B
Cheetah
28 lines
500 B
Cheetah
.:53 {
|
|
template IN A {
|
|
match ^${INFINITO_DOMAIN_RE}\.$
|
|
answer "{{ .Name }} 60 IN A ${INFINITO_IP4}"
|
|
fallthrough
|
|
}
|
|
|
|
template IN A {
|
|
match ^(.*)\.${INFINITO_DOMAIN_RE}\.$
|
|
answer "{{ .Name }} 60 IN A ${INFINITO_IP4}"
|
|
fallthrough
|
|
}
|
|
|
|
template IN AAAA {
|
|
match ^${INFINITO_DOMAIN_RE}\.$
|
|
fallthrough
|
|
}
|
|
|
|
template IN AAAA {
|
|
match ^(.*)\.${INFINITO_DOMAIN_RE}\.$
|
|
fallthrough
|
|
}
|
|
|
|
forward . 1.1.1.1 8.8.8.8 # noqa: hardcoded-dns-resolver
|
|
log
|
|
errors
|
|
}
|