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 1fc1d5d
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 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 @@ -20,22 +20,23 @@ view internals {
{{ forwarder }};
{% endfor -%}
};
file "db.internal{{ zone.zone }}";
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 All @@ -58,7 +59,7 @@ view externals {
{{ primary }};
{% endfor %}
};
file "db.{{ zone.zone }}";
file "db.external.{{ zone.zone }}";
{% for extra in zone.get('extra_conf') or [] %}
{{ extra }};
{% endfor %}
Expand Down

0 comments on commit 1fc1d5d

Please sign in to comment.