2022-03-08 19:42:28 +01:00
|
|
|
server:
|
2022-06-24 19:00:16 +02:00
|
|
|
%for %%interface in %%range(%%len(%%zones_list))
|
2022-03-08 19:42:28 +01:00
|
|
|
interface: %%getVar('ip_eth' + %%str(%%interface))
|
|
|
|
%end for
|
|
|
|
do-ip4: yes
|
|
|
|
do-ip6: no
|
|
|
|
use-syslog: yes
|
2022-06-24 19:00:16 +02:00
|
|
|
%for %%interface in %%range(%%len(%%zones_list))
|
2022-03-08 19:42:28 +01:00
|
|
|
access-control: %%getVar('ip_eth' + %%str(%%interface)) allow
|
|
|
|
%end for
|
|
|
|
%for %%allowed in %%unbound_allowed_client
|
|
|
|
access-control: %%allowed allow
|
|
|
|
%end for
|
|
|
|
do-not-query-localhost: no
|
|
|
|
auto-trust-anchor-file: "/srv/unbound/root.key"
|
|
|
|
|
|
|
|
remote-control:
|
|
|
|
control-interface: 127.0.0.1
|
|
|
|
|
|
|
|
%for %%authority in %%unbound_forward_address
|
|
|
|
%for %%zone in %%authority.unbound_forward_zones
|
|
|
|
forward-zone:
|
|
|
|
name: "%%zone"
|
2022-07-04 15:44:18 +02:00
|
|
|
forward-addr: %%get_ip(%%str(%%authority))
|
2022-03-08 19:42:28 +01:00
|
|
|
|
|
|
|
%end for
|
|
|
|
%end for
|
|
|
|
forward-zone:
|
|
|
|
name: "."
|
|
|
|
%for %%forward in %%unbound_default_forwards
|
|
|
|
forward-addr: %%forward
|
|
|
|
%end for
|
|
|
|
# forward-first: no
|