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

BIND Provider: Pick default TTL automatically for zonefiles (#109)

* BIND Provider: Pick default TTL automatically for zonefiles
This commit is contained in:
Tom Limoncelli
2017-04-30 09:28:35 -04:00
committed by GitHub
parent c13d83887c
commit d92fd5b461
4 changed files with 106 additions and 9 deletions

View File

@@ -238,7 +238,7 @@ func (c *Bind) GetDomainCorrections(dc *models.DomainConfig) ([]*models.Correcti
for _, r := range dc.Records {
zonefilerecords = append(zonefilerecords, r.RR())
}
err = WriteZoneFile(zf, zonefilerecords, dc.Name, models.DefaultTTL)
err = WriteZoneFile(zf, zonefilerecords, dc.Name)
if err != nil {
log.Fatalf("WriteZoneFile error: %v\n", err)