Indy 9 | Content | Index | Reference

TCNRecord
Hierarchy, Properties, Methods, Unit: IdDNSResolver
Represents a resource record returned from a DNS query that includes Canonical Name resource record types.

    TCNRecord = class(TNAMERecord)

Unit
IdDNSResolver
Description
TCNRecord is a TNameRecord descendant that represents a resource record returned in the results for a DNS query. TCNRecord is a collection item created to represent a resource resource returned when TIDNSResolver.QueryRecords includes the value qtCN for Mail Exchange resource records.

Canonical Name resoure records are used to indicate the canonical or primary name for the owner. Canonical Name resoure records cause no additional section processing, but Canonical Names may choose to restart the query at the Canonical Name in certain cases. See the description of Canonical Name logic in RFC 1034 for details.

Canonical Name resoure records uses the same DNS packet layout as other TResultRecord-based responses, but extends the use of RData to include the following definition and format:

      +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
      .                                               .
      .                      CNAME                    .
      .                                               .
      +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+

- CNAME - Domain name which specifies the canonical or primary name for the owner. The owner name is an alias.

TCNRecord extends TNameRecord to implement the specifics of accessing RData values as properties, including HostName. HostName is used to store the CNAMe value from the resource record. TCNRecord also overrides the Parse method to read the values in RData into their property counterparts.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.