Dns.GetHostEntry behind a proxy

蓝咒 提交于 2019-12-13 02:28:22

问题


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 App.config (< defaultProxy >) but it doesn't work.

Thanks.


回答1:


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.



来源:https://stackoverflow.com/questions/3910641/dns-gethostentry-behind-a-proxy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!