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/”, 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/”, line 1132, in query
raise_on_no_answer, source_port)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dns/”, line 1051, in query
raise NXDOMAIN(qnames=qnames_to_try, responses=nxdomain_responses)
dns.resolver.NXDOMAIN: None of DNS query names exist:,

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