Flush Your DNS

This post is more than 2 years old.

I was working on a site today and wondered why a set of links to outside sites ended up pointing to my own box. Ended up these sites were flagged as advertising sites in my HOSTS file. I temporarily commented out the settings but of course this didn't make a difference to the browser. After a quick Google search I found that you can flush the DNS in Windows by simply doing:

ipconfig /flushdns

Gotta love google! By the way, Netscape seems to keep it's own cache a bit longer. I had to test in IE to see the change.

Raymond Camden's Picture

About Raymond Camden

Raymond is a developer advocate for HERE Technologies. He focuses on JavaScript, serverless and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com