mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Add SPF support for RecordConfig (#1020)
This type is identical to TXT but used for other purposes, it is officially supported by OctoDNS. Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
@ -47,7 +47,7 @@ func (r *RecordConfig) PopulateFromString(rtype, contents, origin string) error
|
||||
return r.SetTargetSSHFPString(contents)
|
||||
case "TLSA":
|
||||
return r.SetTargetTLSAString(contents)
|
||||
case "TXT":
|
||||
case "SPF", "TXT":
|
||||
return r.SetTargetTXTString(contents)
|
||||
default:
|
||||
return fmt.Errorf("unknown rtype (%s) when parsing (%s) domain=(%s)",
|
||||
|
Reference in New Issue
Block a user