Fix DNS lookups if mDNS is not enabled.

DNS lookups didn't work on targets which set RESOLV_CONF_SUPPORTS_MDNS to 0. I've noticed with the atari and atarixl targets.
This patch fixes it.