How to flush DNS cache

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:


ipconfig /flushdns


sudo killall -HUP mDNSResponder && echo macOS DNS Cache Reset

Wanna know more?

For more incredibly useful tit bits of information like this. Why not follow us on social media, or work with our team?

I'm a web developer & online marketing specialist who tends to spend most days experimenting & keeping up to date with HTML, CSS, JS, PHP & various other work-related jargon. I lead the development team & like to constantly push boundaries within the business. Unfortunately, I support LUFC.