Conenction Error DNSProtocol Error

When trying to connect to the cluster from mongo shell, I am getting the following error:

$ mongo “mongodb+srv://” --username m001-student

DNSProtocolError: Invalid record 0 of SRV answer for "": Incorrect result size
try 'mongo --help' for more information

My mongo shell version is 4.2.1.

Please advise, thank you!

Hi @Joshua_61412,

It could be a temporary issue. I am able to connect to your cluster. Can you please try to connect again using this connection string ?

mongo "mongodb+srv://" --username m001-student -p m001-mongodb-basics

Hope it helps!

Please feel free to get back to us if the issue still persists.

Shubham Ranjan
Curriculum Support Engineer