1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

fix: generate file name on bind zone generation (#2284)

This commit is contained in:
Florian Ritterhoff
2023-04-17 16:44:10 +02:00
committed by GitHub
parent bcf590f649
commit e16babb449

View File

@ -296,6 +296,9 @@ func (c *bindProvider) GetZoneRecordsCorrections(dc *models.DomainConfig, foundR
comments = append(comments, "Automatic DNSSEC signing requested")
}
c.zonefile = filepath.Join(c.directory,
makeFileName(c.filenameformat, dc.Name, dc.Name, ""))
// We only change the serial number if there is a change.
if !c.skipNextSoaIncrease {
desiredSoa.SoaSerial = nextSerial