querySrv ENOTFOUND _mongodb._tcp.cluster0-shard-00-00-jxeqq.mongodb.net

I am getting below error.

querySrv ENOTFOUND _mongodb._tcp.cluster0-shard-00-00-jxeqq.mongodb.net

I am following below "

In this course we will make extensive use of MongoDB Compass for learning how to use MongoDB.

  1. Please download Compass from the MongoDB Download Center . If you downloaded Compass before today, please make sure you are using latest (Stable) version of Compass and upgrade if necessary. Please ensure you don’t download “Community Edition Stable” version.

  2. Install Compass on your computer from the download.

  3. Launch Compass.

When Compass opens you will see a page titled “Connect to Host”.

  1. Use the following information to complete this form, but do not click “Connect” yet. Hostname: cluster0-shard-00-00-jxeqq.mongodb.net Username: m001-student Password: m001-mongodb-basics Replica Set Name: Cluster0-shard-0 Read Preference: Primary Preferred
  2. Click “Add to Favorites” and enter M001 RS as the Favorite Name . Adding this connection as a favorite will enable you to easily connect to our class MongoDB deployment after closing and restarting Compass at some point in the future.
  3. Now, click “Connect” and load the databases in the M001 class MongoDB deployment."

Are you able to connect by shell?

Please check if any firewall/anti virus/VPN blocking your request

Please close it , Its solved.