Forum Moderators: coopster
but what are you trying to do exactly? if a user was visiting your website and you used this function to retrive his host name it's likely that all you get is the ISP host name so what good might this do to you!
As ALKateb mentioned the gethostbyaddr function will lag if a hostname is not available so it's not the best choice. On a *nix system I've found that a system call to `host` is the way to go, on Windows you would call `nslookup`