Skip to content

Commit

Permalink
Support for secondary external areas
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfussion committed Sep 10, 2024
1 parent e6d31c7 commit 8e7190c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions simple-bind/templates/named.conf.local.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ view internals {
match-clients { internals; };
allow-transfer { internals; };
allow-recursion { internals; };

{% for zone in simple_bind__forward_zones or [] -%}
zone "{{ zone.zone }}" {
type forward;
Expand All @@ -22,20 +22,21 @@ view internals {
};
file "db.internal{{ zone.zone }}";
{% for extra in zone.get('extra_conf') or [] %}
{{ extra }};
{{ extra }};
};
{% endfor %}
};

{% endfor -%}

{% for zone in simple_bind__secondary_zones or [] -%}
zone "{{ zone.zone }}" {
type slave;
masters {
type slave;
masters {
{% for primary in zone.get('primaries') or [] %}
{{ primary }};
{{ primary }};
{% endfor %}
};
};
file "db.internal.{{ zone.zone }}";
{% for extra in zone.get('extra_conf') or [] %}
{{ extra }};
Expand Down

0 comments on commit 8e7190c

Please sign in to comment.