Re: excessive DNS slows httpd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, Aug 04, 2009 at 12:33:38AM +0000, Mike -- EMAIL IGNORED wrote:
> On Mon, 03 Aug 2009 20:11:09 -0400, Brian Mathis wrote:
> 
> > What did you revise in your httpd.conf file?  My guess is that you
> > enabled DNS lookups for the connecting clients.
> > 
> 
> HostnameLookups Off

Precisely.  This tells apache to do DNS lookups or not.  By setting this
"off" your log files will contain only IP addresses, and any CGI program
called will only see IP addresses.  If you set this on then apache will
_for every request_ do a DNS lookup  (maybe nscd will have cached it) and
log the name.

Reverse DNS can be slow.  It's strongly recommended that web servers leave
this option off.

-- 

rgds
Stephen
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux