I don’t know what exactly, but something is blocking requests to DNS servers. this could be the antivirus or firewall on your computer, or your Internet provider does it
I disabled the antivirus and firewall on Windows 11 and the problem still persists, about the problem being caused by the internet provider, I don't know, in the past I used the Raspberry pi 3 with dreampi and had no problems, 4 years ago.