IP_ADAPTER_DNS_SERVER_ADDRESS (Compact 2013)
3/26/2014
This structure stores a single DNS server address in a linked list of DNS server addresses for a particular adapter.
Syntax
typedef struct _IP_ADAPTER_DNS_SERVER_ADDRESS {
union {
ULONGLONG Alignment;
struct {
ULONG Length;
DWORD Reserved;
};
};
struct _IP_ADAPTER_DNS_SERVER_ADDRESS* Next;
SOCKET_ADDRESS Address;
} IP_ADAPTER_DNS_SERVER_ADDRESS,
*PIP_ADAPTER_DNS_SERVER_ADDRESS;
Members
- Alignment
Reserved. Used by the compiler to align the structure.
- Length
The length, in bytes, of this structure
- Reserved
Reserved.
- Next
A pointer to the next DNS server address structure in the list.
- Address
The IP address for this DNS server entry. This member can be an IPv6 address or an IPv4 address.
Remarks
The IP_ADAPTER_ADDRESSES structure is retrieved by the GetAdaptersAddresses function. The FirstDnsServerAddress member of the IP_ADAPTER_ADDRESSES structure is a pointer to a linked list of IP_ADAPTER_DNS_SERVER_ADDRESS structures.
The SOCKET_ADDRESS structure is used in the IP_ADAPTER_DNS_SERVER_ADDRESS structure.
The header file organization has changed and the SOCKET_ADDRESS structure is defined in the Ws2def.h header file, which is automatically included by the Winsock2.h header file. On the Platform Software Development Kit (SDK), the SOCKET_ADDRESS structure is declared in the Winsock2.h header file. In order to use the IP_ADAPTER_DNS_SERVER_ADDRESS structure, the Winsock2.h header file must be included before the Iphlpapi.h header file.
See Also
Reference
IP Helper Structures
GetAdaptersAddresses
IP_ADAPTER_ADDRESSES
SOCKET_ADDRESS