Update named.conf.tmpl

This commit is contained in:
sump pump 2020-06-13 04:45:08 +00:00
parent 2153504071
commit af8a804568

View File

@ -53,20 +53,26 @@ view "lixonet" {
allow-query { none; };
};
# Self zone
# Local forwarding zone
zone "{{ "$tinc_peer_name" | replace "_" "." }}" {
type forward;
forward only;
forwarders { ${bind_forward_address-"${internal_gateway}"}; };
};
# Forwarders
# Peer forwarding zones
{{ range files "bind/peers" }} {{ if ne . "${tinc_peer_name}" }}
zone "{{ . | replace "_" "." }}" {
type forward;
forward only;
{{ include (print "bind/peers/" .) }}
};{{ end }}{{ end }}
# Custom mesh zones
{{ range files "bind/zones" }}
zone "{{ . | replace "_" "." }}" {
{{ include (print "bind/zones/" .) }}
};{{ end }}
};
view "default" {