com.mongodb.MongoConfigurationException: Failed looking up TXT record for host xcluster.nuncuef.mongodb.net

I have mongoDb atlas instance running, but when trying to connect it throws this error com.mongodb.MongoConfigurationException: Failed looking up TXT record for host xcluster.nuncuef.mongodb.net. Connection is successful on windows machine, but not on the osX one. Using Intelijj with ktor and kmongo. Also, I can connect through mongo shell. Does anyone know how to solve this issue?

Check this thread.Issue similiar to your case with Mac & kmongo.May help

Unable to look up TXT record for host ****.mongodb.net from IntelliJ

1 Like