I need to call a Response.Redirect method from C# but I need to do it in such a way that it ignores the Hosts file on windows for this call?
For example, if on Hosts I have:
127.0.0.1 google.com
and I call a Response.Redirect("google.com"), I need it to ignore the hosts just for this one call and actually go to google.com rather than localhost. How could I do this?
I know I could call a Response.Redirect on google's IP address but is there a better way?