ca.swank.fastreversedns
Class FastReverseDNS

java.lang.Object
  |
  +--ca.swank.fastreversedns.FastReverseDNS
All Implemented Interfaces:
java.lang.Runnable

public class FastReverseDNS
extends java.lang.Object
implements java.lang.Runnable

performs DNS lookups avoiding idle blocking by using multiple threads


Constructor Summary
FastReverseDNS(ReverseDNS dns, IPEnumeration IPList)
          Creates a new instance that will query IP addresses from the specified list on the specified ReverseDNS server.
 
Method Summary
static void main(java.lang.String[] args)
          Displays a set of IP/hostname pairs using reverse DNS on the specified list of hostnames.
 void run()
          While IPs are left in the range, query the reverse server and output the hostname
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FastReverseDNS

public FastReverseDNS(ReverseDNS dns,
                      IPEnumeration IPList)
Creates a new instance that will query IP addresses from the specified list on the specified ReverseDNS server.

Method Detail

run

public void run()
While IPs are left in the range, query the reverse server and output the hostname

Specified by:
run in interface java.lang.Runnable

main

public static void main(java.lang.String[] args)
Displays a set of IP/hostname pairs using reverse DNS on the specified list of hostnames.