Solving a Dirichlet problem on unbounded domains via a conformal transformation