How to clear the local DNS cache in Mac OS?

You can flush your local DNS cache in Mac OS by following these easy steps:

1. Open your terminal to use the command line.

2. Type the following command and press Enter:

dscacheutil -flushcache

* (Required)