Class for DNS Address (A) resource records.
RFC 1035 Section 3.4.1
The RR's (Resolv::IPv4) address field
Create the RR from a hash
# File lib/Dnsruby/resource/A.rb, line 33 def from_hash(hash) @address = IPv4.create(hash[:address]) end
Create the RR from a standard string
# File lib/Dnsruby/resource/A.rb, line 38 def from_string(input) @address = IPv4.create(input) end
# File lib/Dnsruby/resource/A.rb, line 42 def rdata_to_string return @address.to_s end