dataset/seed/unbound/templates/risotto.conf

34 lines
1.1 KiB
Text
Raw Permalink Normal View History

2023-01-17 21:43:32 +01:00
#RISOTTO: do not compare
2022-03-08 19:42:28 +01:00
server:
2023-06-23 08:12:05 +02:00
{% for interface in general.network.interfaces_list %}
interface: {{ general.network['interface_' + interface|string]['ip_eth' + interface|string] }}
{% endfor %}
2022-03-08 19:42:28 +01:00
do-ip4: yes
do-ip6: no
use-syslog: yes
2023-06-23 08:12:05 +02:00
{% for interface in general.network.interfaces_list %}
access-control: {{ general.network['interface_' + interface|string]['ip_eth' + interface|string] }} allow
{% endfor %}
{% for authority in general.dns_resolver.forward_zones.unbound_forward_address %}
access-control: {{ authority.unbound_allowed_client }} allow
{% endfor %}
2022-03-08 19:42:28 +01:00
do-not-query-localhost: no
auto-trust-anchor-file: "/srv/unbound/root.key"
remote-control:
control-interface: 127.0.0.1
2023-06-23 08:12:05 +02:00
{% for authority in general.dns_resolver.forward_zones.unbound_forward_address %}
{% for zone in authority.unbound_forward_zones %}
2023-07-31 15:30:32 +02:00
stub-zone:
2023-06-23 08:12:05 +02:00
name: "{{ zone }}"
2023-07-31 15:30:32 +02:00
stub-addr: {{ authority.unbound_allowed_client }}
2022-03-08 19:42:28 +01:00
2023-06-23 08:12:05 +02:00
{% endfor %}
{% endfor %}
2022-03-08 19:42:28 +01:00
forward-zone:
name: "."
2023-06-23 08:12:05 +02:00
{% for forward in general.dns_resolver.unbound_default_forwards %}
forward-addr: {{ forward }}
{% endfor %}