[Bug 65301] the enableLookups configuration is not fully active

2021-05-20 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=65301 Remy Maucherat changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug 65301] the enableLookups configuration is not fully active

2021-05-12 Thread bugzilla
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

[Bug 65301] the enableLookups configuration is not fully active

2021-05-12 Thread bugzilla
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

[Bug 65301] the enableLookups configuration is not fully active

2021-05-12 Thread bugzilla
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

[Bug 65301] the enableLookups configuration is not fully active

2021-05-12 Thread bugzilla
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