forked from saratov/infra
[bind-role] support zones forwarding
This commit is contained in:
parent
d026de558d
commit
284cc6c782
@ -110,3 +110,5 @@ zone "{{ (network | ipaddr('revdns'))[-(9+(network|regex_replace('^.*/','')|int)
|
|||||||
};
|
};
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% include 'zone_forwards_etc_named.conf.j2' %}
|
||||||
|
@ -92,3 +92,4 @@ zone "{{ (network | ipaddr('revdns'))[-(9+(network|regex_replace('^.*/','')|int)
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% include 'zone_forwards_etc_named.conf.j2' %}
|
||||||
|
@ -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 %}
|
Loading…
Reference in New Issue
Block a user