IP2HOST(1)

πŸ“¦
version 1.13 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

✨ IP2HOST ✨

ok so bestie, welcome to ip2host β€” she lives in the User Contributed Perl Documentation section of your man pages, and her whole entire job is resolving IPs to hostnames in web server logs. that's it. that's the girl. πŸ’–


🌸 NAME 🌸

ip2host β€” resolves IPs to hostnames in web server logs πŸ¦‹


πŸ’… SYNOPSIS πŸ’…

ip2host [OPTIONS] [cache_file] < infile > outfile

so here's the tea on those two little file placeholders:

  • infile β€” your web server log file. the raw one. the one full of numbers. πŸ™ˆ
  • outfile β€” literally the same as the input file, except the IPs got resolved into hostnames. glow up. ✨

and here are the options, all of them, no skips, no cap:

  • --children=... β€” how many child processes to spawn (default: 40). a whole little army fr.
  • --timeout=... β€” how many seconds to wait on a DNS response (default: 20).
  • --buffer=... β€” the maximum number of log lines to keep in memory (default: 50000). she's holding a lot in her head, honestly relatable.
  • --flush=... β€” how many lines to process before flushing the output buffer (default: 500).
  • --cache=... β€” filename to use as the disk cache (default: none). no cache, no problem, just slower.
  • --ttl=... β€” number of seconds before IPs cached on disk are expired (default: 604800 β€” that's one week πŸ‘‘).
  • --ipv6 β€” match IPv6 addresses too πŸ›°οΈ
  • --regex=... β€” a Perl regular expression to match IP πŸ”

πŸŽ€ DESCRIPTION πŸŽ€

okay so this is a faster, drop-in replacement for the logresolve utility that ships with the Apache web server. same energy, way more speed. πŸ’…

and she's been reported to work under Linux, FreeBSD, Solaris, Tru64, and IRIX. world traveler. 🌈


🫢 AUTHOR 🫢

Maurice Aubrey <maurice.aubrey+ip2host@gmail.com>

Based on the logresolve.pl script by Rob Hartill.


Copyright 1999-2012, Maurice Aubrey <maurice.aubrey+ip2host@gmail.com>.

This module is free software; you may redistribute it and/or modify it under the same terms as Perl itself.


πŸ“ README πŸ“

Resolves IPs to hostnames in web server logs. This is a faster, drop-in replacement for the logresolve utility distributed with the Apache web server.


🧚 SCRIPT CATEGORIES 🧚

Web


and that's the whole page bestie!! 🌟 this one's running on perl v5.32.0, dated 2021-01-02, and that's the IP2HOST(1) footer energy β€” go resolve some logs, you absolute icon πŸ’–πŸ¦‹βœ¨

πŸ“¦ where this page comes from