Solved

gethostbyAddr

Posted on 2006-06-27
5
558 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
A short article about problems I had with the new location API and permissions in Marshmallow
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now