[bind-role] support zones forwarding

This commit is contained in:
Sergey Bubnov (omg) 2019-06-30 21:49:13 +04:00
parent d026de558d
commit 284cc6c782
3 changed files with 12 additions and 0 deletions

View File

@ -110,3 +110,5 @@ zone "{{ (network | ipaddr('revdns'))[-(9+(network|regex_replace('^.*/','')|int)
}; };
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% include 'zone_forwards_etc_named.conf.j2' %}

View File

@ -92,3 +92,4 @@ zone "{{ (network | ipaddr('revdns'))[-(9+(network|regex_replace('^.*/','')|int)
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% include 'zone_forwards_etc_named.conf.j2' %}

View File

@ -0,0 +1,9 @@
{% if bind_zone_forwards is defined %}
{% for fwd in bind_zone_forwards %}
zone "{{ fwd.zone }}" {
type forward;
forward only;
forwarders { {{fwd.forwarders | join(';')}}; };
};
{% endfor %}
{% endif %}