From 097ada6ec4f393e544744a7794aa510f33d755ad Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Mon, 14 Jul 2025 17:54:01 +0200 Subject: [PATCH] fix: default record type A --- 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 2b7aaa5..06769c5 100644 --- a/templates/unbound/zones.conf.j2 +++ b/templates/unbound/zones.conf.j2 @@ -23,7 +23,7 @@ server: {% set reverse_zones = {} %} {% for zone in unbound_zones %} {% for record in zone.records %} -{% if record.type == 'A' %} +{% if record.get('type', 'A') == 'A' %} {% set ip_parts = record.value.split('.') %} {% if ip_parts[0] == '192' and ip_parts[1] == '168' %} {% set reverse_zone = ip_parts[2] + '.168.192.in-addr.arpa' %}