I would think we'd need to provide a convenience function that uses
the DNS subsystem to do PTR record lookups.

On Mon, Aug 8, 2011 at 10:06 AM, Alan M. Carroll
<a...@network-geographics.com> wrote:
> There is no API to get the client hostname. I recommend doing the 
> gethostbyaddr_r directly as any API would simply be a wrapper around that.
>
> Monday, August 8, 2011, 4:26:40 AM, you wrote:
>
>> Hi,
>
>> Is it possible using the API to obtain the client's host name - i.e. a
>> reverse DNS lookup? If not I guess it is safe to use gethostbyaddr_r to look
>> it up from the client's IP address.
>
>> Thank-you,
>
>> Chris Reynolds.
>
>



-- 
Theo Schlossnagle

http://omniti.com/is/theo-schlossnagle

Reply via email to