rw, added one entry to
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.
(My phone is a Nexus One, which is running the custom Cyanogen 7.1 ROM based on android 2.3.7)
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.
ls -l /etc/hosts, possibly permissions/ownership problem?
chmod 644 /system/etc/hostssorted it out