It is very curious that so many users started to experience DNS issues at the same time. Everything works fine for me with VPN or without VPN.
I set AdGuard as my DNS provider. You can configure your Network to use AdGuard DNS following this tutorial: https://adguard-dns.io/en/public-dns.html
Go to "Option 2: Configure AdGuard DNS manually", select your operating system and follow the instructions.
If you are using a VPN, you must check their website to know how to set a custom DNS.