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.
17 lines
540 B
17 lines
540 B
# See #A |
|
|
|
# = IPv4 Address Record (A) |
|
# |
|
# Defined in RFC 1035. Forward maps a host name to IPv4 address. The only |
|
# parameter is an IP address in dotted decimal format. The IP address in not |
|
# terminated with a '.' (dot). Valid host name format (a.k.a 'label' in DNS |
|
# jargon). If host name is BLANK (or space) then the last valid name (or label) |
|
# is substituted. |
|
# |
|
# Obtained from http://www.zytrax.com/books/dns/ch8/a.html |
|
# |
|
class A < Record |
|
# Only accept valid IPv4 addresses |
|
validates :content, :presence => true, :ip => true |
|
|
|
end
|
|
|