diff --git a/bind/named.conf.tmpl b/bind/named.conf.tmpl index 57d92df..1cf5e65 100644 --- a/bind/named.conf.tmpl +++ b/bind/named.conf.tmpl @@ -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" {