ansible/roles/unbound/templates/recursive.conf.j2

33 lines
910 B
Plaintext
Raw Normal View History

# {{ ansible_managed }}
2020-04-13 16:35:09 +02:00
server:
# Timestamps use UTC ASCII instead of UNIX epoch.
2020-04-13 16:35:09 +02:00
log-time-ascii: yes
# Only log errors.
verbosity: 3
2020-04-18 16:23:57 +02:00
# "" sends logs to stderr, journalctl will pick things up.
logfile: ""
do-ip4: yes
# FIXME: IPv6 deployment... someday...
do-ip6: no
2020-04-13 16:35:09 +02:00
# IP addresses on which to listen.
interface: 10.{{ subnet_ids.ap }}.0.{{ dns_host_suffix }}
interface: 10.{{ subnet_ids.users_wired }}.0.{{ dns_host_suffix }}
interface: 10.{{ subnet_ids.users_wifi }}.0.{{ dns_host_suffix }}
# By default, anything other than localhost is refused.
# Whitelist some subnets:
access-control: 10.{{ subnet_ids.ap }}.0.0/16 allow
access-control: 10.{{ subnet_ids.users_wired }}.0.0/16 allow
access-control: 10.{{ subnet_ids.users_wifi }}.0.0/16 allow
num-threads: {{ ansible_processor_vcpus }}
private-address: 10.0.0.0/8