次の方法で共有


DNS_HEADER (Compact 2013)

3/26/2014

This structure contains DNS header information used when sending DNS messages.

Syntax

typedef struct _DNS_HEADER {
  WORD Xid;
  BYTE RecursionDesired;
  BYTE Truncation;
  BYTE Authoritative;
  BYTE Opcode;
  BYTE IsResponse;
  BYTE ResponseCode;
  BYTE Reserved;
  BYTE RecursionAvailable;
  WORD QuestionCount;
  WORD AnswerCount;
  WORD NameServerCount;
  WORD AdditionalCount;
} DNS_HEADER, *PDNS_HEADER;

Members

  • Xid
    [in] DNS message header identifier.
  • RecursionDesired
    [in] Specifies whether recursion is desired on the DNS message. Value 0x00 = no, 0x01 = yes.
  • Truncation
    [in] Specifies whether truncation has been applied to the DNS message. Value 0x00 = no, 0x01 = yes.
  • Authoritative
    [in] Specifies whether the node from which the DNS Message is being sent is authoritative for the zone. Value 0x00 = no, 0x01 = yes.
  • Opcode
    [in] Specifies the operation code to be taken on the DNS message.
  • IsResponse
    [in] Specifies whether the DNS message is a query response message. Value 0x00 = query, 0x01 = response.
  • ResponseCode
    [in] Response code of the DNS message.
  • Reserved
    [in] Reserved.
  • RecursionAvailable
    [in] Specifies whether recursion is available on the DNS query. Value 0x00 = no, 0x01 = yes.
  • QuestionCount
    [in] Number of queries contained in the DNS message.
  • AnswerCount
    [in] Number of Resource Records (RR) contained in the answer section of the DNS message.
  • NameServerCount
    [in] Number of DNS Name Servers the message has traversed in its search for resolution.
  • AdditionalCount
    [in] Reserved.

Remarks

None.

Requirements

Header

windns.h

See Also

Reference

DNS Structures