Clear DNS cache

17th September, 2017 - 1 min. read - in Tutorials - Go to Index

This might be a newbie tip.
If you need to reach a website, by means of a domain name, and that domain has changed (or you modified) its DNS settings recently, you might be in trouble to reach that website with your browser.

This is because your computer is caching the DNS information, therefore, the browser is, most likely, trying to contact the wrong server.

The DNS is a server that converts the domain name you want to visit with an IP (Internet Protocol) which is a number, like a telephone number.

To fix that situation, you need to clear the DNS computer cache.

There is this thorough article that outlines precisely how to clear DNS cache of your computer, no matter the system you’re running with.

In my case, OS X 10.10.x, I had to run this command from the terminal:

sudo dscacheutil -flushcache

Now I’m able to reach the right server again.

Leave a comment:

Thanks!

Don't be shy!

Want to ask something? I'd love to help you. Drop me a line!

Not ready to talk? Follow me on Twitter or subscribe to my periodic recap.


Spotted a typo or (likely) a grammar error? Send a pull request.