JDRESOLVE(1)

πŸ“¦
version 0.6.1 Β· 2 versions
  • 0.6.1 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 0.6.1 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ JDRESOLVE(1) ✨

okay bestie, welcome to the JDRESOLVE(1) page, straight outta the User Contributed Perl Documentation section πŸ’… this is the whole vibe, no skips, no cuts.


NAME πŸŽ€

jdresolve β€” resolves IP addresses into hostnames. that's it, that's the girl πŸ’–


SYNOPSIS ✨

short-flag mode:

jdresolve [-h] [-v] [-n] [-r] [-a] [-d <level>] [-m <mask>] [-l <line cache>] [-t <timeout>] [-p] [-s <number of sockets>] [--database=<db path>] <LOG FILE>

long-flag mode (same energy, more letters):

jdresolve [--help] [--version] [--nostats] [--recursive] [--anywhere] [--debug=<level>] [--mask=<mask>] [--linecache=<line cache>] [--timeout=<timeout>] [--sockets=<number of sockets>] [--database=<db path>] [--dbfirst] [--dbonly] [--dumpdb] [--mergedb] [--expiredb=<hours>] [--unresolved] [--progress] <LOG FILE>

DESCRIPTION πŸ¦‹

so jdresolve resolves IP addresses to hostnames. literally any file format is supported, even the messy ones where the line does not start with the IP address β€” she's not picky, she's versatile πŸ’β€β™€οΈ

one of the strongest features of the program is support for recursion, which can drastically reduce the number of unresolved hosts by faking a hostname based on the network that the IP belongs to. iconic behavior honestly.

DNS queries are sent in parallel, which means you can decrease run time by increasing the number of simultaneous sockets used β€” given a fast enough machine and available bandwidth, of course, we're not magicians 🧚

and by using the database support, performance can be increased even further, by using cached data from previous runs. it's giving "she remembers everything" πŸ’…


OPTIONS πŸ‘‘

  • -h, --help β€” produces a short help message 🫢
  • -v, --version β€” display version information ⭐
  • -n, --nostats β€” don't display stats after processing πŸ™ˆ
  • -r, --recursive β€” recurse into C, B and A classes when there is no PTR (default is no recursion) πŸ”
  • -d, --debug=<debug-level> β€” debug mode: no file output, just statistics during the run (verbosity level range: 1-3) πŸ›
  • -t, --timeout=<seconds> β€” timeout in seconds for each host resolution (default is 30 seconds) ⏰
  • -l, --linecache=<lines> β€” numbers of lines to cache in memory (default is 10000) 🧠
  • -s, --sockets=<sockets> β€” maximum number of concurrent sockets. use ulimit -a to check the max allowed for your operating system β€” defaults to 64 πŸ”Œ
  • -m, --mask=<mask> β€” <mask> accepts %i for IP and %c for class owner, e.g. "somewhere.in.%c" or "%i.in.%c" (default is "%i.%c") 🎭
  • -a, --anywhere β€” resolves IPs found anywhere on a line (will resolve all IPs if there is more than one) πŸ”
  • -p, --progress β€” prints a nice progress bar indicating the status of the resolve operations πŸ“Š
  • --database=<db path> β€” path to database that holds resolved hosts/classes πŸ’Ύ
  • --dbfirst β€” check if we have resolved entries in the database before sending out DNS queries πŸ₯‡
  • --dbonly β€” don't send DNS queries, use only resolved data in the database 🚫
  • --dumpdb β€” dumps a database to STDOUT πŸ“€
  • --mergedb β€” merges resolved IP/classes from a file (or STDIN) with a database 🧬
  • --expiredb=<hours> β€” expires entries in the database that are older than <hours> hours πŸ—‘οΈ
  • --unresolved β€” won't attempt to resolve IPs, only lists those that were not resolved πŸ“
  • <LOG FILE> β€” the log filename, or - for STDIN 🌊

EXAMPLES 🌈

jdresolve access_log > resolved_log
jdresolve -r -s 128 access_log > resolved_log
jdresolve -r --database hosts.db access_log > res_log

SEE ALSO 🫢

rhost(1) β€” go say hi bestie


AUTHOR πŸ’œ

jdresolve was written by John D. Rowell <me@jdrowell.com>, and is licensed under the terms of the GNU General Public License.

The original version of this man page was written by Craig Sanders <cas@taz.net.au>, for the Debian GNU/Linux package of jdresolve, and is also licensed under the terms of the GNU GPL.


fr fr, that's the whole page β€” every flag, every default, every path, all of it. no cap. πŸ’€

and that's a wrap babes ✨ this one came to you from the 3rd Berkeley Distribution, running perl 5.005, patch 03, filed under JDRESOLVE(1) β€” go resolve something gorgeous πŸ‘‘πŸ’–

πŸ“¦ where this page comes from