DNS_MESSAGE_BUFFER structure

The DNS_MESSAGE_BUFFER structure stores message information for DNS queries.

Syntax


typedef struct _DNS_MESSAGE_BUFFER {
  DNS_HEADER MessageHead;
  CHAR       MessageBody[1];
} DNS_MESSAGE_BUFFER, *PDNS_MESSAGE_BUFFER;

Members

MessageHead

A DNS_HEADER structure that contains the header for the DNS message.

MessageBody

An array of characters that comprises the DNS query or resource records (RR).

Remarks

The DNS_MESSAGE_BUFFER is used by the system to store DNS query information, and make that information available through various DNS function calls.

The DnsWriteQuestionToBuffer method should be used to write a DNS query into a DNS_MESSAGE_BUFFER structure and the DnsExtractRecordsFromMessage method should be used to read the DNS RRs from a DNS_MESSAGE_BUFFER.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Windns.h

See also

DnsExtractRecordsFromMessage
DnsWriteQuestionToBuffer

 

 

Community Additions

ADD
Show: