Fix dns class namespace problem