Mongodb compass cant connect to project

im currently using these versions

node -v
v14.17.4
~ npm -v
6.14.14

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

querySrv ETIMEOUT _mongodb._tcp.cluster0.rekes.mongodb.net

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

image

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

Try using 8.8.8.8 DNS server.

Alternatively you could use the standard connection string.

It could also be that you are missing dns-srv - npm

1 Like

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