LOGRESOLVE(1)
β¨ LOGRESOLVE π
okay so bestie, welcome to logresolve β the little Apache HTTP Server tool that takes your access log's IP addresses and turns them into hostnames. it's giving β¨ DNS glow-up β¨
πΈ SYNOPSIS πΈ
logresolve [ -s filename ] [ -c ] < access_log > access_log.new
π¦ SUMMARY π¦
logresolve is a post-processing program β like, it doesn't run live, it goes after the fact β and its whole job is resolving the IP-addresses inside Apache's access logfiles. π«Ά
and the way it protects your nameserver from getting absolutely bodied by a million lookups? it has its very own internal hash-table cache. no cap. that means each IP number gets looked up only the first time it shows up in the log file. after that, it's remembered. queen behavior. π
it takes an Apache log file on standard input. and heads up, this part matters:
- the IP addresses must be the first thing on each line
- and they must be separated from the rest of the line by a space
that's it, that's the whole contract. no space, no service. π
π OPTIONS π
-sfilename β specifies a filename to record statistics. so if you wanna know what went down during the resolve, this is where you send the receipts. π-cβ this causeslogresolveto apply some DNS checks. like, after finding the hostname from the IP address, it looks up the IP addresses for that hostname and checks that one of these matches the original address. it's the double-check, the vibe check, the "wait, are you sure that's you?" π§β¨
lowkey important: that -c check is an extra round of lookups, so it's doing more work on purpose. it's not a bug, it's a feature, bestie. π
and that's the whole page, periodt. this one came from the Apache HTTP Server, dated 2026-04-30. mwah, go resolve some hostnames. ππ
π¦ where this page comes from
- alpine 3.22: apache2-doc 2.4.69-r0 Β· Apache-2.0
- alpine 3.23: apache2-doc 2.4.69-r0 Β· Apache-2.0
- alpine 3.24: apache2-doc 2.4.69-r0 Β· Apache-2.0
- arch rolling: apache 2.4.69-1 Β· Apache-2.0
- debian bookworm: apache2-utils 2.4.68-1~deb12u1 Β· Apache-2.0
- debian trixie: apache2-utils 2.4.68-1~deb13u1 Β· Apache-2.0
- debian trixie: apache2-utils 2.4.69-1~deb13u1 Β· Apache-2.0
- fedora 43: httpd-tools 2.4.68-1.fc43
- fedora 43: httpd-tools 2.4.69-1.fc43 Β· Apache-2.0 AND (BSD-3-Clause AND metamail AND HPND-sell-variant AND Spencer-94)
- fedora 44: httpd-tools 2.4.69-1.fc44 Β· Apache-2.0 AND (BSD-3-Clause AND metamail AND HPND-sell-variant AND Spencer-94)
- nixpkgs unstable: apache-httpd 2.4.69
- ubuntu stonking: apache2-utils 2.4.68-1ubuntu4 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms