benfle
benfle

Reputation: 43

Dns.GetHostEntry behind a proxy

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.

Upvotes: 1

Views: 1224

Answers (1)

Andrew Cooper
Andrew Cooper

Reputation: 32576

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.

Upvotes: 2

Related Questions