How can I translate IP to hostname in C

Bjoern A. Zeeb bzeeb-lists at lists.zabbadoz.net
Thu May 22 16:35:00 UTC 2008


On Thu, 22 May 2008, John Timony wrote:

Hi,

> I am writing a c program in FreeBSD,and I can not
> translate a ip to hostname
> ,i wonder if there is a function to take this job...

You mean like gethostbyaddr()?

See also http://www.unixguide.net/network/socketfaq/2.24.shtml for
further inspiration on this but slightly different topic.

-- 
Bjoern A. Zeeb              Stop bit received. Insert coin for new game.


More information about the freebsd-hackers mailing list