43 lines
837 B
Django/Jinja
43 lines
837 B
Django/Jinja
// Zone configuration for ISC BIND
|
|
{% for zone in named_zones %}
|
|
|
|
zone "{{ zone.zone }}" {
|
|
type {{ zone.type }};
|
|
{% if zone.type == 'forward' %}
|
|
{% if zone.forward|d %}
|
|
forward {{ zone.forward }};
|
|
{% endif %}
|
|
{% else %}
|
|
file "dynamic/{{ zone.zone }}.zone";
|
|
{% endif %}
|
|
{% if zone.allow_update|d %}
|
|
allow-update {
|
|
{% for auth in zone.allow_update %}
|
|
{{ auth }};
|
|
{% endfor %}
|
|
};
|
|
{% endif %}
|
|
{% if zone.update_policy|d %}
|
|
update-policy {
|
|
{% for auth in zone.update_policy %}
|
|
{{ auth }};
|
|
{% endfor %}
|
|
};
|
|
{% endif %}
|
|
{% if zone.forwarders|d %}
|
|
forwarders {
|
|
{% for forwarder in zone.forwarders %}
|
|
{{ forwarder }};
|
|
{% endfor %}
|
|
};
|
|
{% endif %}
|
|
{% if zone.masters|d %}
|
|
masters {
|
|
{% for master in zone.masters %}
|
|
{{ master }};
|
|
{% endfor %}
|
|
};
|
|
{% endif %}
|
|
};
|
|
{% endfor %}
|