querySrv ENODATA

Is the handler of srv down?

I can connect to an individual cluster shard using the format starting with mongodb://<user>:<pass>@<url> but not with mongodb+srv://<user>:<pass>@<url>

The error I’m getting is querySrv ENODATA _mongodb._tcp.<url>

Have you whitelisted your IP?
May be your network not supporting SRV string
Did you try from another network?

Most likely you have a typing error in SRV string.

Unlikely. I copied using the click to copy button from the Copy the connection string, then open MongoDB Compass.

My course cluster is currently set to allow connections from anywhere for testing.

I’ve changed my DNS and it worked.


1 Like