improved dns::lookup and net::socket::connect