{% for zone in dns_zones %} zone "{{ zone.zone }}" { type master; file "/etc/bind/zones/db.{{ zone.zone }}"; allow-transfer { {{ dns_replica_ip }}; }; }; {% endfor %}