diff --git a/templates/internal.conf.j2 b/templates/internal.conf.j2 index 2aff739..207ef3e 100644 --- a/templates/internal.conf.j2 +++ b/templates/internal.conf.j2 @@ -5,9 +5,15 @@ server: {% endfor %} {% for entry in unbound.internal.local.SRV %} + +{% if entry.rawhost|default(false) %} + local-data: "_{{ entry.service }}._tcp.redxen.localhost. 60 IN SRV 0 5 {{ entry.port }} {{ entry.rawhost }}." +{% else %} {% for host in groups[entry.group] %} local-data: "_{{ entry.service }}._tcp.redxen.localhost. 60 IN SRV 0 5 {{ entry.port }} {{ host }}.redxen.localhost." {% endfor %} +{% endif %} + {% endfor %} {% for entry in unbound.internal.local.A %}