How to empty your DNS cache

Posted on 13 Jan 2020 | By Michel Bergeron | hosting, news

Every time you enter a website address, your computer saves it, as well as every other site you visit, in the DNS cache. Your computer remembers everything since the beginning of time, well since the beginning of its time.

If a website changes its IP address or you type in a slight modification to the address, it’s possible, even likely, that you won’t be able to access that website anymore. To resolve this, you will need to empty or clear your DNS cache. This will also help in speeding up future loading of websites.

Here's a to do list per operating system in order to empty your DNS cache.

Windows 10


Tap the Windows button and type “cmd” (without the quotes) and tap enter. This will open a new window with the command prompt. At the prompt type the following:



mac-clean.jpg Launch Spotlight, hold down the Ctrl key, and press the space bar and do the following search: terminal. Launch the application and copy paste the code below depending on your version (to check your Mac version, click on the Apple and then About this Mac) within the application window.

macOS Catalina 10.15.0 à OSX 10.10.4

sudo killall -HUP mDNSResponder

OSX 10.10.0 – 10.10.3

sudo discoveryutil mdnsflushcache

OSX 10.9 – 10.8 – 10.7

sudo killall -HUP mDNSResponder

OSX 10.5 – 10.6

sudo dscacheutil -flushcache

Linux (Depending on your version)


/etc/init.d/named restart

/etc/init.d/nscd restart


Subscribe to our exclusive newsletter

Receive directly in your mailbox news related to technology and tools to perform better!