refine httputil dns_resolve