Reverse DNS Lookups

resolver.pl runs reverse DNS lookups. Using shared queues, this program spins independent, forked processes which die gracefully. There are plenty of scripts on the web that run reverse DNS lookups; however, many are quite slow and inefficient due to interdependencies of forked processes - i.e. forked process 3 must wait for number 2 to finish its job before running a job of its own.

 

Installation

This program uses the IPC::Shareable, GetOpt::Long, Socket, & FileHandle modules. Be sure the modules are installed.

Download the latest tar file and

  1. tar -xvof resolver-[version_number].tar
  2. edit system settings in the resolver.pl file as needed. (The default settings should work.)
  3. run .resolver.pl with the appropriate command line options.

Usage

To see the available command line options:

bash-2.05$ ./resolver.pl --help 

Typical usage:

bash-2.05$ ./resolver.pl -l access.log -c dnscache.che -o dnscachenew.che --verbose

To pipe compressed files:

bash-2.05$ bzcat access.log.bz2|./resolver.pl -l - -c dnscache.che

Take note of the usage of '-' with the -l option (input log file). The dash means that the log file is read from STDIN.

Downloads

Available Releases
Version State Date Downloads
0.6.0 beta April 12, 2004 resolver-0.6.0.tar.gz - 21.6 kB
0.7.0 beta May 5, 2004 resolver-0.7.0.tar.gz - 21.4 kB

 

Updates

  1. The script now takes jobs off the done queue while new jobs are fed to the todo. Running out of shared memory should be less of an issue.
  2. Better file handling.


Andre S. Burton
last update: May 5, 2004