I have a rooted HTC One X running a custom ROM. I use a firewall and Xprivacy for managing permissions. When on my Vodafone India 3G network, I can't open any site other than Google using the default browser because it reports a DNS error saying unknown host. All other apps work fine regardless of 3G or Wi-Fi. I've white listed the browser in Xprivacy and the firewall so it's not due to permissions being denied. It works fine on Wi-Fi. Anything else I should check?

  • Which browser are you using?
    – Dan Hulme
    Sep 24 '14 at 8:56
  • The built in android browser, nothing special.
    – Rex
    Sep 25 '14 at 9:37

Try deleting a file named 'hosts' from /system/etc. And reboot :)

  • Copy it somewhere as a backup first is always good advice! Just in case something goes horribly wrong!
    – RossC
    Sep 24 '14 at 9:15
  • Backup is not required in this case. On boot the hosts file is re-written with localhost info on it. Create a backup if it pleases you.
    – Yytsi
    Sep 24 '14 at 10:17
  • Yeah I know how it works, but you know yourself: In theory it does all that, in reality this is a custom ROM and if something can go wrong, it probably will!
    – RossC
    Sep 24 '14 at 10:18
  • Good point there.
    – Yytsi
    Sep 24 '14 at 10:24
  • Renaming/moving the file instead of deleting it will also help if you accidentally do it to the wrong file. It's not unheard of.
    – Dan Hulme
    Sep 25 '14 at 9:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.