Class: DNS::ResourceRecord::IN::A
- Defined in:
- lib/faildns/resourcerecord/IN/A.rb
Overview
–
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
| ADDRESS |
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
where:
ADDRESS A 32 bit Internet address.
Hosts that have multiple Internet addresses will have multiple A records.
A records cause no additional section processing. The RDATA section of an A line in a master file is an Internet address expressed as four decimal numbers separated by dots without any imbedded spaces (e.g., “10.2.0.52” or “192.0.5.6”). ++
Instance Attribute Summary collapse
-
#ip ⇒ Object
readonly
Returns the value of attribute ip.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(what) ⇒ A
constructor
A new instance of A.
- #pack ⇒ Object
- #to_s ⇒ Object
Methods inherited from Data
Constructor Details
Instance Attribute Details
#ip ⇒ Object (readonly)
Returns the value of attribute ip.
56 57 58 |
# File 'lib/faildns/resourcerecord/IN/A.rb', line 56 def ip @ip end |
Class Method Details
._parse(string, original) ⇒ Object
48 49 50 |
# File 'lib/faildns/resourcerecord/IN/A.rb', line 48 def self._parse (string, original) A.new(IP.parse(string)) end |
.length ⇒ Object
52 53 54 |
# File 'lib/faildns/resourcerecord/IN/A.rb', line 52 def self.length 4 end |
Instance Method Details
#pack ⇒ Object
62 63 64 |
# File 'lib/faildns/resourcerecord/IN/A.rb', line 62 def pack @ip.pack end |
#to_s ⇒ Object
66 67 68 |
# File 'lib/faildns/resourcerecord/IN/A.rb', line 66 def to_s @ip.to_s end |