feat: set record type to A by default
This commit is contained in:
parent
097ada6ec4
commit
94056cdae0
1 changed files with 4 additions and 4 deletions
|
|
@ -4,13 +4,13 @@ server:
|
|||
local-zone: "{{ zone.zone }}." {{ zone.type | default('static') }}
|
||||
|
||||
{% for record in zone.records %}
|
||||
{% if record.type == 'MX' %}
|
||||
{% if record.get('type', 'A') == 'MX' %}
|
||||
local-data: "{{ record.name }}. IN MX {{ record.priority }} {{ record.value }}"
|
||||
{% elif record.type == 'CNAME' %}
|
||||
{% elif record.get('type', 'A') == 'CNAME' %}
|
||||
local-data: "{{ record.name }}. IN CNAME {{ record.value }}"
|
||||
{% elif record.type == 'TXT' %}
|
||||
{% elif record.get('type', 'A') == 'TXT' %}
|
||||
local-data: "{{ record.name }}. IN TXT \"{{ record.value }}\""
|
||||
{% elif record.type == 'PTR' %}
|
||||
{% elif record.get('type', 'A') == 'PTR' %}
|
||||
local-data: "{{ record.name }}. IN PTR {{ record.value }}"
|
||||
{% else %}
|
||||
local-data: "{{ record.name }}. IN {{ record.get('type', 'A') }} {{ record.value }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue