Class: DNS::ResourceRecord::IN::AAAA
- 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
-
#ip ⇒ Object
readonly
Returns the value of attribute ip.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(what) ⇒ AAAA
constructor
A new instance of AAAA.
- #pack ⇒ Object
- #to_s ⇒ Object
Methods inherited from Data
Constructor Details
Instance Attribute Details
#ip ⇒ Object (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 |
.length ⇒ Object
54 55 56 |
# File 'lib/faildns/resourcerecord/IN/AAAA.rb', line 54 def self.length 16 end |
Instance Method Details
#pack ⇒ Object
64 65 66 |
# File 'lib/faildns/resourcerecord/IN/AAAA.rb', line 64 def pack @ip.pack end |
#to_s ⇒ Object
68 69 70 |
# File 'lib/faildns/resourcerecord/IN/AAAA.rb', line 68 def to_s @ip.to_s end |