Add raw host

This commit is contained in:
Alex 2020-08-18 16:24:44 +02:00
parent 33c4e6de98
commit 6f4943c549
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
1 changed files with 6 additions and 0 deletions

View File

@ -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 %}