Answer the question
In order to leave comments, you need to log in
Own DNS servers for 3G or 4G mobile Internet on Android 9?
You need to make your own DNS servers for the mobile Internet.
I try to specify the settings in the /system/build.prop file:
net.dns1=8.8.8.8
net.dns2=8.8.4.4
# getprop | grep dns
[net.dns1]: [8.8.8.8]
[net.dns2]: [8.8.4.4]
# getprop | grep dns
[net.dns1]: [10.20.30.41]
[net.dns2]: [10.20.30.42]
# setprop net.dns1 8.8.8.8
# setprop net.dns2 8.8.4.4
# getprop | grep dns
[net.dns1]: [8.8.8.8]
[net.dns2]: [8.8.4.4]
net.ppp0.dns1=8.8.8.8
net.ppp0.dns2=8.8.4.4
net.rmnet0.dns1=8.8.8.8
net.rmnet0.dns2=8.8.4.4
net.rmnet1.dns1=8.8.8.8
net.rmnet1.dns2=8.8.4.4
net.pdpbr1.dns1=8.8.8.8
net.pdpbr1.dns2=8.8.4.4
Answer the question
In order to leave comments, you need to log in
You can use android SetDNS , but it requires root.
And yes, just changing the parameter via setprog does not help. Either the relevant services do not look there, or they simply enter new parameters "so that everyone can find out", but they themselves do not read ... Something does not work. Or it works, but you need to know the appropriate command.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question