summaryrefslogtreecommitdiff
path: root/playbooks/roles/labdns/templates/volumes/unbound/forward-records.conf
blob: 0f5af53adb450fecaa10fa84f227a31c1ca8cdda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
forward-zone:
  name: "."
{% for forward_addr in forward_addrs %}
  forward-addr: "{{ forward_addr }}"
  forward-tls-upstream: yes
{% endfor %}

{% for meshpoint in mesh.values() %}
{% if meshpoint.forward_dns %}
# {{ meshpoint.domain }}
forward-zone:
  name: "{{ meshpoint.domain }}"
  forward-addr: "{{ meshpoint.gateway }}"
{% endif %}
{% endfor %}

server:
{% for meshpoint in mesh.values() %}
  private-domain: "{{ meshpoint.domain }}"
{% endfor %}