hey @attie_bc
I guess you are using All-pourpouse cluster, have you tried
curl https://www.google.com
Maybe your cluster doesnโt have internet access? If thatโs the case, DNS resolution for your MongoDB Atlas SRV connection string will fail, which would explain the โserver lookup failureโ youโre seeing.
If the curl fails too, then your cluster likely doesnโt have outbound internet access, which is required to resolve SRV records like *.mongodb.net.
Also, two other things worth checking:
MongoDB Atlas IP Access List
Even if DNS resolves correctly, Atlas will block the connection unless your Databricks clusterโs IP is whitelisted in the Network Access section. Docs
SRV Connection String Dependency on DNS
The SRV connection string (mongodb+srv://...) depends on resolving DNS SRV records. In some restricted environments (like private VPCs), this wonโt work without proper DNS forwarding. Docs
Hope this helps ๐
Isi