removed hardcoded dns

changing to use tm.h defined macro

cleaning up