Detect a Host name without 'gethostbyaddr'

Posted on 2005-04-09
Medium Priority
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

jkr earned 2000 total points
ID: 13745738
You'll find a couple of examples on how to use DNS servers at http://www.codeproject.com/internet/#DNS

Author Comment

ID: 13747439
Thanks !!

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

627 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