Linked Questions

24
votes
6answers
83k views

How to change mobile connections's DNS on Android KitKat?

I want to avoid censorship from my local mobile ISP (it blocks imgur, for example, for some unknown reason. Screenshot (click image for larger variant) I'm pretty certain that I can circumvent this ...
20
votes
4answers
120k views

Change DNS for mobile data without using an app

(My phone is rooted and runs Android 5.1) How can one change the DNS addresses of mobile data (and persistently, if possible) without the requirement of an app?
14
votes
3answers
21k views

Why is Android refusing to resolve DNS records pointing to internal IP addresses?

I have a very strange behavior on an Android device (Nexus 7) when trying to access local network applications. Instead of getting the actual IP of the machine on LAN, the Android device gets the ...
1
vote
3answers
7k views

Is it possible to set DNS for mobile network

I live in Canada and use an unblocking service to access US Netflix content, Pandora and Hulu. I would like to be able to use this service while not on my WiFi is there a way to set the DNS server to ...
0
votes
2answers
5k views

changing dns settings on android - not working

When i set my dns on my android device and go to dns leak test it's not the dns that I set in the dns settings. Its the dns set by my ISP. How can I get it to use the dns that I want? for reference:...
8
votes
1answer
4k 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 ...
2
votes
1answer
5k views

Change mobile network DNS on Lollipop and up

Ok, this is a constantly asked question, how to change mobile network DNS. But in different Android version, you will get different method. So this is the reason I ask this. I have already known a ...
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/...
3
votes
1answer
775 views

How to run SSH/SFTP server for multiple user logins with password authentication on Android?

I want to run an SSH server on my Android phone so that my clients (varying between 10 to 20) can easily and securely share data with me when I'm on the go, without using any third party hosting ...
1
vote
0answers
2k views

Where are the DNS settings stored in Android?

I am using IP tables to force the system to used a specific DNS but it only seems to work for WiFi networks but not mobile data. These are the IP tables I use: iptables -t nat -A OUTPUT -p tcp --...
2
votes
2answers
1k views

How to modify environment variables like PATH at startup?

I'm trying to add /data/bin to variable PATH at startup in order to have it available for any other app. In Ubuntu I use the file /etc/environment, I cannot find anything similar in Android. I ...
1
vote
1answer
864 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. ...
2
votes
1answer
953 views

How to redirect all web requests from hosts connected to hotspot to a local web server?

I literally have the same question as found in this post: How to redirect complete outgoing phone's traffic to a proxy server? I have an Android phone acting as a hotspot server (using KWS). I am ...
1
vote
1answer
560 views

How to use Private DNS on Android Pie for tethering?

Is it possible to use Private DNS on my laptop that is connected to WiFi shared by my Android Pie smartphone with configured Private DNS? I tried visiting https://1.1.1.1/help from my phone and it ...
1
vote
2answers
557 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?...

15 30 50 per page