Class: DNS::ResourceRecord::IN::CNAME
- Defined in:
- lib/faildns/resourcerecord/IN/CNAME.rb
Overview
–
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
/ CNAME /
/ /
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
where:
CNAME A <domain-name> which specifies the canonical or primary
name for the owner. The owner name is an alias.
CNAME RRs cause no additional section processing, but name servers may choose to restart the query at the canonical name in certain cases. See the description of name server logic in [RFC-1034] for details. ++
Instance Attribute Summary collapse
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(domain) ⇒ CNAME
constructor
A new instance of CNAME.
- #pack ⇒ Object
- #to_s ⇒ Object
Methods inherited from Data
Constructor Details
#initialize(domain) ⇒ CNAME
Returns a new instance of CNAME.
53 54 55 |
# File 'lib/faildns/resourcerecord/IN/CNAME.rb', line 53 def initialize (domain) @domain = domain end |
Instance Attribute Details
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
51 52 53 |
# File 'lib/faildns/resourcerecord/IN/CNAME.rb', line 51 def domain @domain end |
Class Method Details
._parse(string, original) ⇒ Object
47 48 49 |
# File 'lib/faildns/resourcerecord/IN/CNAME.rb', line 47 def self._parse (string, original) CNAME.new(DomainName.parse(string.clone, original)) end |
Instance Method Details
#pack ⇒ Object
57 58 59 |
# File 'lib/faildns/resourcerecord/IN/CNAME.rb', line 57 def pack @domain.pack end |
#to_s ⇒ Object
61 62 63 |
# File 'lib/faildns/resourcerecord/IN/CNAME.rb', line 61 def to_s @domain.to_s end |