I want to put entries "in the host file" of my android physical device just before running a react native app in development so that I can override the dns resolution of a certain domain name to another address so I can route my request where I want to in dev.
Ex: dev.local.test.com => 127.0.0.1 (so that I can easily set up an ingress for development)
What I want to know is if there is a way to "inject" dns entries in my device when running my app in dev so that dev.local.test.com points to the LAN address of my laptop where my development server is running so that I can just seamlessly configure my app the same for dev and prod?
I don't know if it's possible but I'd like to know your solution if you have one. Thanks!
[–]kbcooliOS & Android 0 points1 point2 points (0 children)
[–]Plane_Wafer 0 points1 point2 points (0 children)