As far as I know, I’ve never gotten editing a hosts file to work. That’s a bummer, because sometimes you need to preview a site you’ve just migrated to new hosting, without pointing the DNS over and dealing with the horrors (wonders?) of DNS propagation. hosts is supposed to make that easy, but—at least in my experience as a Windows peasant—it’s super-hard to work with and doesn’t perform as advertised.