From 1c236d2fe2b9e3b8db3f120b7cfee02c4c7b2539 Mon Sep 17 00:00:00 2001
From: Manevolent <Manevolent@users.noreply.github.com>
Date: Wed, 12 Apr 2023 18:36:32 -0600
Subject: [PATCH] Update named.conf.tmpl

---
 bind/named.conf.tmpl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bind/named.conf.tmpl b/bind/named.conf.tmpl
index 8eddcc6..4f7f9b0 100644
--- a/bind/named.conf.tmpl
+++ b/bind/named.conf.tmpl
@@ -11,10 +11,10 @@ options {
     directory "/var/cache/bind";
     
     listen-on { any; };
-    
+{{ if eq "1" "${bind_forward_enable:-1}" }}
     forward only;
     forwarders { ${bind_forward_address-"${internal_gateway}"}; };
-    
+{{ end }}
     dnssec-validation no;
 };