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 %}