refine dns_remote_resolve