Configurable variables

This commit is contained in:
135
2023-10-13 12:38:40 +03:00
parent 69be69ebb0
commit 1d34e1324c
5 changed files with 37 additions and 12 deletions

View File

@@ -6,7 +6,13 @@
-- Note: If you provide your own Lua configuration file, consider
-- running rootkeys.lua too.
dofile("/usr/share/pdns-recursor/lua-config/rootkeys.lua")
-- zoneToCache(".", "url", "https://www.internic.net/domain/root.zone", { refreshPeriod = 0 })
{% if root_cached == 'file' %}
zoneToCache(".", "file", "/etc/powerdns/root.zone", { refreshPeriod = 0 })
addNTA('mm', "private MM domain")
addNTA('miranda-media.net', "fix DNSSEC issue for MM domain")
{% else %}
zoneToCache(".", "url", "https://www.internic.net/domain/root.zone", { refreshPeriod = 0 })
{% endif %}
{% if nta_lst is defined and nta_lst | length > 0 %}
{% for zone, description in nta_lst.items() %}
addNTA("{{ zone }}", "{{ description }}")
{% endfor %}
{% endif %}