Http Request - Bypass DNS [.Net]

后端 未结 4 1829
生来不讨喜
生来不讨喜 2020-12-31 18:42

Is it possible (and if yes, how) to bypass DNS when doing a HTTP request ?

I want to hit directly a front-end with an HTTP request, without getting through NLB but w

4条回答
  •  生来不讨喜
    2020-12-31 19:15

    I manage to do what I need setting the proxy to the IP address of the remote server :

    request.Proxy = new WebProxy(ip.ToString());
    

    It doesn't work in all scenarios, but it did in my case.

提交回复
热议问题