By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,482 Members | 1,002 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,482 IT Pros & Developers. It's quick & easy.

Please help : DNS.Resolve is so slow

P: n/a
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.

Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
I've found that DNS.GetHostByName is much faster (instant) than DNS.Resolve.

User wrote:
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.


Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.