CONNECT_FAILED_ERROR : All hosts failed DNS resolution

Attached the code snippet