Can you share more details on:
- How you changed the DNS (and to what value)
- Was the application restarted after changing the DNS settings
- The environment in which the application is run (OS details, containerised, virtualised, etc)
- If from the same client you can connect using
mongosh
or MongoDB Compass
Additionally it may sound odd but we can’t rule it out completely, please verify you’re using the correct connection string. Check using the connection string procedure in the Atlas UI. I’ve seen some cases people created a cluster, copied that particular string, deleted said cluster then created a new one forgetting to get the new connection string.
Regards,
Jason