Symptoms
You may see amongodb+srv:// connection string fail while a normal mongodb:// connection works, or the same connection may work on one network and fail on another.
Why this happens
mongodb+srv:// depends on SRV and TXT DNS lookups. Some networks, mobile carriers, or restrictive DNS environments do not resolve those records correctly.
What to test
- Try the same connection on a different network.
- Switch DNS resolvers and retry.
- Resolve the SRV record manually with
digornslookup. - If needed, convert the SRV connection into a standard
mongodb://host list temporarily.
When to use this page
This is the page to send users to when they say:- my Atlas connection string is correct but Spanna cannot connect
- the connection works on wifi but not on mobile hotspot
- MongoDB SRV resolution is failing intermittently
