Not able to establish connection

I’m stuck with the following error. Not being able to connect to my cluster.

Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pymongo/uri_parser.py”, line 287, in _get_dns_srv_hosts
results = resolver.query(’_mongodb._tcp.’ + hostname, ‘SRV’)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dns/resolver.py”, line 1132, in query
raise_on_no_answer, source_port)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dns/resolver.py”, line 1051, in query
raise NXDOMAIN(qnames=qnames_to_try, responses=nxdomain_responses)
dns.resolver.NXDOMAIN: None of DNS query names exist: _mongodb._tcp.mflix-shard-00-00-on1xx.mongodb.net., _mongodb._tcp.mflix-shard-00-00-on1xx.mongodb.net.local.

Please check the connection string in .ini file. Also, make sure you have whitelisted the IP and firewall is disabled.

Kanika