Please help : DNS.Resolve is so slow

  • Thread starter Thread starter User
  • Start date Start date
U

User

Hi,

I am writing a program in VB.NET and it is very slow when it reach this
line :

Dim ipHostInfo As IPHostEntry = Dns.Resolve(strMyForeignIP)

It stay there at least 5 seconds to reach the foreign host, how can it
be fast (instant)? With winsock (in VB6) it is instant connection.

Is there another way to connect to a foreign host?

Thank you.
 
Back
Top