DNS_OPT_DATA structure (windns.h)

The DNS_OPT_DATA structure represents a DNS Option (OPT) resource record (RR) as specified in section 4 of RFC 2671.

Syntax

typedef struct {
  WORD wDataLength;
  WORD wPad;
#if ...
  BYTE Data[];
#else
  BYTE Data[1];
#endif
} DNS_OPT_DATA, *PDNS_OPT_DATA;

Members

wDataLength

The length, in bytes, of Data.

wPad

Reserved. Do not use.

Data

A BYTE array that contains variable transport level information as specified in section 4 of RFC 2671.

Data[1]

A BYTE array that contains variable transport level information as specified in section 4 of RFC 2671.

Remarks

The DNS_OPT_DATA structure is used in conjunction with the DNS_RECORD structure to programmatically manage DNS entries.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Header windns.h

See also

DNS Structures

DNS_RECORD