Parent

Net::DNS::RR::AAAA

IPv6 Address Record (AAAA)

Class for DNS IPv6 Address (AAAA) resource records.

Public Instance Methods

address() click to toggle source

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
address=(string_or_ipaddr) click to toggle source

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
value() click to toggle source

Gets the standardized value for this record, represented by the value of address.

Returns a String.

# File lib/net/dns/rr/aaaa.rb, line 38
def value
  address.to_s
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.