I have a webview that loads up content from one of two datacenters, one prod and one gamma. Both data centers have the same certificate for the same domain. The domain usually just cnames to the prod data center.
For desktop web browser testing, people override /etc/hosts or use browser extensions to point to the gamma datacenters IPs for the domain.
I want to alter the DNS resolution of the webview in our android app so that my gamma data center is used (based on an application setting).
So basically I want something like shouldOverrideUrlLoading but instead of overriding the URL, I want to override the DNS Resolution / IPs that are being connected to. I don't want to provide a different URL / domain name because then the cert will not be valid.
It isn't an option to alter the datacenter/cert set up as many other systems already depend on it.