# TODO update-policy for primary zones

{% for zone in primary %}
zone {{ zone.name }} {
    type master;
    file "/etc/bind/zones/{{ zone.name }}.db";
};

{% endfor %}

{% if secondary is defined %}{% for ns in secondary %}
zone {{ ns }}.catalog {
    type slave;
    file "/etc/bind/zones/.{{ ns }}.catalog.db";
};

{% endfor %}{% endif %}


