Apache disable DNS lookups

Posted by odeceixe on Server Fault See other posts from Server Fault or by odeceixe
Published on 2010-07-22T14:41:21Z Indexed on 2014/06/01 3:29 UTC
Read the original article Hit count: 515

Filed under:
|

I'm using Debian 4.3.2-1 and Apache 2 on my production server. Watching the logs, I noticed Apache is resolving client's hostnames even with HostnameLookups Off in apache2.conf. I want to avoid these lookups so I'm guessing Apache is making this DNS query because I have mod_authz_host enabled. When I try to unlink this module, I get several modules complaining because they use the Order directive.

How is the clean way to go? Should I comment all Order directives like

Order allow,deny
Deny from all

Is this the only way to stop Apache from making DNS requests? I would like to deny access to .htaccess files and some rules like that.

© Server Fault or respective owner

Related posts about dns

Related posts about apache-2.2