Skip to main content

Symptoms

You may see a mongodb+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

  1. Try the same connection on a different network.
  2. Switch DNS resolvers and retry.
  3. Resolve the SRV record manually with dig or nslookup.
  4. 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

Install Spanna

Install Spanna

See Spanna Features

See Spanna Features