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 22.214.171.124 for preferred and 126.96.36.199 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