Why does android ignore my etc/hosts change in the browser? I've remounted /sys as rw, added one entry to etc/hosts (e.g. 10.0.0.1 x.com www.x.com) and rebooted my device.

After rebooting, if I check etc/hosts, the entry is fine. If I ping x.com, it pings the correct IP address I entered.

But, if I open a web browser (either stock or Dolphin), and browse to x.com, it'll go to the IP address the DNS resolves to.

What's happening?

(My phone is a Nexus One, which is running the custom Cyanogen 7.1 ROM based on android 2.3.7)

Update:
On the app 'LAN Droid' I get the edited address (so 10.0.0.1) just fine too. It seems like that it's only the browsers where it behaves wrongly.
This sounds exactly like this, down to ping working but not the browser. His eventual solution is quoted below:


  Stupid question, but are you editing the file on the handset or just pushing the file that 
  you posted here?  The one you posted is in dos format, so it has extra linefeed characters 
  at the end of the line that could confuse a linux system.


I don't know what you used to modify it, but you might want to check what kind of linefeed/newline characters it's using.