chris
(Chris Dellaway)
3
Unless you have configured Atlas to allow all IP addresses(which you shouldn’t do). You will need to add IP addresses of the servers that will be connecting to your Atlas cluster.
Pymongo only added dnspython as a dependency in 4.3.2 so prior to this version dnspython would have to be added to requirements.txt, this is one thing to check.
Atlas Documentation describes how to connect.
Server admins 3 and 4 got close. The mongodb+srv:// connection string is used to resolve both SRV records AND a txt record. You can read more at Connection String URI Format