moved init of dns object