modify spark env so that private DNS will also work