How to flush DNS cache

Category:News
Date:
Author:Tom Barber
tom.jpeg

When developing websites and providing staging/test environments for clients which are updated regularly, we often come across the age old issue:

“But I can’t see any changes?”

The most common reason for this is down to caching. This issue can usually be solved by clearing your browser history & reloading the page. Alternatively, you may choose to load the page in incognito/private mode.

If this doesn’t do the trick, try flushing your DNS cache by opening your terminal and typing this command:

Windows:

ipconfig /flushdns

Mac

sudo killall -HUP mDNSResponder & echo macOS DNS Cache Reset

Share

Tom Barber
tom.jpeg
I'm a web developer who enjoys problem solving and creating things which people enjoy working with and looking at. I head up the development team at ImDigital. Unfortunately I'm an LUFC fan!