From 65a6657cbfa4700e367db168618a7f47e75a25d5 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 25 Aug 2025 21:32:05 +0200 Subject: [PATCH] dn --- dns/dns.yaml | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/dns/dns.yaml b/dns/dns.yaml index 31515c6..6a280a9 100644 --- a/dns/dns.yaml +++ b/dns/dns.yaml @@ -97,31 +97,22 @@ data: fallthrough } - # Wildcard A servi ici - template IN A apps.undercloud.dev { - match ^(.+)\.apps\.undercloud\.dev\.$ - answer "{{.Name}} 300 IN A 93.228.39.77" - } - - #template IN A *.apps.undercloud.dev { - # rcode NOERROR - # answer "{{.Name}} 60 IN A 93.228.39.77" - #} - - # Tout le reste va vers etcd sur 5533 - forward . 127.0.0.1:5533 - } - apps.undercloud.dev:5533 { - bind 127.0.0.1 - errors - log + # 1) Try etcd first; if no A found, fall through to wildcard etcd { path /skydns endpoint http://etcd.dns.svc:2379 + fallthrough + } + + # 2) Wildcard A default + template IN A apps.undercloud.dev { + match ^(.+)\.apps\.undercloud\.dev\.?$ + answer "{{.Name}} 300 IN A 93.228.39.77" } } + --- apiVersion: apps/v1