M
Mike Mann
- Jan 1, 1970
- 0
Exactly my point.
I don't understand your point.
The *hostname* is typically recorded - and not
necessarily the user's actual IP address. Only if when the hostname can't
be resolved (eg. are an ISP) will a discrete IP address be recorded.
With respect, you misunderstand TCP/IP. The IP address of the client
is directly visible to the Web server and the translation, if it's
done, is the other way round: from IP address to fully qualified
domain name, in order to make the logs more readable.
You can't get the IP address of the user's box from the hostname or find out
anything about them reallly - you only get the IP of the host that they are
connected into and would need to check their host logs for more detail.
IIRC, this is done so that, if the same user was to visit the site multiple
times using a DHCP-allocated IP, your logs would show multiple hits from the
same *hostname* (eg. AOL) and not multiple hits from multiple IPs owned by
the same domain..
This makes no sense to me. "AOL" isn't a hostname, DHCP isn't
generally used by ISPs to allocate dynamic IP addresses (it's done
within the PPP negotiation), and the Web server always sees the IP
address of the client or of a proxy if one is being used: the raw
datagram contains the IP address, not a hostname or even the FQDN.
Mike.