+ {% if group.web %}
+
Web
- {% endif %}
- {% if record.type != current_rtype %}
- {% if current_rtype %}
-
-
- {% endif %}
- {% set_global current_rtype = record.type %}
-
- {{ record.type }}
-
- -
+ {% if group.web.addresses %}
+ {{ macros::rrset(
+ rtype=group.web.addresses.rtype,
+ ttl=group.web.addresses.ttl,
+ data=group.web.addresses.data,
+ zone=current_zone) }}
{% endif %}
-
- {% if record.type == "A" or record.type == "AAAA" %}
-
-
- {{ record.rdata.address }}
-
-
- {% elif record.type == "MX" %}
-
-
- {{ record.rdata.mail_exchanger }}
-
-
-
-
- Preference: {{ record.rdata.mail_exchanger }}
-
-
- {% elif record.type == "NS" %}
-
-
- {{ record.rdata.target }}
-
-
- {% endif %}
-
-
-
+
+ {% endif %}
+
+ {% if group.mail %}
+ E-mails
+
+ {% if group.mail.servers %}
+ {{ macros::rrset(
+ rtype=group.mail.servers.rtype,
+ ttl=group.mail.servers.ttl,
+ data=group.mail.servers.data,
+ zone=current_zone) }}
+ {% endif %}
+ {% if group.mail.spf %}
+ {{ macros::rrset(
+ rtype=group.mail.spf.rtype,
+ ttl=group.mail.spf.ttl,
+ data=group.mail.spf.data,
+ zone=current_zone) }}
+ {% endif %}
+
+ {% endif %}
+
+ {% if group.general_records %}
+ General
+
+ {% for rrset in group.general_records %}
+ {{ macros::rrset(
+ rtype=rrset.rtype,
+ ttl=rrset.ttl,
+ data=rrset.data,
+ zone=current_zone) }}
+ {% endfor %}
+
+ {% endif %}
+
+
+
{% endfor %}
-
-
-
-
-
+