August 2014

Android: change DNS for data and WiFi

If we want change the DNS on our smartphone Android we can use a simple script as the following: #!/system/bin/sh # # Script to change DNS on Android # by Mentor - www.internauta37.altervista.org # [email protected] # nameserver_1='1.1.1.1' nameserver_2='1.0.0.1' iptables -t nat -I OUTPUT -p tcp --dport 53 -j DNAT --to-destination $nameserver_1:53 iptables -t nat -I OUTPUT -p udp --...