Skip to content

Commit

Permalink
Move allow_recursion to the view
Browse files Browse the repository at this point in the history
  • Loading branch information
t3hpr1m3 committed Jun 14, 2020
1 parent 2cfcc16 commit 46c3627
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions templates/etc/bind/macros.j2
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ view "{{ view.name }}" {
{% endfor %}
};
recursion {{ view.recursion | default("no") }};
{% if view.allow_recursion is defined and view.allow_recursion %}
allow-recursion {
{% for host in view.allow_recursion %}
{{ host }};
{% endfor %}
};
{% endif %}

{% if view.zones is defined and view.zones %}
{% for zone in view.zones %}
Expand Down Expand Up @@ -73,13 +80,6 @@ zone "{{ zone.name }}" {
{% endfor %}
};
{% endif %}
{% if zone.allow_recursion is defined and zone.allow_recursion %}
allow-recursion {
{% for host in zone.allow_recursion %}
{{ host }};
{% endfor %}
};
{% endif %}
{% if zone.update_policy is defined and zone.update_policy %}
update-policy {
{% for policy in zone.update_policy %}
Expand Down

0 comments on commit 46c3627

Please sign in to comment.