diff --git a/providers/bind/bindProvider.go b/providers/bind/bindProvider.go index a2da38f79..08bc7e70d 100644 --- a/providers/bind/bindProvider.go +++ b/providers/bind/bindProvider.go @@ -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