[GUIDE] Cloudflare DNS for Android Pie - Xiaomi Mi A1 Guides, News, & Discussion

I thought that this might be useful to some.
There's a new feature in Android Pie under "Settings > Network & Internet > Advanced" called Private DNS.
This can be used to change the DNS used system wide.
Just head to: https://blog.cloudflare.com/enable-private-dns-with-1-1-1-1-on-android-9-pie/ for full, simple instructions.

you can just enter 1.1.1.1

RavinduSha said:
you can just enter 1.1.1.1
Click to expand...
Click to collapse
This works system wide on all WiFi networks and mobile networks.

Related

VPN Cisco connect Problem

Hi all,
I got a problem using default VPN app from android (4.1)
I explain : I use VPN (from cisco) to get email from my work. (xAuth / PSK)
--> I suceesfully connected to vpn using "VPN Widget" and too with "VPNCilla" (with "old vpnc method" enabled and Natt mode on "Cisco-UDP, other way doesn't work)
--> I would like to make the same on a non-rooted device, and that's why i tried to configure Android's native VPN like this :
Name : vpn
Type : IPSec Xauth PSK
Serv adress : IP-Of-my-work-VPN
ID of IPSEC : Name-Of-my-work-VPN
IPSec Key : Key-Of-my-work-VPN
When I try to connect --> Name + Pwd --> Fail
After some looks at Google and a lot of VPN apk tested (for no-root), I think the problem is that Android default VPN doesn't offer this "old vpnc method" & "Cisco-UDP" Nat mod. But how can i get them work then?
Does someone can help me ?
Regards

MIUI 10 on Pocophone F1 creates VPN but doesn't route traffic

EDIT:
I checked again today and my IP is changing to the remote location. I haven't received any OS update so I'm pretty sure that something shady is happening here. I'd recommend installing Lineage OS or other reputable AOSP-based ROM as soon as an official release is made.
Original post:
Try this:
Install a VPN application (I tried ExpressVPN) and check your public IP (whatismyip.com or similar). Use an incognito tab to avoid caching details.
Now run the VPN.
Check your public IP. Close the brower, or use a different browser and check whatismyip.com again.
The IP has not changed.
Traffic is not routed down the VPN. This gives users a false sense of security whilst their traffic is completely exposed.
So far I've tried a couple of VPN applications, this is a good reason to flash lineage OS. No idea if this affected MIUI 9.6, I haven't tested that. Flaw exists in MIUI 10.0.4.0
Hi
I've test vpn with OpenVPN on miui 10 (beta) and it's working without bug.
Im on stock miui 10 android 8.1 global rom.
I too have this issue when i run nordvpn and connect to an international server.
IP address doesnt change even after a successful connection.
FieryAura said:
Hi
I've test vpn with OpenVPN on miui 10 (beta) and it's working without bug.
Click to expand...
Click to collapse
Maybe this is only on MIUI 10 final (not beta). I'm really surprised that this passed Google CTS, this is a serious bug and security risk.
chandanbs said:
Im on stock miui 10 android 8.1 global rom.
I too have this issue when i run nordvpn and connect to an international server.
IP address doesnt change even after a successful connection.
Click to expand...
Click to collapse
Yep. I've tried two providers myself and both exhibit the same problem.
Yep, tested on Miui 10 beta - 8.11.8 - using torguard.
My IP address is changed. Working fine on the beta...
Installed 1.1.1.1 by cloudfare, status shows connected thru VPN but ip address is not masked. Serious flaw
sanjay0501 said:
Installed 1.1.1.1 by cloudfare, status shows connected thru VPN but ip address is not masked. Serious flaw
Click to expand...
Click to collapse
dns and ip aren't the same.
JJay666 said:
dns and ip aren't the same.
Click to expand...
Click to collapse
Yup, I believe that the 1.1.1.1 app is a DNS-changer, not a VPN client. Traffic is not tunneled through a private network using this app.
FieryAura said:
Hi
I've test vpn with OpenVPN on miui 10 (beta) and it's working without bug.
Click to expand...
Click to collapse
When you receive the final update please let us know what you find. Also, which OpenVPN client app are you using?
belrik said:
Yup, I believe that the 1.1.1.1 app is a DNS-changer, not a VPN client. Traffic is not tunneled through a private network using this app.
Click to expand...
Click to collapse
It is a DNS changer but routing network through its DNS and works as a VPN.
Infact notification shade displays VPN symbol also.
I'm on MIUI 10 Stable and using OpenVPN for Android app without any issues.
strangre said:
I'm on MIUI 10 Stable and using OpenVPN for Android app without any issues.
Click to expand...
Click to collapse
Can u check Ur IP address thru whatsmyip.com if it is changed ?
I tried openvpn and connected to one of nordvpn's spain servers. Golly! Ip address successfully changed.
The app that i used was https://play.google.com/store/apps/details?id=de.blinkt.openvpn
VPN is not working! I use adguard to block ads. It shows that the VPN is connected but no data is being routed through the application!
vismaiy said:
VPN is not working! I use adguard to block ads. It shows that the VPN is connected but no data is being routed through the application!
Click to expand...
Click to collapse
Working for me. All ads were blocked in dailyhunt news app.
sanjay0501 said:
It is a DNS changer but routing network through its DNS and works as a VPN.
Infact notification shade displays VPN symbol also.
Click to expand...
Click to collapse
Cloudflares 1.1.1.1 is only a DNS resolver. It doesn't change your IP. A vpn and a dns resolver are two different things.
The symbol appears because you're routing traffic through 1.1.1.1's secured connection. Some phones display a 'key' logo , some states vpn.
If you wan't to change your IP and stay secured, i personally recommend Cyberghost on both the phone and pc.
Cheers.
I am on MIUI 10 stable with Jio mobile data.
Without VPN :
ISP : Jio
City : My Location
IPV6 address is available.
With TurboVPN :
ISP : Digital Ocean
City : Bangalore
IPV4 address is available.
So, i think it works for me.
Akills said:
I am on MIUI 10 stable with Jio mobile data.
Without VPN :
ISP : Jio
City : My Location
IPV6 address is available.
With TurboVPN :
ISP : Digital Ocean
City : Bangalore
IPV4 address is available.
So, i think it works for me.
Click to expand...
Click to collapse
Can you post the MIUI release number? Mine was 10.0.4.0
I checked again today and my IP is changing to the remote location. I haven't received any OS update so I'm pretty sure that something shady is happening here. I'd recommend installing Lineage OS as soon as an official release is made.

[HOW TO][NO-ROOT] Blocking ads without additional software in Android 9.0 Pie

The next method allows us to block ads in Android without to installing any additional software. It's working on any android device working with Android 9 Pie and above. ​
How to do it:
Go to Settings => Connections => More connection settings => Private DNS.
Check Private DNS provider hostname
Then you can use some of the rest. The first one is recommended.
dns.adguard.com
dns-family.adguard.com
dot-de.blahdns.com
Another DNS that you can check is NextDNS. It's free to use and provide some nice features on their website.
How to block ads in Google Chrome
The DNS method works also for Google Chrome, but you need to change something to make it work. ​
Open Chrome, type in chrome://flags
Then search for async DNS resolver (#enable-async-dns) and choose disabled in the drop-down menu. Otherwise, chrome could use a built-in DNS resolver which does not block ads.
Source: Reddit
wow, thanks
So it works only in Pie or will it work in Oreo also?
bocondo said:
So it works only in Pie or will it work in Oreo also?
Click to expand...
Click to collapse
Only for Pie.
Thanks, I have a questions
1. can i choose only one dns address?
2. in chrome i should choose enable or disable?
gtrs36 said:
Thanks, I have a questions
1. can i choose only one dns address?
2. in chrome i should choose enable or disable?
Click to expand...
Click to collapse
1. Yes
2. Disabled
Cheers for this it works great.
Try Blokada. Does even more. My personal tip.
I dont understand this one? System wide ads?

Enable private DNS on MIUI 10 android pie.

Hi guys.
I'm new to pocophone F1. Coming from a galaxy note 3 with aosp pie rom, i found that i cannot use private dns on pocophone miui 10 pie rom. Several articles on the net said it was removed from miui pie rom. The truth is it was hidden deep within miui 10.
Here's how to access it:
1. Install quick shortcut maker from playstore. Here's the link https://play.google.com/store/apps/details?id=com.sika524.android.quickshortcut
2. Open quick shortcut maker and then scroll to settings. Click on it and then find com.android.settings.Settings$NetworkDashboardActivity (also easier to find it by typing "mor" on search bar. Click on it and then choose try, it will go to network and internet settings where you now can set private DNS there. You can create a shortcut for later use after that.
Thanks. Any code/keyword to enable WiFi sharing (e.g. share WiFi from hotspot using phone with no mobile phone signal)- it is a feature in pixel but not available in miui
radii said:
Thanks. Any code/keyword to enable WiFi sharing (e.g. share WiFi from hotspot using phone with no mobile phone signal)- it is a feature in pixel but not available in miui
Click to expand...
Click to collapse
Not this one?
stonedead said:
Not this one?
Click to expand...
Click to collapse
the option is turned on for me but does not allow wi-fi sharing or doesn't work for me does it work for you? I I've tried
radii said:
the option is turned on for me but does not allow wi-fi sharing or doesn't work for me does it work for you? I I've tried
Click to expand...
Click to collapse
Never tried it before, will test it once i get home later today.
stonedead said:
Hi guys.
I'm new to pocophone F1. Coming from a galaxy note 3 with aosp pie rom, i found that i cannot use private dns on pocophone miui 10 pie rom. Several articles on the net said it was removed from miui pie rom. The truth is it was hidden deep within miui 10.
Here's how to access it:
1. Install quick shortcut maker from playstore. Here's the link https://play.google.com/store/apps/details?id=com.sika524.android.quickshortcut
2. Open quick shortcut maker and then scroll to settings. Click on it and then find com.android.settings.Settings$NetworkDashboardActivity (also easier to find it by typing "mor" on search bar. Click on it and then choose try, it will go to network and internet settings where you now can set private DNS there. You can create a shortcut for later use after that.
Click to expand...
Click to collapse
Good finding!!!
If you want to use the 1.1.1.1 private DNS from CloudFlare, you can just get the 1.1.1.1 app which does it for you
donk165 said:
If you want to use the 1.1.1.1 private DNS from CloudFlare, you can just get the 1.1.1.1 app which does it for you
Click to expand...
Click to collapse
It's not the same mate. Private dns in pie use DNS over TLS which is encrypted and more secure. Also you can use adguard dns in private dns to block ads so you don't need to use any adblocker app or even root your device to block ads system wide. To use adguard dns just put dns.adguard.com to that private dns.
stonedead said:
It's not the same mate. Private dns in pie use DNS over TLS which is encrypted and more secure. Also you can use adguard dns in private dns to block ads so you don't need to use any adblocker app or even root your device to block ads system wide. To use adguard dns just put dns.adguard.com to that private dns.
Click to expand...
Click to collapse
Yeah that is true. Its a shame that MIUI doesnt allow you to set the private DNS settings. Im on crdroid so I can set the dns without any issues. Hopefully they patch it in
donk165 said:
Yeah that is true. Its a shame that MIUI doesnt allow you to set the private DNS settings. Im on crdroid so I can set the dns without any issues. Hopefully they patch it in
Click to expand...
Click to collapse
Using the method i posted here works fine on miui 10.
radii said:
the option is turned on for me but does not allow wi-fi sharing or doesn't work for me does it work for you? I I've tried
Click to expand...
Click to collapse
It seems to work fine for me. I did not enable the setting in developer option. Took out my sim card and then connect to other phone, check from other phone and confirmed the internet is working fine on on both phones.
The third icon from your screen shot is missing on my pocophone, I'll consider factory reset
donk165 said:
If you want to use the 1.1.1.1 private DNS from CloudFlare, you can just get the 1.1.1.1 app which does it for you
Click to expand...
Click to collapse
Private DNS on setting on any PIE AOSP or any PIE Roms is systemwide.
The app itself only the application is affected and by using vpn.
The app is useless if you have the settings available on your device.
On xiaomi.eu when i press DNS the settings app crashes so i cannot set it.
Thanks, works fine here. But seems like I can't connect to internet when using CloudFare dns so I changed to Adguard and it works fine. Both wifi and data has no connection after connecting to CloudFare dns. Btw good sharing!
I'm on crDroid so the private DNS settings work fine for me I've attached a screenshot of the settings I'm using, might be helpful if that menu is available on your ROM
Forgot to attach
Hi...
if i already change to private dns... Will it stick after restart device?
and why i cannot create a shortcut to that setting. ?
Sent from my MI 8 using Tapatalk
MFAR198 said:
Thanks, works fine here. But seems like I can't connect to internet when using CloudFare dns so I changed to Adguard and it works fine. Both wifi and data has no connection after connecting to CloudFare dns. Btw good sharing!
Click to expand...
Click to collapse
That's cause it's cloudflare not cloudfare.
1dot1dot1dot1.cloudlfare-dns.com
Negi9 said:
That's cause it's cloudflare not cloudfare.
1dot1dot1dot1.cloudlfare-dns.com
Click to expand...
Click to collapse
Yeah, my bad. Forgot the 'l'. Like missing a semicolon in a coding ?

Is it possible to stop OOS adding 8.8.8.8 as a secondary DNS?

Hi,
OnePlus is known for adding 8.8.8.8 (Google) as a secondary DNS if the network provides only one DNS server with DHCP lease.
Is there any method to stop this unwanted behaviour? Maybe a patch for OOS? It's really annoying.
My device is rooted. As I can't make changes to all the networks I'm using, I'd prefer a OOS patch (NOT an additional firewall/port filter).
I already explored the system partition and searched for 8.8.8.8 which is referenced by a few apk. I'm not familiar with Android internals such as network interfaces and scripts.

Categories

Resources