His question was, what if the ip address resolves to some random chinese isp or ip address. And that was my answer.Proxy and dns are different.
Also just point to a local address that your router handles. 192.168.x.x in most cases. And then reserve that address to random MAC address so that dhcp doesn’t assign it.
This will work for both mobile data and wifi.
I know proxy and dns are different but you know even a proxy has its own dns server to resolve internet queries? If I have a proxy with address 10.100.10.100 for example and my proxy has its own dns server at 10.100.10.1, then if someone uses my proxy server to connect to the internet he will get dns queries answered from my server. My proxy will act like a middle man.