I’m experiencing an issue with connecting to my MongoDB Atlas cluster using MongoDB Compass. When I try to connect, I receive the following error:
MongoDB connection error: Error: querySrv ENOTFOUND _mongodb._tcp.surf-spot-finder-cluster.abcd.mongodb.net
Connection String:
mongodb+srv://username:password@surf-spot-finder-cluster.abcd.mongodb.net/sample_mflix?retryWrites=true&w=majority
Error Message:
querySrv ENOTFOUND _mongodb._tcp.surf-spot-finder-cluster.abcd.mongodb.net
Troubleshooting Steps Taken:
- Verified that the connection string is correct.
- Ensured my IP address is whitelisted in MongoDB Atlas.
- Confirmed that the subdomain (
abcd
) is accurate. - Ran
nslookup
andping
, which show issues with resolving the domain.
Environment Information:
- MongoDB Compass version: 1.31.0
- Operating System: Windows 10
- Cluster Name: surf-spot-finder-cluster
Request for Help:
I would appreciate any guidance on how to resolve this DNS issue or if there’s a potential problem with my MongoDB Atlas setup.
Thank you!