hac/ansible/roles/knot/templates/knot.conf.j2
Ada 30cd1289c0
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Add knot authoritative dns
2024-04-18 20:42:26 +02:00

32 lines
543 B
Django/Jinja

server:
rundir: "/run/knot"
user: knot:knot
automatic-acl: on
listen: [ {{ listen_ip }}@53 ]
log:
- target: syslog
any: info
database:
storage: "/var/lib/knot"
acl:
{% for acl in acls %}
- id: {{ acl.id }}
address: {{ acl.address }}
action: {{ acl.action }}
{% endfor %}
template:
- id: default
storage: "/var/lib/knot/zones"
file: "%s.zone"
dnssec-signing: on
serial-policy: dateserial
zone:
{% for zone in zones %}
- domain: {{ zone.domain }}
acl: {{ zone.acl }}
{% endfor %}