Windows 11 / Windows 10
Open Command Prompt as admin and run:
ipconfig /flushdns
If it worked, you will see: Windows IP configuration successfully flushed the DNS Resolver Cache.
How to open Command Prompt as admin: Right-click the Start button and select Terminal (Admin) or Command Prompt (Admin).
MacOS
Open Terminal and run:
sudo killall -HUP mDNSResponder
You will need to enter your Mac's admin password to run this.
How to open Terminal: Go to Applications > Utilities > Terminal.