Files
computer-playbook/compose/Corefile
T
kevinveenbirkenbach d734a15ad6 feat(ci,webserver): add localhost DNS + default vhost 404 assertion
- switch CI DNS to CoreDNS-based *.localhost resolution (A/AAAA → loopback)
- set PRIMARY_DOMAIN to localhost for CI deploys
- add explicit DNS resolution assert for test.localhost
- deploy explicit default_server vhost returning 404 text/plain
- assert default vhost behavior via HTTP before app domains exist

https://chatgpt.com/share/6952cf2a-bbd4-800f-b2b8-c4baba66e301
2025-12-29 19:57:41 +01:00

18 lines
273 B
Plaintext

.:53 {
template IN A {
match (.*)\.localhost\.
answer "{{ .Name }} 60 IN A 127.0.0.1"
fallthrough
}
template IN AAAA {
match (.*)\.localhost\.
answer "{{ .Name }} 60 IN AAAA ::1"
fallthrough
}
forward . /etc/resolv.conf
log
errors
}