netconn_gethostbyname_addrtype() function
Execute a DNS query, only one IP address is returned
Arguments
name
a string representation of the DNS host name to query
addr
a preallocated ip_addr_t where to store the resolved IP address
dns_addrtype
IP address type (IPv4 / IPv6)
Return value
ERR_OK: resolving succeeded ERR_MEM: memory error, try again later ERR_ARG: dns client not initialized or invalid hostname ERR_VAL: dns server response was invalid