To flush your DNS cache on a Mac we simply need to use the following command within a Terminal window. The command may very but the one below should handle Macs running macOS Big Sur and later operating system.
As stated, open Terminal and enter the following command: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
You’ll need to enter your password and press Return to complete the process. It may even be advisable to restart / power cycle your Mac after this.
I hope my article on flushing the DNS Cache on your Mac has helped you. I welcome your thoughts, questions or suggestions regarding this article.
Let me know if you found any errors within my article or if I may further assist you by answering any additional questions you may have.