Class: Net::DNS::RR::CNAME

Inherits:
Net::DNS::RR show all
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

RRFIXEDSZ, RR_REGEXP

Constants included from Names

Names::INT16SZ

Instance Method Summary collapse

Methods inherited from Net::DNS::RR

#cls, #comp_data, #data, #initialize, #inspect, #name, parse, parse_packet, #rdata, #to_a, #to_s, #ttl, #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 Method Details

#cnameObject

Gets the canonical name value.

Returns a String.



19
20
21
# File 'lib/net/dns/rr/cname.rb', line 19

def cname
  @cname
end

#valueObject

Gets the standardized value for this record, represented by the value of cname.

Returns a String.



27
28
29
# File 'lib/net/dns/rr/cname.rb', line 27

def value
  cname.to_s
end