Error: queryTxt ETIMEOUT :: Error while connecting with Atlas

Error: queryTxt ETIMEOUT test-cluster-wt6zx.mongodb.net
at QueryReqWrap.onresolve [as oncomplete] (dns.js:202:19) {
errno: ‘ETIMEOUT’,
code: ‘ETIMEOUT’,
syscall: ‘queryTxt’,
hostname: ‘test-cluster-wt6zx.mongodb.net
}

I’m facing this connection Error while conncecting with Atlas. It worked fine till yesterday.
I’ve double checked my username and password.
I’ve whitelisted all the IP’s.

I’m stuck in the middle of a project and cannot connect to the DB itself.

4 Likes

It is timing out at name resolution time. Try using different DNS servers. You may try with google’s 8.8.8.8 and 8.8.4.4.

6 Likes

its not working. i try both of them
but it is still not working

1 Like

hi have you found any solution for above error?

How are you connecting to Atlas?
By app or other tool
Did you try from shell or Compass
What type of connect string you are using?

Hey the issue is resolved just you have lower your node version while connecting and it’s works perfectly