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: