1. First determine if the problem is connection or DNS related.
ping <IP address>
If you get a response, then the target is accessible
2. Check if the DNS resolves
ping <hostname>
Does ping resolve the IP address for the provided host? Yes, the DNS resolution is working.