fix: default record type A
This commit is contained in:
parent
a8294e6660
commit
097ada6ec4
1 changed files with 1 additions and 1 deletions
|
|
@ -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' %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue