DNS_ADDR structure (windns.h)

A DNS_ADDR structure stores an IPv4 or IPv6 address.

Syntax

typedef struct _DnsAddr {
  CHAR  MaxSa[DNS_ADDR_MAX_SOCKADDR_LENGTH];
  DWORD DnsAddrUserDword[8];
} DNS_ADDR, *PDNS_ADDR;

Members

MaxSa[DNS_ADDR_MAX_SOCKADDR_LENGTH]

A value that contains the socket IP address. It is a sockaddr_in structure if the address is IPv4 and a sockaddr_in6 structure if the address is IPv6.

DnsAddrUserDword[8]

Reserved. Must be 0.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Header windns.h

See also

DNS_ADDR_ARRAY

DNS_QUERY_RESULT