Lift the end point resolution into Lwt_unix directly