HostnameLookups Off - No, I really mean it

This is a discussion on HostnameLookups Off - No, I really mean it within the Apache Web Server forums, part of the Web Server and Related Forums category; x-no-archive: yes I am running Apache 2.0.47 on Windows XP. Apache is running as a service. ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-17-2003
djs
 
Posts: n/a
Default HostnameLookups Off - No, I really mean it

x-no-archive: yes

I am running Apache 2.0.47 on Windows XP. Apache is running as a
service.

One relatively minor problem: Although I have "HostnameLookups Off"
specified in my httpd.conf file, everything in the access.log is still
being resolved to a host name; just as if I had "HostnameLookups On"
specified instead. Here is a reference for the "HostnameLookups"
command:

http://httpd.apache.org/docs-2.0/mod...ostnamelookups

I have of course restarted the service; it's not that the configuration
change hasn't taken effect. I am not pathing to a different httpd.conf
file. And I don't have duplicate "HostnameLookups" entries in
httpd.conf, or any other obvious goof that I can find. Accesses are
being logged just fine, and I am not mistakenly looking at old entries,
when "HostnameLookups On" was enabled. I've tried deleting access.log.
Nothing has worked.

This seems bizarre, and it has me stumped. Any ideas are welcome.


  #2 (permalink)  
Old 08-17-2003
djs
 
Posts: n/a
Default Re: HostnameLookups Off - No, I really mean it

djs <djs@fakeisp.com> wrote:

> x-no-archive: yes
>
> I am running Apache 2.0.47 on Windows XP. Apache is running as a
> service.
>
> One relatively minor problem: Although I have "HostnameLookups Off"
> specified in my httpd.conf file, everything in the access.log is still
> being resolved to a host name; just as if I had "HostnameLookups On"
> specified instead. Here is a reference for the "HostnameLookups"
> command:
>
> http://httpd.apache.org/docs-2.0/mod...ostnamelookups
>
> I have of course restarted the service; it's not that the
> configuration change hasn't taken effect. I am not pathing to a
> different httpd.conf file. And I don't have duplicate
> "HostnameLookups" entries in httpd.conf, or any other obvious goof
> that I can find. Accesses are being logged just fine, and I am not
> mistakenly looking at old entries, when "HostnameLookups On" was
> enabled. I've tried deleting access.log. Nothing has worked.
>
> This seems bizarre, and it has me stumped. Any ideas are welcome.


Hah--well, as usual, the very act of posting this on Usenet increased my
IQ by 50 points.

The "problem" (more like "consternation") was caused by the fact that I
was using "Deny from" host name entries (like "Deny from .ad", etc.).
This behavior is even mentioned in the docs:

http://httpd.apache.org/docs-2.0/mod...ostnamelookups

"Regardless of the setting, when mod_access is used for controlling
access by hostname, a double reverse lookup will be performed. This is
necessary for security."

It's all so obvious now...


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:42 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0