You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
643 B

13 years ago
# See #MX
# = Mail Exchange Record (MX)
# Defined in RFC 1035. Specifies the name and relative preference of mail
# servers (mail exchangers in the DNS jargon) for the zone.
#
# Obtained from http://www.zytrax.com/books/dns/ch8/mx.html
#
class MX < Record
has_paper_trail
validates :name, :hostname2 => {:allow_wildcard_hostname => true}
validates :content, :presence => true, :hostname2 => {:allow_wildcard_hostname => true}
validates :prio, :presence => true, :numericality => {
:greater_than_or_equal_to => 0,
:less_than_or_equal_to => 65535,
13 years ago
:only_integer => true
}
13 years ago
def supports_priority?; true end
13 years ago
end
13 years ago
Mx = MX