Gets the current IPv6 address for this record.
Returns an instance of IPAddr.
# File lib/net/dns/rr/aaaa.rb, line 15 def address @address end
Assigns a new IPv6 address to this record, which can be in the form of a String or an IPAddr object.
Examples
a.address = "192.168.0.1" a.address = IPAddr.new("10.0.0.1")
Returns the new allocated instance of IPAddr.
# File lib/net/dns/rr/aaaa.rb, line 28 def address=(string_or_ipaddr) @address = check_address(string_or_ipaddr) build_pack @address end
Generated with the Darkfish Rdoc Generator 2.