How to clear your DNS cache

Updated: March 1, 2017

DNS cache on your local computer stores IP addresses of hostnames you have recently visited. From time to time IP address changes. You might wait a couple of hours until your DNS cache refresh automatically or clear the DNS cache manually with the following commands.

Windows

Clearing DNS is very simple. Find a ‘Command Prompt’ in your start menu. Right click and select ‘Run as Administrator’. Then type the following command:

ipconfig /flushdns

MacOS

Clearing DNS is very simple. Open a Terminal and type the following command. You will be asked for administrator password afterwards.

sudo killall -HUP mDNSResponder

About Ivan Hudak

Works as an IT consultant for over 7 years now. He's a manager of our support team. Knows everything about all our themes, HTML, CSS, PHP and jQuery.