From e16babb44944f61a79202c5f4bb4ad0afc858315 Mon Sep 17 00:00:00 2001 From: Florian Ritterhoff <32478819+fritterhoff@users.noreply.github.com> Date: Mon, 17 Apr 2023 16:44:10 +0200 Subject: [PATCH] fix: generate file name on bind zone generation (#2284) --- providers/bind/bindProvider.go | 3 +++ 1 file changed, 3 insertions(+) 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