From 3bd563fb8aa56e196c59968a41e0911fafd714a2 Mon Sep 17 00:00:00 2001
From: drpixie <andrewgfry@gmail.com>
Date: Sun, 12 Sep 2021 20:31:24 +1000
Subject: [PATCH] Update dns_update.py

Write MIAB dns zone config into /etc/nsd/nsd.conf.d/zones.conf
---
 management/dns_update.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/management/dns_update.py b/management/dns_update.py
index c000f345..b79e266a 100755
--- a/management/dns_update.py
+++ b/management/dns_update.py
@@ -604,7 +604,7 @@ def get_dns_zonefile(zone, env):
 
 def write_nsd_conf(zonefiles, additional_records, env):
 	# Write the list of zones to a configuration file.
-	nsd_conf_file = "/etc/nsd/zones.conf"
+	nsd_conf_file = "/etc/nsd/nsd.conf.d/zones.conf"
 	nsdconf = ""
 
 	# Append the zones.