Class: DNS::ResourceRecord::IN::AAAA

Inherits:
Data
  • Object
show all
Defined in:
lib/faildns/resourcerecord/IN/AAAA.rb

Overview

+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
|                    ADDRESS                    |
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+

where:

ADDRESS A 128 bit Internet address.

Hosts that have multiple Internet addresses will have multiple AAAA records.

AAAA records cause no additional section processing. The RDATA section of an AAAA line in a master file is an Internet address expressed as a name in the IP6.ARPA domain by a sequence of nibbles separated by dots with the suffix “.IP6.ARPA”. The sequence of nibbles is encoded in reverse order, i.e., the low-order nibble is encoded first, followed by the next low-order nibble and so on. Each nibble is represented by a hexadecimal digit. ++

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Data

parse

Constructor Details

#initialize(what) ⇒ AAAA

Returns a new instance of AAAA.



60
61
62
# File 'lib/faildns/resourcerecord/IN/AAAA.rb', line 60

def initialize (what)
  @ip = IP.new(what)
end

Instance Attribute Details

#ipObject (readonly)

Returns the value of attribute ip.



58
59
60
# File 'lib/faildns/resourcerecord/IN/AAAA.rb', line 58

def ip
  @ip
end

Class Method Details

._parse(string, original) ⇒ Object



50
51
52
# File 'lib/faildns/resourcerecord/IN/AAAA.rb', line 50

def self._parse (string, original)
  AAAA.new(IP.parse(string))
end

.lengthObject



54
55
56
# File 'lib/faildns/resourcerecord/IN/AAAA.rb', line 54

def self.length
  16
end

Instance Method Details

#packObject



64
65
66
# File 'lib/faildns/resourcerecord/IN/AAAA.rb', line 64

def pack
  @ip.pack
end

#to_sObject



68
69
70
# File 'lib/faildns/resourcerecord/IN/AAAA.rb', line 68

def to_s
  @ip.to_s
end