Questions tagged [hosts]

The tag has no usage guidance.

17 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
1answer
131 views

Is it possible to do DNS resolution based on connection?

On my Galaxy Note 2 phone (Android of course), is it possible to edit the hosts file so that it resolves example.com to a public IP BUT resolves it to a local private IP if connected to WiFi with a ...
4
votes
1answer
240 views

Why is Android showing a different hosts file once my system is booted versus in recovery?

In the past, I've used a modified hosts file on my system that I place at /system/etc/hosts. The process is pretty straightforward Boot into recovery using a custom recovery. Mount /system read-write ...
2
votes
0answers
537 views

Is blocking ads with hosts file slow?

For instance, Adaway offers a hosts file with 300K addresses to block. It works, but will this significantly impact performance, therefor battery life? When does the system access the hosts file? ...
1
vote
1answer
1k views

How to always resolve a domain name to a fixed IP without rooting?

The financial website https://wex1.in got it’s domain name deleted but it’s still possible to reach it by adding 104.25.31.35 wex1.in to etc/hosts files on a ᴘᴄ. So how to access the website without ...
1
vote
0answers
111 views

Editing hosts file to restrict website on wifi and mobile data

I have a rooted Samsung Note4 that is running cyanogenmod. I have gone in and edited my hosts file to restrict access to certain websites. However, I have noticed that the restrictions only works when ...
1
vote
1answer
47 views

How to determine to what hosts Android apps are connecting (root)?

How does one determine to what hosts Android apps are connecting (or trying to connect)? Want to know this information even if the host is being blocked by an entry in the hosts file. Assume the ...
1
vote
0answers
480 views

Why my hosts file is not saving/resetting after editing it?

I need to add # before the command line (so I can login into my google account which is a common problem). I rooted my device (I'm using a huawei P8) and tried using total commander and root ...
0
votes
0answers
273 views

Systemless hosts vs. regular?

Are there any advantages of using systemless hosts file? I have Magisk, and pretty big hosts file, don't know if it matters.
0
votes
0answers
90 views

How can I know the hostname of an Android phone for use in SSH connection?

When setting up public key authentication on SimpleSSHD server on my Android phone, by http://www.galexander.org/software/simplesshd/ Quick start Install SimpleSSHD. On any computer which ...
0
votes
2answers
1k views

Rooted phone but cannot change hosts file

I rooted on my S8+. I used the app root checker to check that it's rooted. I was attempting to block ads by hosts files with this tutorial I attempted to copy the hosts file to my pc, changed it, and ...
0
votes
0answers
106 views

Modifying etc/hosts file doesn't work for redirecting to something else

I need to do it for security testing purpose of an app. I have a rooted emulator which runs 7.1.1, It is rooted, I changed hosts file by using echo command, root file explorer, adb push and every else ...
0
votes
1answer
356 views

CMD cannot “read” my phones /etc/hosts file when editing it via adb

I have to configure my /etc/hosts file on my rooted device(Lineage OS). I can see the content with cat but when I try to open it with vim/nano/vi I only get these questionmark boxes. Screenshot: https:...
0
votes
0answers
2k views

How do you edit the hosts file on rooted Nougat

I have a Google pixel xl that I have rooted. On my G3 I was able to use Hosts Editor (https://play.google.com/store/apps/details?id=com.nilhcem.hostseditor) without any issues. When I tried on my xl I ...
0
votes
0answers
396 views

Can't connect to Play Store. Which app keeps modifying my “hosts” file?

So I am using a rooted Galaxy S6. I am familiar with the hosts file in the Android system and how it works. I modify the hosts file to block ads every once and a while. Recently, I haven't been able ...
0
votes
1answer
855 views

Cannot mount /system rewritable

I have rooted my phone and changed /system/etc/hosts file to block Facebook(just for test). However, since I did it, I am not able to edit the hosts file again. As a result, I cannot visit Facebook ...
0
votes
1answer
339 views

Rooted device, modified the hosts file and rebooted but still have access to blocked sites

I tried to block Facebook on Chrome by changing the hosts file but to no avail. What could possibly went wrong? Modifying hosts file does not have any effect I followed exactly what the op did and ...
-1
votes
1answer
49 views

Hosts doesn't work

So i play a game that uses a server to detect emulator users. Is there anyway to prevent other emulator users from being in my online game ? The problem is that other emulator users usually use ...