support/logresolve doesn't support IPv6 addresses, which is a pain,
because while logresolve is not a brilliant log resolver, it's useful
for putting at the end of brief command lines, grepping things and so
on.

Anyway;

        http://people.apache.org/~colm/logresolve.c

is an APR version, it's also a lot shorter than the current version.

This version of logresolve is not 100% compatible with the current
one. It has different statistical output. stats look like;

        logresolve Statistics:
        Entries: 66022
            With name   : 0
            Resolves    : 5
            - No reverse : 3
        Cache hits      : 66017
        Cache size      : 5  

Compared to;

        logresolve Statistics:
        Entries: 66022
            With name   : 589
            Resolves    : 65433
            - Not found : 2
        Cache hits      : 65430
        Cache size      : 3
        Cache buckets   :     IP number * hostname
          128        127.0.0.1 - localhost.localdomain
          172      193.1.228.6 : Host not found
          232     193.1.228.66 : Host not found

Bolting on the existing method wouldn't really fly when using APR, it
would eat far too much memory (an average of 22 bytes per line in the
log). 

Apart from that, it's functionally identical, and the changes should be
well within minor-version-bump territory. It does introduce a dependency 
on APR 1.3 though, so no plans to backport it to 2.2.x any time soon.

Unless there are any objections, I'd like to commit this sometime in the
next few days.

-- 
Colm MacCárthaigh                        Public Key: [EMAIL PROTECTED]

Reply via email to