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.

Archived Comments

Comment 1 by Mark Lynch posted on 9/10/2003 at 5:20 AM

In Mozilla/Netscape I think it will reset the DNS caching if you go offline and back on again.

Comment 2 by Raymond Camden posted on 9/10/2003 at 3:20 PM

Of course, the question is, how do you go offline with a cable modem? ;) I'm guessing if I would have restart Netscape, it would have worked ok. It probably caches in RAM.

Comment 3 by David Schmidt posted on 9/10/2003 at 10:06 PM

DNS caching on the desktop is evil. It's the first service I disable and stop on any Win2K, Win2K3 and XP machines. :)

Comment 4 by Mark Lynch posted on 9/11/2003 at 4:39 PM

Hi Ray, I know in mozilla there is a little icon down the bottom right corner of two connecting plug - clicking on this will take your browser offline - or the Work Offline item in the file menu. I suspect netscape is similar. ;)