2026-01-19 15:06:34 +03:00
|
|
|
server:
|
2026-02-06 17:36:47 +03:00
|
|
|
do-ip4: yes
|
|
|
|
|
do-ip6: no
|
|
|
|
|
do-udp: yes
|
|
|
|
|
do-tcp: yes
|
|
|
|
|
hide-identity: yes
|
|
|
|
|
hide-version: yes
|
|
|
|
|
harden-glue: yes
|
|
|
|
|
use-caps-for-id: yes
|
2026-01-19 15:06:34 +03:00
|
|
|
do-not-query-localhost: no
|
|
|
|
|
{% for interface in unbound_listen_interfaces %}
|
|
|
|
|
interface: {{ interface }}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% for access in unbound_access_control %}
|
|
|
|
|
access-control: {{ access }}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
2026-02-06 17:36:47 +03:00
|
|
|
# Consul ne supporte pas DNSSEC
|
|
|
|
|
# FIXME: domain-insecure: "consul"
|
|
|
|
|
|
|
|
|
|
{% for zone in unbound_stub_zones %}
|
2026-01-19 15:06:34 +03:00
|
|
|
stub-zone:
|
|
|
|
|
name: "{{ zone.name }}"
|
|
|
|
|
stub-addr: {{ zone.stub_to }}
|
|
|
|
|
stub-no-cache: {{ zone.no_cache | default('yes') }}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
2026-02-06 17:36:47 +03:00
|
|
|
{% for zone in unbound_forward_zones %}
|
2026-01-19 15:06:34 +03:00
|
|
|
forward-zone:
|
|
|
|
|
name: "{{ zone.name }}"
|
|
|
|
|
forward-addr: {{ zone.forward_to }}
|
|
|
|
|
{% endfor %}
|