Class: Net::DNS::RR::CNAME
- Inherits:
-
Net::DNS::RR
- Object
- Net::DNS::RR
- Net::DNS::RR::CNAME
- Defined in:
- lib/net/dns/rr/cname.rb
Overview
Canonical Name Record (CNAME)
Class for DNS CNAME resource records.
A CNAME record maps an alias or nickname to the real or Canonical name which may lie outside the current zone. Canonical means expected or real name.
Constant Summary
Constants inherited from Net::DNS::RR
Constants included from Names
Instance Attribute Summary collapse
-
#cname ⇒ Object
readonly
Gets the canonical name value.
Attributes inherited from Net::DNS::RR
Instance Method Summary collapse
-
#value ⇒ Object
Gets the standardized value for this record, represented by the value of
cname
.
Methods inherited from Net::DNS::RR
#cls, #comp_data, #data, #initialize, #inspect, parse, parse_packet, #to_a, #to_s, #type
Methods included from Names
#dn_comp, #dn_expand, #names_array, #pack_name, #valid?
Constructor Details
This class inherits a constructor from Net::DNS::RR
Instance Attribute Details
#cname ⇒ Object (readonly)
Gets the canonical name value.
Returns a String.
17 18 19 |
# File 'lib/net/dns/rr/cname.rb', line 17 def cname @cname end |
Instance Method Details
#value ⇒ Object
Gets the standardized value for this record, represented by the value of cname
.
Returns a String.
23 24 25 |
# File 'lib/net/dns/rr/cname.rb', line 23 def value cname.to_s end |