After entering the password, this is what I keep getting:
Connecting to: mongodb+srv://sandbox.rmjaa.mongodb.net/admin?appName=mongosh+1.1.9
Error: queryTxt ETIMEOUT sandbox.rmjaa.mongodb.net
The most likely cause of the error is a DNS timeout resolving the TXT record.
Could you advise the output of the following command(s) from the client which you are receiving the error?:
dig txt sandbox.rmjaa.mongodb.net
OR
nslookup -type=txt sandbox.rmjaa.mongodb.net
As a temporary workaround and to also assist with narrowing down what the issue is, you can attempt to connect using the standard connection string format which includes the authSource and replicaSet name that are generally returned upon resolving the TXT records. An example of how to obtain this can be found here on this post although you’ll need to select connection via mongo shell rather than the node.js driver.
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
*** Request to dlinkrouter timed-out
An example of how to obtain this can be found here on this post although you’ll need to select connection via mongo shell rather than the node.js driver.
Upon selecting mongosh option, I get the same url (it has no mention of authSource and replicaSet)
Server: dlinkrouter
Address: 192.168.0.1
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
*** Request to dlinkrouter timed-out
The server ‘dlinkrouter’ (the current DNS you’re using) appears to be failing to resolve the TXT record. You can perhaps try using 8.8.8.8 for testing purposes and see if you can connect again. After trying another DNS like 8.8.8.8, please provide any errors received after connecting or advise if that has helped.
With regards to the mongosh connect options, from the menu shown in your screenshot, please select on the drop down list where it states “Select your mongo shell version” and choose the earliest version available which should be “3.4 or earlier”:
This router is behind the WAN of the local fibre provider. As such, everything else has worked in the past wrt Azure/AWS hosted sql databases. I don’t know why it can’t connect to Atlas. Since it is connected via WAN, I can’t change the DNS.
If I select 3.4 or earlier, it gives a command with “mongo” instead of “mongosh”. Windows Powershell does not recognise “mongo”.
mongo --version
mongo : The term ‘mongo’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify
that the path is correct and try again.
At line:1 char:1
I believe the initial use of the DNS seed list format (mongodb+srv connection string) failed due to a DNS resolution issue. From my end I am able to resolve the TXT record:
Apparently the authSource and replicaSet values are returned in comparison to the DNS used in your previous post which had timed out:
nslookup -type=txt sandbox.rmjaa.mongodb.net
Server: dlinkrouter
Address: 192.168.0.1
DNS request timed out.
timeout was 2 seconds.
Hence I believe that Atlas connectivity is not the issue in this case, but rather it’s a DNS resolution issue from the client you’re using specifically. The DNS server that you’re connecting to doesn’t seem to be responding to your requests (thus the timed out message). It may be that the server doesn’t support TXT records, since you’re able to successfully connect using a different URI that doesn’t involve a TXT record.