diff --git a/providers/cscglobal/dns.go b/providers/cscglobal/dns.go index 42888473f..e78432a3b 100644 --- a/providers/cscglobal/dns.go +++ b/providers/cscglobal/dns.go @@ -184,6 +184,8 @@ func makeAdd(domainname string, cre diff.Correlation) zoneResourceRecordEdit { zer.NewPriority = rec.SrvPriority zer.NewWeight = rec.SrvWeight zer.NewPort = rec.SrvPort + case "TXT": + zer.NewValue = rec.GetTargetTXTJoined() default: // "A", "CNAME", "NS" // Nothing to do. } diff --git a/providers/namedotcom/auditrecords.go b/providers/namedotcom/auditrecords.go index 3008ccb4a..1de37f47d 100644 --- a/providers/namedotcom/auditrecords.go +++ b/providers/namedotcom/auditrecords.go @@ -33,7 +33,7 @@ func AuditRecords(records []*models.RecordConfig) []error { func MaxLengthNDC(rc *models.RecordConfig) error { txtStrings := rc.GetTargetTXTSegmented() - if len(rc.GetTargetTXTJoined()) == 0 { + if rc.GetTargetTXTJoined() == "" { return nil }