Unable to Connect Atlas Cluster from Shell or Compass

When I try to connect from Compass to the Atlas Cluster M0, I get the message.
getaddrinfo EAI_AGAIN mflix-9kafs.azure.mongodb.net mflix-9kafs.azure.mongodb.net:27017

I am not able to connect from Mongo Shell either. I get the following error.

DNSHostNotFound: Failed to look up service “”:This operation returned because the timeout period expired.
try ‘mongo --help’ for more information

Please help.

Hi @zenlife,

Please make sure you are using the exact url from cloud.mongodb.com as when I am trying to ping this cluster uri, it shows DNSHostNotFound.

Another thing you can check is whitelisting the IP address.