Skip to content

Instantly share code, notes, and snippets.

@peterzen
Created July 31, 2019 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterzen/d2c46d0e21fe90d7f514680b0429b2bf to your computer and use it in GitHub Desktop.
Save peterzen/d2c46d0e21fe90d7f514680b0429b2bf to your computer and use it in GitHub Desktop.
init.d script:
#!/system/bin/sh
iptables -t nat -I OUTPUT -p tcp --dport 53 -j DNAT --to-destination 8.8.8.8:53
iptables -t nat -I OUTPUT -p udp --dport 53 -j DNAT --to-destination 8.8.8.8:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment