Conenction Error DNSProtocol Error

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

$ mongo “mongodb+srv://sandbox-otvws.mongodb.net/test” --username m001-student

DNSProtocolError: Invalid record 0 of SRV answer for "_mongodb._tcp.sandbox-xxxxx.mongodb.net": 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://sandbox-otvws.mongodb.net/test" --username m001-student -p m001-mongodb-basics

Hope it helps!

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

Thanks,
Shubham Ranjan
Curriculum Support Engineer