fix(dns): coredns-custom — importer les blocs *.server à la racine du Corefile (sinon CoreDNS crash) #40

Merged
arcodange merged 1 commits from arcodange/coredns-custom-import into main 2026-07-24 12:44:34 +02:00
@@ -54,7 +54,11 @@
cache 30
loop
reload
loadbalance
import /etc/coredns/custom/*.override
import /etc/coredns/custom/*.server
forward . {{ pihole_ips | map('regex_replace', '^(.*)$', '\1:53') | join(' ') }}
}
# Les fichiers *.server contiennent des BLOCS SERVEUR complets (ex: `arcodange.lab:53 {…}`) :
# leur import doit vivre au niveau racine du Corefile. À l'intérieur de `.:53 {}`,
# CoreDNS crashe au parse (« Unknown directive 'arcodange.lab:53' ») — vécu le 2026-07-24.
import /etc/coredns/custom/*.server