Fix DNS lookups if mDNS is not enabled.