added DNS functionality