DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5319>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5319

AccessLogValve does not resolve hostname





------- Additional Comments From [EMAIL PROTECTED]  2001-12-12 12:38 -------
As I already noted in this bug, 
   InetAddress.getByName(request.getRemoteAddr()).getHostName()
works correctly in the servlet that is invoked.

therefore the DNS name is being retrieved by Java, but the AccessLogValve AND 
request.getRemoteHost() do not return the correct name.

I created my own access log(within my servlet) for my servlets under 3.2 and 
ported to 4.0. My log, which uses the above InetAddress.getByName(), gives the 
DNS name, but the AccessLogValve log always gives the ip address for the same 
request to my servlet.

I would like to use the AccessLogValve as I am sure it is 100 times more 
efficient than my log and it also logs non-servlet requests.

thanks,
Charlie

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to