adding code to do dns translations