Linked Questions

11
votes
3answers
59k views

How to set up a host to IP mapping on unrooted Android?

I've a website running on my computer, and I want to test it from my Nexus 7 tablet. I.e. over the local WiFi LAN. If I type in the IP address it connects, but shows the wrong web site, because I'm ...
8
votes
1answer
5k views

Connecting to WiFi via ADB Shell

I've tried all publicly discussed methods I could find to connect to WiFi via ADB on a phone with a broken screen (no display/no touch). The closest I have got is via wpa_cli using the method #1 ...
5
votes
1answer
1k views

DNS queries are cached permanently, how to reliably clear DNS cache on Android 7+?

Is there a reliable, reproducible way to clear DNS cache on Android Nougat 7.0? I know there is at least one other question like this but that one was from 8 years ago and I hope I can ask again and ...
2
votes
2answers
1k views

How to Block/Filter Sites on Mobile Data Connection (Preferably using DNS Server)

I researched a way to filter sites using DNS Server on android phone, and that is to changed the phone's DNS Server, it worked for WiFi connection, but not for Data Connection, how would I Block/...
2
votes
1answer
2k views

How to ping a local network host by hostname?

I recently wiped my phone and now I am unable to ping a machine by the hostname. Pinging by IP works. I have a machine, let's say it is called NAS. From my Router and PC, ping NAS finds the machine. ...
3
votes
2answers
934 views

How to block access to a website?

Is there any way to block access to a particular website through the stock Android browser?
2
votes
1answer
1k views

How to configure DNS properly while two LANs are running?

The device can't ping www.google.com but ping 8.8.8.8 is okay. My OS is Android 6.0.1, the kernel is 4.1.15 I've tried the resolv.conf and /etc/hosts. But these methods seem can not work on Android. ...
1
vote
2answers
733 views

What values to set in Static IP Settings of Wi-Fi when changing DNS?

I have nearly the same problem as Set Open DNS in Android 5.0.1 and the answer helped me. Although I just want to change the DNS for blocking porn, what values for the following fields should I enter?...
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 ...
0
votes
1answer
126 views

Accessing local computer using hostname

From my tablet running Android 9 I would like to access a web site on my local server using its hostname (server). This works fine from my laptop computer running Debian 10. However, on my tablet I ...
1
vote
1answer
47 views

Specific DNS for a Android App

I am currently using adguard DNS using the private DNS setting in my android device to avoid advertisements. But it increases the ping time while I am in a multiplayer game (like PUBG Mobile). Is it ...
1
vote
1answer
35 views

Where does Android get its DNS information when connected to Wi-Fi?

I'm hosting a server on my LAN with a port exposed publicly by the router. myserver.mydomain.com is pointing to the static IP of my router. So I can access the server from the the internet. To make ...
1
vote
0answers
34 views

Can I find the path of name resolution?

I'd like to know which name servers are asked for a name, when I try to connect to a local device by name. Is it possible? I have a local DNS, which mostly works fine, but sometimes not. For example, ...
0
votes
0answers
33 views

How do I solve DNS_PROBE_FINISHED_NXDOMAIN on android

I have an ssl web app hosted on my home network that uses dyn-dns to maintain my public IP address and a CNAME record to point my actual domain name to the dyn-dns domain name. This all works fine on ...
0
votes
0answers
24 views

Do Android 9+ systems have DNS config at all, anywhere?

20-dns.conf in /etc/dhcpcd/dhcpcd-hooks/ does not exist getprop | grep dns returns 0 results /etc/resolv.conf does not exist /system/etc/resolv.conf does not exist grep for 8.8.8.8 in whole /etc/ ...