diff options
Diffstat (limited to 'python/knot_resolver_manager/datamodel/templates/dns64.lua.j2')
-rw-r--r-- | python/knot_resolver_manager/datamodel/templates/dns64.lua.j2 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/python/knot_resolver_manager/datamodel/templates/dns64.lua.j2 b/python/knot_resolver_manager/datamodel/templates/dns64.lua.j2 new file mode 100644 index 00000000..c5239f00 --- /dev/null +++ b/python/knot_resolver_manager/datamodel/templates/dns64.lua.j2 @@ -0,0 +1,17 @@ +{% from 'macros/common_macros.lua.j2' import string_table %} + +{% if cfg.dns64 %} +-- load dns64 module +modules.load('dns64') + +-- dns64.prefix +dns64.config({ + prefix = '{{ cfg.dns64.prefix.to_std().network_address|string }}', +{% if cfg.dns64.rev_ttl %} + rev_ttl = {{ cfg.dns64.rev_ttl.seconds() }}, +{% endif %} +{% if cfg.dns64.exclude_subnets %} + exclude_subnets = {{ string_table(cfg.dns64.exclude_subnets) }}, +{% endif %} +}) +{% endif %}
\ No newline at end of file |