Clear DNS Cache through Command Prompt

While updating or changing your site, it might be helpfull to clear your DNS cache through command prompt to clear any inaccurate data.

Clear DNS Cache on Windows

Depending on what Windows version you use (Windows 7, 8 or even Windows 10) the first step is to search the CMD program.

1. Search CMD
2. Right click -> Open as Administrator
3. Run the following command;
ipconfig /flushdns

Windows IP configuration successfully flushed the DNS Resolver Cache.

Clear DNS Cache on Mac OS

To clear the DNS cache on your Mac OS you need to follow the following steps;

1. Go to Applications
2. Click Utilities
3. Click Terminal

Now depending on your MAC OS version, type the following command;

MAC OS 10.10;
sudo discoveryutil mdnsflushcache

MAC OS 10.7 10.8 10.9;
sudo killall -HUP mDNSResponder

MAC OS 10.5 10.6;
sudo dscacheutil -flushcache

If the command succeeds the system does not return any output. Make sure you know the admins password to execute this command.