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:
@ -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.
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user