ADDED a default constructor and overloaded for other params
ADDED DNS hostname resolution