VB6 winsock - dns problem
VB6 winsock - dns problem
VB6 winsock - dns problem
VB6 winsock - dns problem
VB6 winsock - dns problem
VB6 winsock - dns problem VB6 winsock - dns problem VB6 winsock - dns problem VB6 winsock - dns problem VB6 winsock - dns problem VB6 winsock - dns problem VB6 winsock - dns problem VB6 winsock - dns problem
VB6 winsock - dns problem VB6 winsock - dns problem
VB6 winsock - dns problem
Go Back  Xtreme Visual Basic Talk > > > VB6 winsock - dns problem


Reply
 
Thread Tools Display Modes
  #1  
Old 05-30-2010, 01:37 PM
sonicdemonic sonicdemonic is offline
Junior Contributor
 
Join Date: Feb 2004
Location: Indiana
Posts: 261
Question VB6 winsock - dns problem


OK, I am writing a small app that has a server/client. Everything works fine for a bit then it wont connect. I have it narrowed down the problem to the dns address i am using. If i enter the IP address it works fast and fine everytime. I dont see how to trouble shoot the winsock any further. It appears that the winsock resolves the DNS prior to actually calling connect on the winsock object.
Any ideas?
Reply With Quote
  #2  
Old 05-30-2010, 01:48 PM
sonicdemonic sonicdemonic is offline
Junior Contributor
 
Join Date: Feb 2004
Location: Indiana
Posts: 261
Default

I just found this
http://www.coseco.com/WebVB/winsock_api.htm

I think I can merge that with my project. But if anyone has an answer as to why winsock doesnt seem to always resolve dns's efficiently, please respond.
Thx
Reply With Quote
  #3  
Old 05-30-2010, 04:59 PM
dilettante's Avatar
dilettanteVB6 winsock - dns problem dilettante is offline
Underclocked lifestyle

Forum Leader
* Guru *
 
Join Date: Feb 2005
Location: Michigan, USA
Posts: 4,520
Default

The Winsock control performs its name lookups via the Winsock DLL. So does almost everything else, such as your browser.

So I doubt the issue here is name lookups as done via Winsock. The problem is probably somewhere else related to your network configuration and your DNS provider.

DNS isn't magic. It involves a number of servers and a query you issue to them, and the results are not instantaneous.
Reply With Quote
  #4  
Old 06-03-2010, 05:52 PM
sonicdemonic sonicdemonic is offline
Junior Contributor
 
Join Date: Feb 2004
Location: Indiana
Posts: 261
Default

I agree with what you are saying but the program never connects to the other end 'sometimes' when I use a dns for the address. I have done all the testing I can think of through the VB6 program. Now I used that code i found at the link I posted and it pulls the IP everytime, actually it pulls are the secondary ips listed for the domain. I have it randomly picking from that list of ips.
I dont think DNS is magic but it should work like it does for everything else. My program is designed that if disconnected it automatically tries to reconnect. That is where it fails, when it fails. or if i disconnect and reconnect, about 20% of the time it wouldnt connect and just sit there like it was still waiting for the dns to resolve.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
VB6 winsock - dns problem
VB6 winsock - dns problem
VB6 winsock - dns problem VB6 winsock - dns problem
VB6 winsock - dns problem
VB6 winsock - dns problem
VB6 winsock - dns problem VB6 winsock - dns problem VB6 winsock - dns problem VB6 winsock - dns problem VB6 winsock - dns problem VB6 winsock - dns problem VB6 winsock - dns problem
VB6 winsock - dns problem
VB6 winsock - dns problem
 
VB6 winsock - dns problem
VB6 winsock - dns problem
 
-->