Class: DNS::ResourceRecord::IN::CNAME

Inherits:
Data
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Data

parse

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

#domainObject (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

#packObject



57
58
59
# File 'lib/faildns/resourcerecord/IN/CNAME.rb', line 57

def pack
  @domain.pack
end

#to_sObject



61
62
63
# File 'lib/faildns/resourcerecord/IN/CNAME.rb', line 61

def to_s
  @domain.to_s
end