betabug... Sascha Welter

home english | home deutsch | Site Map | Sascha | Kontakt | Pro | Weblog | Wiki

13 March 2009

apache and reverse DNS hostname lookups

No, no, no, it ain't me babe!

Doing reverse DNS hostname lookups on every request in apache (to have those domain names in the log file) is a bad idea as it will slow your server down, everybody seems to agree on that. Yesterday I noticed one of our servers doing just that, despite me not having remembered turning that feature on. Took me a bit of searching and cursing to find the culprit.

There are a few reasons why Apache (or Apache 2) will start looking up hostnames:

... and now please don't ask me why Apple (or is it Apache 2 at fault?) has the LogFormat with %h in their config on Mac OS X 10.5.


Posted by betabug at 10:42 | Comments (2) | Trackbacks (0)
ch athens
Life in Athens (Greece) for a foreigner from the other side of the mountains. And with an interest in digital life and the feeling of change in a big city. Multilingual English - German - Greek.
Main blog page
Recent Entries
Best of
Some of the most sought after posts, judging from access logs and search engine queries.

Apple & Macintosh:
Security & Privacy:
Misc technical:
Athens for tourists and visitors:
Life in general:
<< Café Abyssinia | Main | Shell fun: limit bandwidth on scp >>
Comments
Re: apache and reverse DNS hostname lookups

Not always a bad idea: on development machines, it is useful to be able to see which of my testers is doing which requests.

Posted by: Matthew Schinckel at February 15,2010 04:29
Re: apache and reverse DNS hostname lookups

Matthew, such an obscure and rare use as yours case is hardly a good reason to ship apache with a default setting that slows things down this much. Which doesn't mean that your use case is not valid for you, it's just nowhere near what everybody needs.

Posted by: betabug at February 16,2010 11:10
Trackbacks
You can trackback to: http://betabug.ch/blogs/ch-athens/933/tbping
There are no trackbacks.
Leave a comment