How to Flush DNS Cache in MacOS Catalina & Big Sur
Use the following commands to flush cache your DNS cache in MacOS. The commands are slightly differents depending on your version of MacOS. First, make sure you’ve opened up your terminal on your computer.
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder