Unable to connect: queryTxt ETIMEOUT

Unable to connect: queryTxt ETIMEOUT
clustertiendaap.7zy2ydf.mongodb.net

From vs code extension

  1. I have already change my DNS to 8888 and 8844 and 8800

The issue is on your side. I got

;QUESTION
clustertiendaap.7zy2ydf.mongodb.net. IN ANY
;ANSWER
clustertiendaap.7zy2ydf.mongodb.net. 60 IN TXT "authSource=admin&replicaSet=atlas-hmp2v1-shard-0"
clustertiendaap.7zy2ydf.mongodb.net. 60 IN SRV 0 0 27017 ac-iiwh38a-shard-00-00.7zy2ydf.mongodb.net.
clustertiendaap.7zy2ydf.mongodb.net. 60 IN SRV 0 0 27017 ac-iiwh38a-shard-00-01.7zy2ydf.mongodb.net.
clustertiendaap.7zy2ydf.mongodb.net. 60 IN SRV 0 0 27017 ac-iiwh38a-shard-00-02.7zy2ydf.mongodb.net.

May be VSCode need special extension for SRV records. What is the exact connection string you are using? As you see above clusters do not have A records.

Do you mean 8.8.8.8 and 8.8.4.4 rather than

Sure, I mean 8.8.8.8 and 8.8.4.4
I am trying to connect for the first time mongo to visual studio code.
right now MongoDB for VS Code v0.9.

I had the same error connecting MongoDB compass

It looks like you have terminated your cluster. I now get:

;QUESTION
clustertiendaap.7zy2ydf.mongodb.net. IN ANY
;ANSWER
;AUTHORITY
mongodb.net. 900 IN SOA ns-761.awsdns-31.net. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 60
;ADDITIONAL

I solved the error my internet service provider has blocked port 27107 by wifi that’s the reason why it couldn’t reach the external server.

1 Like