Solved

gethostbyAddr

Posted on 2006-06-27
5
564 Views
Last Modified: 2013-11-13
I am using gethostbyaddr API in C++ to resolve DNS name for IP address.

This call takes about 3- 4 secs. Is there any better API that does the job quicker and/ better?
I need to API that would work on Win ME, 98 , XP and 2K

Thanks
0
Comment
Question by:pb_india
5 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 25 total points
ID: 16995552
>This call takes about 3- 4 secs
if the call takes 3-4 seconds, you have a slow DNS resolution, ie a slow DNS Server or Network.
there is no API faster/better than that.
0
 
LVL 37

Assisted Solution

by:Harisha M G
Harisha M G earned 25 total points
ID: 16995565
Hi, That depends on your connection speed. And it is always better to stick on to the default API that comes with the OS

---
Harish
0
 
LVL 2

Expert Comment

by:gran88
ID: 16996408
Depends on your library and OS.  Winsock and windows could be slow, but it doesn't sound like the problem is the client, but the server.  And no, there isn't anything better.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
move one pixel 4 67
Tviruailstringtree sort multi columns on header click 1 62
ASP/VB email question 4 33
What does != "" mean in programming 8 28
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question