Posts

Showing posts with the label Mobile Data

Android - Change DNS For Mobile Data Without Using An App

Answer : I did not find a way to reliably do it without an app. I often use OpenDNS Family Shield, but sometimes it blocks me to visit some particular hacking site and then I need to quickly and easily change the DNS servers. I used to use Set DNS but it stopped to work in Android 4.3 and further, so I created Override DNS, a new app which mimics Set DNS' behaviour, but it's updated to work even in Lollipop. It has some other nice feature like a PIN protection ad a Wi-Fi SSID filter, too. The only way I can see to do it without an app is something like an iptables rule to redirect any traffic going to udp/53 to some other ip. A similar procedure is shown in a XDA thread. I paste here the iptables rules for completeness (I did not tested them) $IPTABLES -t nat -D OUTPUT -p tcp --dport 53 -j DNAT --to-destination 208.67.222.222:53 || true $IPTABLES -t nat -D OUTPUT -p udp --dport 53 -j DNAT --to-destination 208.67.222.222:53 || true $IPTABLES -t nat -I OUTPUT -p t...