Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
![](/static/devrant/img/pipeless-devrant-banner-white.png)
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Does anyone actually know how to force the use of a certain dns server on android? (rooted)
-
epse36626y@hypervtechnics yeah quite a few vpn apps force dns, but if he's using a vpn that doesn't have the option...
-
@linuxxx I know there was an app DNS switcher on google play at some point and apps like ROM Toolbox could do it. But all of them are somewhat sketchy
-
Condor325226yPersonally I'm using OpenVPN for Android (non-root) to connect to my VPN servers, which resolve using 10.8.0.3 and 10.8.1.3 depending on which server I'm connected to. On just WiFi it just parses whatever my DHCP server advertises. So that'd be 192.168.10.3. You just have to set it on your router or whatever is advertising the DNS server over DHCP (i.e. your dhcpd).
-
Condor325226yFor local DNS, I'd highly recommend to connect it to your VPN as well if you're using personal servers. That way you can access your own DNS from anywhere, and it is protected by your VPN as well 🙂
-
Forside14596ySince Android Pie I have this option in the network settings. Can't tell if it's a function from OxygenOS (OnePlus) or aosp.
-
Condor325226y@Forside it's common in all of Android Pie 🙂
(Screenshot from StatixOS - Android 9 on angler) -
Forside14596y@Condor You're showing the settings of a specific wifi connection. I mean the system wide DNS dialog.
-
Condor325226y@Forside system-wide DNS specification on the client isn't implemented on Android yet afaik. It's something that Android takes from the DHCP server, so currently that's the place where you'll want to specify your preferred DNS server.
-
Forside14596y@Condor Well I just know that I have this option ^^ It's independent from the connections and is always applied (maybe overwritten by specific dns settings for a single connection, if not set to automatic).
Pro tip: never set custom script stuff related to dns server forcing things in a root firewall app if you don't know what you're doing.
How would I know? There's a slight chance that I just went offline for a few days (mobile only) to figure this shit out 😅
All fixed now, though!
rant