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

Merge branch 'master' into tlim_newtxt

This commit is contained in:
Tom Limoncelli
2023-11-18 15:10:41 -05:00
2 changed files with 3 additions and 1 deletions

View File

@ -184,6 +184,8 @@ func makeAdd(domainname string, cre diff.Correlation) zoneResourceRecordEdit {
zer.NewPriority = rec.SrvPriority zer.NewPriority = rec.SrvPriority
zer.NewWeight = rec.SrvWeight zer.NewWeight = rec.SrvWeight
zer.NewPort = rec.SrvPort zer.NewPort = rec.SrvPort
case "TXT":
zer.NewValue = rec.GetTargetTXTJoined()
default: // "A", "CNAME", "NS" default: // "A", "CNAME", "NS"
// Nothing to do. // Nothing to do.
} }

View File

@ -33,7 +33,7 @@ func AuditRecords(records []*models.RecordConfig) []error {
func MaxLengthNDC(rc *models.RecordConfig) error { func MaxLengthNDC(rc *models.RecordConfig) error {
txtStrings := rc.GetTargetTXTSegmented() txtStrings := rc.GetTargetTXTSegmented()
if len(rc.GetTargetTXTJoined()) == 0 { if rc.GetTargetTXTJoined() == "" {
return nil return nil
} }