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.
|
|
|
# See #TXT
|
|
|
|
|
|
|
|
# = Text Record (TXT)
|
|
|
|
# Provides the ability to associate some text with a host or other name. The TXT
|
|
|
|
# record is used to define the Sender Policy Framework (SPF) information record
|
|
|
|
# which may be used to validate legitimate email sources from a domain. The SPF
|
|
|
|
# record while being increasing deployed is not (July 2004) a formal IETF RFC
|
|
|
|
# standard.
|
|
|
|
#
|
|
|
|
# Obtained from http://www.zytrax.com/books/dns/ch8/txt.html
|
|
|
|
class TXT < Record
|
|
|
|
has_paper_trail
|
|
|
|
|
|
|
|
validates :name, :hostname2 => {:allow_wildcard_hostname => true}
|
|
|
|
validates :content, :presence => true, :length => { :maximum => 255 }
|
|
|
|
|
|
|
|
def to_label; type end
|
|
|
|
end
|
|
|
|
|
|
|
|
Txt = TXT
|