diff --git a/templates/internal.conf.j2 b/templates/internal.conf.j2 index ee4e5fa..dacfcf1 100644 --- a/templates/internal.conf.j2 +++ b/templates/internal.conf.j2 @@ -10,6 +10,8 @@ server: {% endfor %} {% endfor %} -{% for entry in services.unbound.internal.local.CNAME %} - local-data: "{{ entry.service }}.redxen.localhost. 60 IN CNAME {{ entry.host }}.redxen.localhost." +{% for entry in services.unbound.internal.local.A %} +{% for host in groups[entry.group] %} + local-data: "{{ entry.service }}.redxen.localhost. 60 IN A {{ hostvars[host]['ansible_ens10']['ipv4']['address'] }}" +{% endfor %} {% endfor %}