Hello Rocio,
To flush the DNS cache in Windows 11:
Open Start, type Command Prompt, right-click it and select Run as administrator.
Then enter:
ipconfig /flushdns
Press Enter. You should see “Successfully flushed the DNS Resolver Cache.”
After that, restart the laptop and check the Internet connection again.
If it still does not connect, run these two commands as administrator, then restart the PC:
netsh winsock reset
netsh int ip reset
Microsoft’s official troubleshooting guide: https://support.microsoft.com/en-us/windows/experience/connectivity-networking/fix-wi-fi-connection-issues-in-windows?
Let me know what message you get after running ipconfig /flushdns.