Added hostname resolution to the dmp_connection class