MongoDB and Mongoose - Install and Set Up Mongoose

Tell us what’s happening:

Install and Set Up Mongoose - can someone confirm that this still works? I keep getting the following error:
Error: queryTxt EBADRESP cluster0.e6oykre.mongodb.net
at QueryReqWrap.onresolve [as oncomplete] (node:internal/dns/callback_resolver:45:19) {
errno: undefined,
code: ‘EBADRESP’,
syscall: ‘queryTxt’,
hostname: ‘cluster0.e6oykre.mongodb.net
}
My .env file has (password blanked): MONGO_URI=‘mongodb+srv://tonizollo:@cluster0.e6oykre.mongodb.net/?appName=Cluster0’
Thx.

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36

Challenge Information:

MongoDB and Mongoose - Install and Set Up Mongoose

Solved. For those of you who may strike this problem - I have been developing on a WIndows 11 system and couldn’t connect to MongoDB Atlas with any method.

The fix? I ended up changing my DNS settings from my ISP provider’s default service to Google (8.8.8.8, 8.8.4.4). All is well now. I hope this helps someone.

Cheers Toni