Solved

gethostbyAddr

Posted on 2006-06-27
5
578 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 143

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

696 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