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