Dns.GetHostEntry fails where Dns.Resolve works

  • Thread starter Thread starter gavbray
  • Start date Start date
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
 
Back
Top