dns_lookup() function
Look up a hostname in the array of known hostnames.
Arguments
name
the hostname to look up
addr
the hostname's IP address, as u32_t (instead of ip_addr_t to better check for failure: != IPADDR_NONE) or IPADDR_NONE if the hostname was not found in the cached dns_table.
Return value
ERR_OK if found, ERR_ARG if not found
Notes
This function only looks in the internal array of known hostnames, it does not send out a query for the hostname if none was found. The function dns_enqueue() can be used to send a query for a hostname.