Unable to connect to MongoDB


I have modified the the endpoints.yml file as below but I am unable to connect to MongoDB and getting the below error. Please help.

tracker_store: type: mongod url: mongodb://cluster0.****.mongodb.net/ db: myFirstDatabase username: Praveen password: *****

/rasa/core/tracker_store.py", line 185, in create raise ConnectionException( rasa.shared.exceptions.ConnectionException: Cannot connect to tracker store.cluster0.****.mongodb.net:27017: [Errno 8] nodename nor servname provided, or not known