Dns.GetHostEntry代理后面 [英] Dns.GetHostEntry behind a proxy

查看:285
本文介绍了Dns.GetHostEntry代理后面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道如何使用代理后面的Dns.GetHostEntry()解决外部域名?

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

我已经尝试指出我的App.config(< defaultProxy>)中的代理信息,但它不起作用。

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

谢谢。

推荐答案

假设您正在谈论HTTP代理,防火墙不允许DNS流量,那么无法使用DNS协议完成。

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.

您可能可以做的一件事是对 http: //network-tools.com 并解析响应。

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.

这篇关于Dns.GetHostEntry代理后面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆