When I try to open localhost in IE9 or IE10 on Windows7 (64bit) with Apache 2.2 it takes forever to resolve the URL. Other browsers have no problem and immediately resolve the URL, only IE shows the "Waiting for localhost" in browser tab while loading icon keeps animating forever. Sometimes stopping and refreshing works, but often not. Using 127.0.0.1 instead of localhost doesn't make any difference, nor does resetting all IE settings. In my hosts file I have:
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
Any idea what could be causing this problem?