{% for meshpoint in mesh.values() %} # {{ meshpoint.domain }} {% for record in meshpoint.private_records %} {% if record["type"] == "A" %} local-data: "{{ record['name'] }}. A {{ record['ip'] }}" {% endif %} {% endfor %} {% endfor %}