A scalable, fully managed NoSQL database for JSON documents with fast queries and automatic indexing
Hi @Homelab Platypus ,
Thanks for the detailed troubleshooting information.
Based on the symptoms, the issue does not appear to be a basic network or firewall problem, as SRV lookups, DNS resolution tests, and TCP connectivity are all succeeding. The queryTxt ECONNREFUSED error is commonly associated with the client being unable to retrieve or process the DNS TXT records required by the mongodb+srv:// connection string.
To further isolate the issue, I recommend:
- Upgrading to the latest version of MongoDB Compass, as older versions may have DNS resolution compatibility issues.
- Testing the connection from a different machine or network to rule out local DNS filtering, VPN, proxy, or endpoint security software.
- Copying a fresh connection string from the Azure portal and validating that the account's networking settings have not changed.
- Verifying that the required TXT record can be resolved for the cluster endpoint.
Since the behavior is reproduced in both MongoDB Compass and mongosh, the evidence points toward a DNS/TXT record resolution issue in the client environment or a networking configuration change rather than an authentication problem.
If possible, please share the output of the TXT record lookup and any verbose mongosh connection logs (with sensitive information removed). That should help narrow down the exact root cause.