Re: RevDNS Resolver (?)

Giganews Newsgroups
Subject: Re: RevDNS Resolver (?)
Posted by:  Remy Lebeau (TeamB) (gambit…
Date: Sun, 13 Jul 2003

"Egon" <> wrote in message

> Is there any way to get client's IP resolved to
> it's name ?

Simply use the gethostbyaddr() function.  The returned hostent structure
contains the name, amongst other values.

> I tried to use TIdDNSResolver, but it resolve only from
> known name to equivalent IP address (or am I wrong ?).

TIdDNSResolver is not for resolving IP to host, it is for resolving host to
IP instead.




In response to

RevDNS Resolver (?) posted by Egon on Sat, 12 Jul 2003