I have a computer with Windows XP SP2 with a weird problem. The hosts file doesn't work. No matter what I do, adding or removing entries in the file doesn't make any difference, pinging the added names times out. I tried flushing the DNS cache (using ipconfig /flushdns) but that didn't work, I even tried to restart the DNS client service but that made no difference too.
Removing entries also has no effect, I ping the names and I get a reply.
Edit: Thanks for your answer guys, but the problem is more complicated than this. It seems I'll have to reinstall Windows.