knot: rewrite role

This commit is contained in:
ace
2024-01-20 04:26:37 +03:00
parent 37225e7895
commit bf1fae3c45
11 changed files with 104 additions and 36 deletions

View File

@ -1,4 +1,15 @@
---
knot_version: ""
# XDP datapath options
# Note: rfc2136 aka nsupdate aka dynamic update
# not working with XDP
knot_xdp: false
knot_xdp_interface: "eth0"
# QUIC protocol
knot_quic: false
knot_conf: |
# This is a sample of a minimal configuration file for Knot DNS.
# See knot.conf(5) or refer to the server documentation.
@ -8,7 +19,16 @@ knot_conf: |
user: knot:knot
listen: [ 0.0.0.0@53, ::@53 ]
udp-max-payload: 1232
{% if knot_quic %}
listen-quic: [ 0.0.0.0, :: ]
{% endif %}
{% if knot_xdp %}
xdp:
listen: {{ knot_xdp_interface }}
udp: true
tcp: true
quic: true
{% endif %}
log:
- target: syslog
any: debug