Mongodb compass cant connect to project

im currently using these versions

node -v
~ npm -v

while connecting with compass selecting connection string with nodejs driver version 3.7 im getting this error


how can i resolve it?

But The connection string works fine when im using nodejs driver with version 2.2.12

im currently using ubuntu 21.04

Hi @Rohit_Jogi. Would you be able to share a screenshot that shows the problem?

yes , here it is


Your ISP/VPN is preventing outside DNS query or are using deprecated DNS software.

Try using DNS server.

Alternatively you could use the standard connection string.

It could also be that you are missing

1 Like

thank you so much ! i just changed my dns to google( . it works!