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

@ -26,9 +26,8 @@ remote-control:
control-enable: yes
control-interface: /var/run/unbound.sock
{% for zone in unbound_zones %}
auth-zone:
name: "home.foo.sh"
zonefile: "/var/unbound/db/home.foo.sh"
auth-zone:
name: "20.172.in-addr.arpa"
zonefile: "/var/unbound/db/20.172.in-addr.arpa"
name: "{{ zone }}"
zonefile: "{{ unbound_zonedir }}/{{ zone }}"
{% endfor %}

View file

@ -26,9 +26,8 @@ remote-control:
control-enable: yes
control-interface: /var/run/unbound.sock
{% for zone in unbound_zones %}
auth-zone:
name: "home.foo.sh"
zonefile: "/var/unbound/db/home.foo.sh"
auth-zone:
name: "20.172.in-addr.arpa"
zonefile: "/var/unbound/db/20.172.in-addr.arpa"
name: "{{ zone }}"
zonefile: "{{ unbound_zonedir }}/{{ zone }}"
{% endfor %}

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: "cam.foo.sh"
zonefile: "/var/lib/unbound/cam.foo.sh"
auth-zone:
name: "26.20.172.in-addr.arpa"
zonefile: "/var/lib/unbound/26.20.172.in-addr.arpa"
name: "{{ zone }}"
zonefile: "{{ unbound_zonedir }}/{{ zone }}"
{% endfor %}

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

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: "print.foo.sh"
zonefile: "/var/lib/unbound/print.foo.sh"
auth-zone:
name: "24.20.172.in-addr.arpa"
zonefile: "/var/lib/unbound/24.20.172.in-addr.arpa"
name: "{{ zone }}"
zonefile: "{{ unbound_zonedir }}/{{ zone }}"
{% endfor %}