mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
TXT records should check length at check/preview time (#947)
* TXT records should check length * Add validation to TXT generator * Split and validate long TXT targets * Add a metaparameter to TXT records to indicate autosplit is requested. * SPF_BUILDER marks TXT records as needing to be autosplit. * Validate should check for overly-long TXT targets
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
@@ -49,6 +48,5 @@ func (rc *RecordConfig) SetTargetDSString(s string) error {
|
||||
if len(part) != 4 {
|
||||
return errors.Errorf("DS value does not contain 5 fields: (%#v)", s)
|
||||
}
|
||||
fmt.Println(part)
|
||||
return rc.SetTargetDSStrings(part[0], part[1], part[2], part[3])
|
||||
}
|
||||
|
Reference in New Issue
Block a user