MX RRs: do not use `is_subdomain_valid?` function.
parent
c7b0826da5
commit
336e231d3f
|
@ -584,8 +584,8 @@ class DNSManager::Storage::Zone
|
|||
end
|
||||
|
||||
# MX target can either be a subdomain or a FQDN.
|
||||
unless (Zone.is_subdomain_valid? @target || Zone.is_domain_valid? @target)
|
||||
errors << "MX invalid target (domain or subdomain): #{@target}"
|
||||
unless Zone.is_domain_valid? @target
|
||||
errors << "MX invalid target (domain): #{@target}"
|
||||
end
|
||||
|
||||
errors
|
||||
|
|
Loading…
Reference in New Issue