Detect a Host name without 'gethostbyaddr'

Posted on 2005-04-09
Last Modified: 2008-03-03
Hi ,

I was try the 'gethostbyaddr' API but some time the system is unstable because this API is 'synchro' .Can anyone help me to find another way to detect a host name by an IP address ? (I thing that a query to DNS is good way bat i don't have a source code ...)

Thanks !
Question by:Marco_Panza
    LVL 86

    Accepted Solution

    You'll find a couple of examples on how to use DNS servers at

    Author Comment

    Thanks !!

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
    IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
    The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
    The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

    755 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

    21 Experts available now in Live!

    Get 1:1 Help Now