https://bz.apache.org/bugzilla/show_bug.cgi?id=65301
Remy Maucherat changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://bz.apache.org/bugzilla/show_bug.cgi?id=65301
--- Comment #4 from wangmc ---
thanks,You're right.
when the system is configured with DNS, getLocalName will attempt to search for
"hostname" using the native IP. This will also use the DNS service, which will
occasionally result in a slow qu
https://bz.apache.org/bugzilla/show_bug.cgi?id=65301
--- Comment #3 from Remy Maucherat ---
As it is right now, the enableLookups flags documentation is accurate: "Set to
true if you want calls to request.getRemoteHost() to perform DNS lookups in
order to return the actual host name of the remote
https://bz.apache.org/bugzilla/show_bug.cgi?id=65301
--- Comment #2 from wangmc ---
on my service dns is a must. so I disabled Lookups(default is false) in
"server.xml".but in my code used RemoteIpValve class, the methord getLocalName
does not on the controll of the "enableLookups=false",this met
https://bz.apache.org/bugzilla/show_bug.cgi?id=65301
--- Comment #1 from Remy Maucherat ---
Created attachment 37858
--> https://bz.apache.org/bugzilla/attachment.cgi?id=37858&action=edit
Patch
This can be fixed easily, *but* there's a problem. Most often (= always) DNS
lookup must be disabled