Can't connect to MongoDB Atlas - querySrv ENOTFOUND

This is happening to me now after Windows automatically updated to version 10.0.19042 Build 19042.

Last night things were working fine, got up today and my machine had restarted & updated. Skipped Windows 11 spam at startup, started up my dev environment in WSL1 like always, and now I can’t work. Anyone else experiencing this?

I can connect with Compass just fine.

I’m not connected to VPN (which does mess up connections to Atlas, although with a different error). Until today I have never seen the error in OP’s post.

telnet portquiz.net 27017 is failing, so I’m guessing something in the Windows update affected Windows Defender.

Couldn’t ping google.com either.

[SOLVED]

This worked for me: edit /etc/wsl.conf and set generateResolvConf = true