diff --git a/models/.record.go.swp b/models/.record.go.swp deleted file mode 100644 index a642d5e80..000000000 Binary files a/models/.record.go.swp and /dev/null differ diff --git a/models/record.go b/models/record.go index e7d27fdc9..cff9ab26a 100644 --- a/models/record.go +++ b/models/record.go @@ -81,8 +81,6 @@ type RecordConfig struct { NaptrFlags string `json:"naptrflags,omitempty"` NaptrService string `json:"naptrservice,omitempty"` NaptrRegexp string `json:"naptrregexp,omitempty"` - //NaptrReplacement string `json:"naptrreplacement,omitempty"` - //NaptrReplacement string `json:"target"` SshfpAlgorithm uint8 `json:"sshfpalgorithm,omitempty"` SshfpFingerprint uint8 `json:"sshfpfingerprint,omitempty"` TlsaUsage uint8 `json:"tlsausage,omitempty"` @@ -315,10 +313,10 @@ func downcase(recs []*RecordConfig) { r.Name = strings.ToLower(r.Name) r.NameFQDN = strings.ToLower(r.NameFQDN) switch r.Type { // #rtype_variations - case "ANAME", "CNAME", "MX", "NS", "PTR", "SRV": + case "ANAME", "CNAME", "MX", "NS", "PTR", "NAPTR", "SRV": // These record types have a target that is case insensitive, so we downcase it. r.Target = strings.ToLower(r.Target) - case "A", "AAAA", "ALIAS", "CAA", "IMPORT_TRANSFORM", "NAPTR", "TLSA", "TXT", "SOA", "SSHFP", "CF_REDIRECT", "CF_TEMP_REDIRECT": + case "A", "AAAA", "ALIAS", "CAA", "IMPORT_TRANSFORM", "TLSA", "TXT", "SOA", "SSHFP", "CF_REDIRECT", "CF_TEMP_REDIRECT": // These record types have a target that is case sensitive, or is an IP address. We leave them alone. // Do nothing. default: