mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-24 02:37:05 +00:00
Include NSD config files from /etc/nsd/nsd.conf.d/*.conf (#2035)
And write MIAB dns zone config into /etc/nsd/nsd.conf.d/zones.conf. Delete lingering old zones.conf file. Co-authored-by: Joshua Tauberer <jt@occams.info>
This commit is contained in:
parent
353084ce67
commit
df46e1311b
@ -604,7 +604,7 @@ def get_dns_zonefile(zone, env):
|
|||||||
|
|
||||||
def write_nsd_conf(zonefiles, additional_records, env):
|
def write_nsd_conf(zonefiles, additional_records, env):
|
||||||
# Write the list of zones to a configuration file.
|
# 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 = ""
|
nsdconf = ""
|
||||||
|
|
||||||
# Append the zones.
|
# Append the zones.
|
||||||
|
@ -62,7 +62,13 @@ for ip in $PRIVATE_IP $PRIVATE_IPV6; do
|
|||||||
echo " ip-address: $ip" >> /etc/nsd/nsd.conf;
|
echo " ip-address: $ip" >> /etc/nsd/nsd.conf;
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "include: /etc/nsd/zones.conf" >> /etc/nsd/nsd.conf;
|
# Create a directory for additional configuration directives, including
|
||||||
|
# the zones.conf file written out by our management daemon.
|
||||||
|
echo "include: /etc/nsd/nsd.conf.d/*.conf" >> /etc/nsd/nsd.conf;
|
||||||
|
|
||||||
|
# Remove the old location of zones.conf that we generate. It will
|
||||||
|
# now be stored in /etc/nsd/nsd.conf.d.
|
||||||
|
rm -f /etc/nsd/zones.conf
|
||||||
|
|
||||||
# Create DNSSEC signing keys.
|
# Create DNSSEC signing keys.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user