Indy 9 | Content | Index | Reference

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

    TNSRecord = class(TNAMERecord)

Unit
IdDNSResolver
Description
TNSRecord is a TNameRecord descendant that represents a resource record returned in the results for a DNS query. TNSRecord is a collection item created to represent a resource resource returned when TIDNSResolver.QueryRecords includes the value qtNS for Name Server resource records.

Name Server resoure records are used to represent the host name which can act as an authoritative name server for resource records having the class and domain name specified in the owner. Name Server resoure records can result in additional processing to locate an Address resource record, or when used in a referral, a special search of the zone in which they reside for glue information.

A Name Server resource record indicates that the named host should be expected to have a zone starting at owner name of the specified class. Note that the class may not indicate the protocol family which should be used to communicate with the host, although it is typically a strong hint. For example, hosts which are name servers for either Internet (IN) or Hesiod (HS) class information are normally queried using IN class protocols.

A Name Server resoure record usea the same DNS packet layout as other TResultRecord-based responses, but extends the use of RData to include the following definition and format:

      +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
      .                                               .
      .                    NSDNAME                    .
      .                                               .
      +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+

- NSDNAME - Domain name which specifies a host which should be authoritative for the specified class and domain.

TNSRecord extends TNameRecord to implement the specifics of accessing RData values as properties, including HostName. HostName is used to store the NSDNAME value from the resource record. TNSRecord 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.