DNS_WIRE_RECORD structure (windns.h)
The DNS_WIRE_RECORD structure contains information about a DNS wire record transmitted across the network as specified in section 4.1.3 of RFC 1035.
Syntax
typedef struct _DNS_WIRE_RECORD {
WORD RecordType;
WORD RecordClass;
DWORD TimeToLive;
WORD DataLength;
} DNS_WIRE_RECORD, *PDNS_WIRE_RECORD;
Members
RecordType
A value that represents the RR DNS Response Type. RecordType determines the format of record data that follows the DNS_WIRE_RECORD structure. For example, if the value of RecordType is DNS_TYPE_A, the data type of record data is DNS_A_DATA.
RecordClass
A value that represents the RR DNS Record Class.
TimeToLive
The DNS Resource Record's Time To Live value (TTL), in seconds.
DataLength
The length, in bytes, of the DNS record data that follows the DNS_WIRE_RECORD.
Remarks
When constructing a DNS message, the DNS_WIRE_RECORD structure is immediately followed by the record data and is preceded by the DNS RR's domain name.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Header | windns.h |