Move DNS to separate class
Fix class calls to setup class. Import some ideas from Radoslaw Tomaszewski's API scripts