mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-10-01 01:14:26 +08:00
fix: generate file name on bind zone generation (#2284)
This commit is contained in:
parent
bcf590f649
commit
e16babb449
1 changed files with 3 additions and 0 deletions
|
@ -296,6 +296,9 @@ func (c *bindProvider) GetZoneRecordsCorrections(dc *models.DomainConfig, foundR
|
||||||
comments = append(comments, "Automatic DNSSEC signing requested")
|
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.
|
// We only change the serial number if there is a change.
|
||||||
if !c.skipNextSoaIncrease {
|
if !c.skipNextSoaIncrease {
|
||||||
desiredSoa.SoaSerial = nextSerial
|
desiredSoa.SoaSerial = nextSerial
|
||||||
|
|
Loading…
Add table
Reference in a new issue