Sample Header Ad - 728x90

How to route all my Android phone own's DNS request to 8.8.8.8 in iptables with root?

0 votes
0 answers
285 views
su
iptables -t nat -I OUTPUT -p udp --dport 53 -j DNAT --to 8.8.8.8:53
The above command is really working, but only for client phones who are using my phone's WiFi hotspot. The result I need is for my phone itself. I want to route all my DNS queries only through 8.8.8.8 without using a VPN but with iptables.
Asked by WaiYan (1 rep)
Jun 21, 2022, 12:56 PM
Last activity: Jun 22, 2022, 04:40 AM