Dns.GetHostEntry fails where Dns.Resolve works

G

gavbray

If I use the deprecated Dns.Resolve then it correctly resolves
157.130.122.174 to hostway-gw.customer.alter.net. I can also confirm
this using the Windows nslookup.exe.

If however I use Dns.GetHostEntry it throws a SocketException saying
"no such host is known".

I'm running on Windows XP SP2 with Visual Studio 2005.

Am I doing something wrong or is there a problem in Dns.GetHostEntry?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top