How to flush DNS cache


Tom Barber

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

This website uses cookies to ensure you get the best experience on our website. Read more in our privacy policy