1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00
This commit is contained in:
Tom Limoncelli
2023-10-27 15:45:23 -04:00
parent e97a48b90f
commit 2ec046fd78
2 changed files with 3 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ func AuditRecords(records []*models.RecordConfig) []error {
a := rejectif.Auditor{}
a.Add("ALIAS", rejectif.LabelNotApex) // Last verified 2023-03-24
a.Add("TXT", rejectif.TxtIsEmpty) // Last verified 2023-10-27
return a.Audit(records)
}

View File

@@ -309,7 +309,8 @@ func (g *gcloudProvider) GetZoneRecordsCorrections(dc *models.DomainConfig, exis
// chunks need to be allocated in a way that the memory is
// not re-used in the next iteration.
chunks := txtutil.ToChunks(r.GetTargetField())
newRRs.Rrdatas = append(newRRs.Rrdatas, chunks...)
printer.Printf("DEBUG: gcloud txt chunks=%+v\n", chunks)
newRRs.Rrdatas = append(newRRs.Rrdatas, chunks[:]...)
} else {
newRRs.Rrdatas = append(newRRs.Rrdatas, r.GetTargetCombined())
}