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

11 lines
250 B
Go
Raw Normal View History

package models
// MakeUnknown turns an RecordConfig into an UNKNOWN type.
func MakeUnknown(rc *RecordConfig, rtype string, contents string, origin string) error {
rc.Type = "UNKNOWN"
rc.UnknownTypeName = rtype
rc.target = contents
return nil
}