开发者

Dns.GetHostEntry behind a proxy

开发者 https://www.devze.com 2023-01-20 01:46 出处:网络
does anyone know how to resolve an external domain name with Dns.GetHostEntry() behind a proxy? I already tried to indicate the proxy information in my开发者_JAVA百科 App.config (< defaultProxy >)

does anyone know how to resolve an external domain name with Dns.GetHostEntry() behind a proxy?

I already tried to indicate the proxy information in my开发者_JAVA百科 App.config (< defaultProxy >) but it doesn't work.

Thanks.


Assuming you're talking about an HTTP proxy and the firewall doesn't allow DNS traffic through then it can't be done using the DNS protocol.

One thing you might be able to do is to use an HTTP request against a service like http://network-tools.com and parse the response.

0

精彩评论

暂无评论...
验证码 换一张
取 消