Internet Direct (Indy) Version 9.0.1 Beta
TDNSHeader
Represents the Header section in a DNS message packet.

TDNSHeader = class
Description
TDNSHeader is a TObject descendant that represents the Header section in a DNS message packet. A DNS message packet may contain 5 sections:

  +------------+
  |   Header   |
  +------------+
  |  Question  |  question for the name server
  +------------+
  |   Answer   |  resource records answering the question
  +------------+
  | Authority  |  resource records pointing toward an authority
  +------------+
  | Additional |  resource records holding additional information
  +------------+
  

TDNSHeader is always present in the message packet, and includes values that specify which of the remaining sections are present. TDNSHeader also provides properties specific to the header section or the entire message packet, including:

TDNSHeader is used in the message packet for both a DNS query and a DNS response, although some values are only appropriate in one context.