This article provides step-by-step instructions for flushing the DNS cache on macOS Sierra and later, as well as OS X Yosemite. It explains that you may need to enter your administrator password and that no confirmation message appears after running the command.
Flushing the DNS cache is a safe troubleshooting method that does not disconnect you from the internet and can help resolve website loading issues or apply new DNS settings.
Learn more about how to flush DNS on a computer by viewing the documentation below.