From a8294e6660b7efdb0a77f27dabd24ef5a819185a Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Mon, 14 Jul 2025 17:51:19 +0200 Subject: [PATCH] fix: default record type --- templates/unbound/zones.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/unbound/zones.conf.j2 b/templates/unbound/zones.conf.j2 index 065c859..2b7aaa5 100644 --- a/templates/unbound/zones.conf.j2 +++ b/templates/unbound/zones.conf.j2 @@ -13,7 +13,7 @@ server: {% elif record.type == 'PTR' %} local-data: "{{ record.name }}. IN PTR {{ record.value }}" {% else %} - local-data: "{{ record.name }}. IN {{ record.type | default('A') }} {{ record.value }}" + local-data: "{{ record.name }}. IN {{ record.get('type', 'A') }} {{ record.value }}" {% endif %} {% endfor %}