A web browser isn't the best way to check if your
hosts syntax is correct. Try executing
and verify that it pings
The reason why Chrome appears to ignore your
hosts file is caching:
If Chrome has already queried the IP lately (the definition of lately most likely depends on the time to live (TTL) returned by the DNS server), it will bypass the
hosts file, since it already knows the correct IP. This is done to speed up web browsing.
To make Chrome respect the new entry, do the follwing:
/etc/hosts as @Renan described.
since the beginning of time.
Empty the cache, but uncheck everything else.
Clear browsing data and wait for it to finish.
Chrome should respect your
hosts file now.