I am trying to connect MongoDB from Atlas.
My mongo uri is: mongodb+srv://abc:123@something.something.com/admin?retryWrites=True
My pymongo version is 3.6.1
I have installed dnspython and done import dns
But i still get this error:

dnspython module must be installed to use mongodb+srv:// URI
May be the protocol, your URI should start with:
mongo+srv instead of mongo+src
If it still not working please put a pip list with the versions of PyMongo and dnspython (and version of python that you are using)
pymongo - "dnspython" module must be installed to use mongodb+srv:// URIs