hosts file gets ignored by browser when behind proxy server

This issue took a long time for me to workaround. My browser works inside a corpnet proxy server. In a brand new Win8 machine, I setup hosts file under %systemroot%\system32\drivers\etc to redirect a site to localhost. But it didn’t work in IE and other browsers. We thought it could be problem with which domain the machine is joined to….