1 1.1 christos {% if zones is defined and zones %} 2 1.1 christos {% for zone in zones.values() %} 3 1.1 christos {% if zone.ns.name == ns.name %} 4 1.1 christos zone "@zone.name@" { 5 1.1 christos type @zone.type@; 6 1.1.1.2 christos {% if zone.type == "static-stub" %} 7 1.1.1.3 christos server-addresses { @zone.ns.ip@; }; 8 1.1.1.2 christos {% else %} 9 1.1 christos file "@zone.filepath@"; 10 1.1.1.2 christos {% endif %} 11 1.1 christos }; 12 1.1 christos {% endif %} 13 1.1 christos {% endfor %} 14 1.1 christos {% endif %} 15