I am using IP tables to force the system to used a specific DNS but it only seems to work for WiFi networks but not mobile data.
These are the IP tables I use:
iptables -t nat -A OUTPUT -p tcp --dport 53 -j DNAT --to-destination 18.104.22.168:53 iptables -t nat -A OUTPUT -p udp --dport 53 -j DNAT --to-destination 22.214.171.124:53
These commands are set to run on startup.
Apparently this is not affecting dns lookups when using mobile data?
Where are the DNS settings stored in Android? Where does the system obtain DNS when using mobile data?