0

I'm trying to connect to

mongodb+srv://USER:PASSWORD@CLUSTER.drknv.mongodb.net/qa?retryWrites=true&w=majority

from Laravel 6 in Homestead but I get

Failed to look up SRV record Operation not permitted

Though I can connect to it using the same DSN from Compass. Please note that username, password and cluster name don't contain any special characters. How to solve this issue?

PHP User
  • 2,350
  • 6
  • 46
  • 87
  • Maybe this one: https://stackoverflow.com/questions/63754742/authentication-failure-while-trying-to-save-to-mongodb/63755470#63755470 – Wernfried Domscheit Apr 05 '21 at 14:27
  • "Failed to look up SRV record" is a DNS failure, it hasn't even attempted to connect to the mongodb server at that point. – Joe Apr 06 '21 at 08:02
  • perhaps take a look at https://github.com/jenssegers/laravel-mongodb/issues/1879#issuecomment-590749800 – Joe Apr 06 '21 at 08:04

0 Answers0