Class for DNS Address (A) resource records.
RFC 1035 Section 3.4.1
Create the RR from a hash
[Source]
# File lib/Dnsruby/resource/A.rb, line 33 33: def from_hash(hash) 34: @address = IPv4.create(hash[:address]) 35: end
Create the RR from a standard string
# File lib/Dnsruby/resource/A.rb, line 38 38: def from_string(input) 39: @address = IPv4.create(input) 40: end
# File lib/Dnsruby/resource/A.rb, line 42 42: def rdata_to_string 43: return @address.to_s 44: end
[Validate]