Re: RevDNS Resolver (?)

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

"Egon" <no-mail@spammers.com> wrote in message
news:862007EDDA76E240no-mail@spammers.com...

> 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.

Gambit

Replies

None

In response to

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