Update named.conf.tmpl
This commit is contained in:
parent
2153504071
commit
af8a804568
@ -53,20 +53,26 @@ view "lixonet" {
|
|||||||
allow-query { none; };
|
allow-query { none; };
|
||||||
};
|
};
|
||||||
|
|
||||||
# Self zone
|
# Local forwarding zone
|
||||||
zone "{{ "$tinc_peer_name" | replace "_" "." }}" {
|
zone "{{ "$tinc_peer_name" | replace "_" "." }}" {
|
||||||
type forward;
|
type forward;
|
||||||
forward only;
|
forward only;
|
||||||
forwarders { ${bind_forward_address-"${internal_gateway}"}; };
|
forwarders { ${bind_forward_address-"${internal_gateway}"}; };
|
||||||
};
|
};
|
||||||
|
|
||||||
# Forwarders
|
# Peer forwarding zones
|
||||||
{{ range files "bind/peers" }} {{ if ne . "${tinc_peer_name}" }}
|
{{ range files "bind/peers" }} {{ if ne . "${tinc_peer_name}" }}
|
||||||
zone "{{ . | replace "_" "." }}" {
|
zone "{{ . | replace "_" "." }}" {
|
||||||
type forward;
|
type forward;
|
||||||
forward only;
|
forward only;
|
||||||
{{ include (print "bind/peers/" .) }}
|
{{ include (print "bind/peers/" .) }}
|
||||||
};{{ end }}{{ end }}
|
};{{ end }}{{ end }}
|
||||||
|
|
||||||
|
# Custom mesh zones
|
||||||
|
{{ range files "bind/zones" }}
|
||||||
|
zone "{{ . | replace "_" "." }}" {
|
||||||
|
{{ include (print "bind/zones/" .) }}
|
||||||
|
};{{ end }}
|
||||||
};
|
};
|
||||||
|
|
||||||
view "default" {
|
view "default" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user