Flush Your DNS

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 Extend by Auth0. He focuses on serverless and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support.

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