Question Change DNS for both Wi-Fi and Data.

Search This thread

Nemix77

Senior Member
Nov 11, 2011
252
154
Toronto
Xiaomi Mi Pad 4
Xiaomi Poco F3
As the title says I want to change the DNS for both Wi-Fi and data to Google's DNS servers.

Before this phone I used a Magisk module to change the DNS for my Mi Pad 4 (Wi-Fi only), but the module is not available anymore and I don't think it works for data networks.

All methods are welcome: ADB, terminal (root), Magisk module, app (root)...
 
As the title says I want to change the DNS for both Wi-Fi and data to Google's DNS servers.

Before this phone I used a Magisk module to change the DNS for my Mi Pad 4 (Wi-Fi only), but the module is not available anymore and I don't think it works for data networks.

All methods are welcome: ADB, terminal (root), Magisk module, app (root)...
Can't you just use a DNS changer app that acts as a VPN
Also on AOSP you can change your DNS in network and internet settings under private DNS
 

Nemix77

Senior Member
Nov 11, 2011
252
154
Toronto
Xiaomi Mi Pad 4
Xiaomi Poco F3
I'll look into it, I'd rather not go through a VPN. The description for the app is a bit confusing.

Miui has private DNS also, but IPv4 addresses are not accepted.

I think I have to provide the Google's host name for private DNS to work?

The Magisk module I used a while back uses terminal and requires root.
 
  • Like
Reactions: Robert314

Nemix77

Senior Member
Nov 11, 2011
252
154
Toronto
Xiaomi Mi Pad 4
Xiaomi Poco F3
You can use hostnames :
1dot1dot1dot1.clouldflare-dns.com
dns.quad9.net
dns.google
I'm a networking specialist and the network settings on Android (perhaps it's just Miui) make no sense at all.

It's very basic and counter intuitive to have hostnames for DNS servers for DNS settings.

All other operating systems including Cisco's IOS (which is based on Unix) uses 32-bit or 128-bit addresses for DNS, simply because these are direct IP addresses and are not alias hostnames.

Furthermore, direct public IP addresses do not need to be translated from hostname to IPv4/IPv6 address blocks in order to contact the DNS server, it's the DNS server's job for address translation.

Both Linux and Windows Servers need administrative/root (su) permissions to set the DNS addresses, I was expecting the same thing on Android (root permission via Magisk) since the kernel is based on Linux.

Despite my annoyance, thanks for all the help guys!
 
Last edited:

LiNe1771

Senior Member
Dec 18, 2014
521
151
Xiaomi Poco F3
Blokada. I use it since last year, it acts like a vpn but u only have a vpn if u pay the premium, the free version allows you to block tracking, ads and change dns from both wifi and mobile. Doesn't drain battery.
 
  • Like
Reactions: Nemix77

Nemix77

Senior Member
Nov 11, 2011
252
154
Toronto
Xiaomi Mi Pad 4
Xiaomi Poco F3
Blokoda for blocking ads goes through a VPN server, that's understandable.

Edit:

Much easier to understand and search if they just label private DNS as DoT and DoH, currently not implemented in company networks yet.
 
Last edited:

yassine71100

Member
Aug 6, 2019
10
1
France
Hello,

I am an experienced user on jailbroken ios and I inform you that we can change the dns server just by defining an ip address and its working and by just editing a system file, no need for third party application or vpn.

I change dns as if I were on windows I defined the dns ip address and it all works immediately in 4G cellular data.

On android at the time on android kitkat 4.4.4 or 4.4.2 and lollipop 5.0.1 and 5.1.1 you could change the dns server by editing the build prop and its market perfectly in mobile data and wifi.

Then in December 2020 I bought a smartphone to go back to android for the custom modding side so I bought the S20 FE 5G under android 10 and the dns in cellular 4G does not work at all, even by putting a domain name it didn't work at all.

On android the dns in wifi can be changed but the mobile data I couldn't find, so I went back to jailbroken ios a thousand times better than a personalized android.
roid personnalisé.
 

kima09

Senior Member
Jan 20, 2014
137
27
Aizawl
Hello,

I am an experienced user on jailbroken ios and I inform you that we can change the dns server just by defining an ip address and its working and by just editing a system file, no need for third party application or vpn.

I change dns as if I were on windows I defined the dns ip address and it all works immediately in 4G cellular data.

On android at the time on android kitkat 4.4.4 or 4.4.2 and lollipop 5.0.1 and 5.1.1 you could change the dns server by editing the build prop and its market perfectly in mobile data and wifi.

Then in December 2020 I bought a smartphone to go back to android for the custom modding side so I bought the S20 FE 5G under android 10 and the dns in cellular 4G does not work at all, even by putting a domain name it didn't work at all.

On android the dns in wifi can be changed but the mobile data I couldn't find, so I went back to jailbroken ios a thousand times better than a personalized android.
roid personnalisé.
You don't need root to change DNS on Android. You can use Private DNS which work on both WiFi and Mobile Data just fine. I don't think you can do that on iOS without jailbreaking.
 

yassine71100

Member
Aug 6, 2019
10
1
France
You don't need root to change DNS on Android. You can use Private DNS which work on both WiFi and Mobile Data just fine. I don't think you can do that on iOS without jailbreaking.
Hello,

Android's private dns does not work very well precisely depending on the dns server.

When I enter the DNS domain name and well it does not work at all!

This "FDN" DNS server, for example, does not work on Android at all, even when entering its domain name.


Going back to ios you can change the dns without jailbreak it's possible but you have to go through an application etc which simulates a vpn connection, except.

Off on ios at least once root I can define the dns server of my choice by defining an ip address as on windows when you change the dns server, also it works afterwards in non-jailbreak mode.

On my iPhone my DNS at FDN works perfectly 3G/4G/5G Wifi.

If on android I can define the dns server of my choice by entering the dns ip address it's perfect but unfortunately it's not the case!
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    As the title says I want to change the DNS for both Wi-Fi and data to Google's DNS servers.

    Before this phone I used a Magisk module to change the DNS for my Mi Pad 4 (Wi-Fi only), but the module is not available anymore and I don't think it works for data networks.

    All methods are welcome: ADB, terminal (root), Magisk module, app (root)...
    Can't you just use a DNS changer app that acts as a VPN
    Also on AOSP you can change your DNS in network and internet settings under private DNS
    2
    Miui has private DNS also, but IPv4 addresses are not accepted.

    I think I have to provide the Google's host name for private DNS to work?
    You can use hostnames :
    1dot1dot1dot1.clouldflare-dns.com
    dns.quad9.net
    dns.google
    1
    I'll look into it, I'd rather not go through a VPN. The description for the app is a bit confusing.

    Miui has private DNS also, but IPv4 addresses are not accepted.

    I think I have to provide the Google's host name for private DNS to work?

    The Magisk module I used a while back uses terminal and requires root.
    1
    You can use hostnames :
    1dot1dot1dot1.clouldflare-dns.com
    dns.quad9.net
    dns.google
    Personally I use dns.adguard.com it doesn't track and is quite good and at blocking ads
    1
    Blokada. I use it since last year, it acts like a vpn but u only have a vpn if u pay the premium, the free version allows you to block tracking, ads and change dns from both wifi and mobile. Doesn't drain battery.