"Miao, Franco CAWS:EX" wrote:
>
> do I need to put DNS configuration in my Jsp engine config file? I am using
> Tomcat 4.0. I can do the DNS nslookup in OS level, may need to put DSN
> configuration in Tomcat, so I can do that in engine level.

RTFM:

  <http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/http11.html>

  enableLookups: 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 client. Set to false to skip the DNS
                 lookup and return the IP address in String form instead
(thereby
                 improving performance). By default, DNS lookups are enabled.

The default is "true", but if you're using an existing installation,
someone may have set it to "false".

Hans
--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com
Author of JavaServer Pages (O'Reilly), http://TheJSPBook.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to