From af8a804568fcfe6f3fd24dba90787bb31f94ac8b Mon Sep 17 00:00:00 2001 From: sump pump <admin@example.com> Date: Sat, 13 Jun 2020 04:45:08 +0000 Subject: [PATCH] Update named.conf.tmpl --- bind/named.conf.tmpl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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" {