unbound: Don't hardcode zones

This commit is contained in:
Timo Makinen 2024-05-09 18:42:42 +00:00
parent 3b2c2a453e
commit fd495036f2
5 changed files with 20 additions and 25 deletions

View file

@ -30,9 +30,8 @@ forward-zone:
name: "."
forward-addr: 172.20.20.10@853#dns.home.foo.sh
{% for zone in unbound_zones %}
auth-zone:
name: "oob.foo.sh"
zonefile: "/var/lib/unbound/oob.foo.sh"
auth-zone:
name: "25.20.172.in-addr.arpa"
zonefile: "/var/lib/unbound/25.20.172.in-addr.arpa"
name: "{{ zone }}"
zonefile: "{{ unbound_zonedir }}/{{ zone }}"
{% endfor %}