26 lines
893 B
Text
26 lines
893 B
Text
|
|
# Géré par Set-OPS (rôle client_unbound). Ne pas éditer à la main.
|
||
|
|
# Résolveur local : cache + récursion (ou forward), stub-zone vers l'autoritatif interne.
|
||
|
|
server:
|
||
|
|
interface: {{ client_unbound_ecoute }}
|
||
|
|
access-control: 127.0.0.0/8 allow
|
||
|
|
hide-identity: yes
|
||
|
|
hide-version: yes
|
||
|
|
prefetch: yes
|
||
|
|
do-ip6: no
|
||
|
|
# La zone interne n'est pas signée DNSSEC (PowerDNS autoritatif, dnssec off).
|
||
|
|
domain-insecure: "{{ client_unbound_zone_interne }}"
|
||
|
|
|
||
|
|
# Zone interne : déléguée à l'autoritatif (PowerDNS).
|
||
|
|
stub-zone:
|
||
|
|
name: "{{ client_unbound_zone_interne }}"
|
||
|
|
stub-addr: {{ client_unbound_dns_autoritatif }}
|
||
|
|
{% if client_unbound_transitaires | length > 0 %}
|
||
|
|
|
||
|
|
# Internet : forward vers l'upstream réseau (au lieu de la récursion directe).
|
||
|
|
forward-zone:
|
||
|
|
name: "."
|
||
|
|
{% for t in client_unbound_transitaires %}
|
||
|
|
forward-addr: {{ t }}
|
||
|
|
{% endfor %}
|
||
|
|
{% endif %}
|