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

BUG: diff2: ttl changes don't always work (#2093)

This commit is contained in:
Tom Limoncelli
2023-02-25 22:40:54 -05:00
committed by GitHub
parent ab872cc13f
commit 05dc26bf2e
8 changed files with 151 additions and 101 deletions

View File

@@ -105,10 +105,11 @@ func checkNSModifications(dc *models.DomainConfig) {
}
func toRecord(r *namecom.Record, origin string) *models.RecordConfig {
heapr := r // NB(tlim): Unsure if this is actually needed.
rc := &models.RecordConfig{
Type: r.Type,
TTL: r.TTL,
Original: r,
Original: heapr,
}
if !strings.HasSuffix(r.Fqdn, ".") {
panic(fmt.Errorf("namedotcom suddenly changed protocol. Bailing. (%v)", r.Fqdn))