Browse Source

support wildcard MX records, close #104

pull/1/head
Nicolae Claudius 13 years ago
parent
commit
9f3818508a
  1. 10
      app/models/mx.rb

10
app/models/mx.rb

@ -7,8 +7,14 @@
# Obtained from http://www.zytrax.com/books/dns/ch8/mx.html # Obtained from http://www.zytrax.com/books/dns/ch8/mx.html
# #
class MX < Record class MX < Record
validates :name, :hostname => {:allow_underscore => true, :allow_wildcard_hostname => true} validates :name, :hostname => {
validates :content, :presence => true, :hostname => true :allow_underscore => true,
:allow_wildcard_hostname => true
}
validates :content, :presence => true, :hostname => {
:allow_underscore => true,
:allow_wildcard_hostname => true
}
validates :prio, :presence => true, :numericality => { validates :prio, :presence => true, :numericality => {
:greater_than_or_equal_to => 0, :greater_than_or_equal_to => 0,
:less_than_or_equal_to => 65535, :less_than_or_equal_to => 65535,

Loading…
Cancel
Save