host file on win gets ignored
I have reinstalled my system and I was very irritated that my host file is ignored by xp. But luckily windows resolves names in a few more steps than linux. If you have the same problem, here is a solution ;)
Basicly windows resolves names in the following order:
- cache
- host file located in %SystemRoot%\system32\drivers\etc
- DNS server lookup (tcp/ip settings)
- WINS server lookup (tcp/ip settings)
- lmhosts also located in %SystemRoot%\system32\drivers\etc
Additions:
In my case ip6 caused this behaviour, because of its notation. Switching back to ip4 will solve it ;)