Re: Http server remote DNS name

Giganews Newsgroups
Subject: Re: Http server remote DNS name
Posted by:  Remy Lebeau (Indy Team) (no.spam@no.spam.com)
Date: Tue, 21 Nov 2006

"Rasmus Wätjen" <r-remove-this-w@blueposition-also-remove-this.com> wrote in
message
news:7762FD995110E340r-remove-this-w@blueposition-also-remove-this.com...

> The TIdHTTPRequestInfo.RemoteIP supplies the IP address of
> the client connected to the HTTP server. How can I get the DNS
> name for that client?

You have to perform a reverse DNS lookup.

> Is there a built-in way

The WSGetHostByAddr() (Indy 9) or HostByAddress() (Indy 10) method of the
global GStack object.

> should I use the TidDNSResolver?

No.

Gambit

Replies

In response to

Http server remote DNS name posted by Rasmus Wätjen on Tue, 21 Nov 2006