Hi @Invectiv_system,
Please see the details on my post Can't connect to MongoDB Atlas - querySrv ENOTFOUND - #20 by Jason_Tran regarding details of the querySrv error.
Using the same srv record you posted, the DNS associated with my machine was able to resolve the hostnames:
nslookup -type=srv _mongodb._tcp.cluster0.vdlcqjo.mongodb.net
Server: 127.0.0.1
Address: 127.0.0.1#53
Non-authoritative answer:
_mongodb._tcp.cluster0.vdlcqjo.mongodb.net service = 0 0 27017 ac-x2leqim-shard-00-00.vdlcqjo.mongodb.net.
_mongodb._tcp.cluster0.vdlcqjo.mongodb.net service = 0 0 27017 ac-x2leqim-shard-00-01.vdlcqjo.mongodb.net.
_mongodb._tcp.cluster0.vdlcqjo.mongodb.net service = 0 0 27017 ac-x2leqim-shard-00-02.vdlcqjo.mongodb.net.
From the machine attempting to connect, you can try the same thing to see what result you get.
If there is nothing returned from the request, you can try a different DNS like Google’s DNS for troubleshooting purposes.
Hope this helps.
Regards,
Jason