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 126.96.36.199:53 iptables -t nat -A OUTPUT -p udp --dport 53 -j DNAT --to-destination 188.8.131.52: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?