TCPIP_DNS_IsNameResolved Function
C
TCPIP_DNS_RESULT TCPIP_DNS_IsNameResolved(
const char* hostName,
IPV4_ADDR* hostIPv4,
IPV6_ADDR* hostIPv6
);
Description
Call this function to determine if the DNS name resolution has been completed. This function allows for retrieval of separate IPv4 and IPv6 addresses for a name.
Preconditions
TCPIP_DNS_Resolve() has been called.
Parameters
Parameters | Description |
---|---|
hostName | A pointer to the null terminated string specifying the host for which to resolve an IP. |
hostIPv4 | A pointer to an IPV4_ADDR structure in which to store the resolved IPv4 address if resolution is complete. Could be NULL if not needed. |
hostIPv6 | A pointer to an IPV6_ADDR structure in which to store the resolved IPv6 address if resolution is complete. Could be NULL if not needed. |
Remarks
The function will set either an IPv6 or an IPv4 address to the hostIP address, depending on what's available.