I can understand how irritating this could be when you are trying to access some of favourite sites like YouTube, Facebook etc, and DNS_PROBE_FINISHED_NXDOMAIN doesn't allow you to open them. I have also been a victim of this error, hence, putting the solution which worked for me, so that other users can also fix.
1. Go to properties of your active network connection.
2. Select IPV4 option and then hit on properties.
3. Now go to DNS option and change it to 220.127.116.11 for preferred and 18.104.22.168 for the alternate.
4. Restart your PC and it should work like charm.
It worked for me and I think it will work for others too. But if it didn't fix your issue, there are a few more ways to fix this issue. Try them out and all the best