org.archive.util
Class DNSJavaUtil

java.lang.Object
  extended by org.archive.util.DNSJavaUtil

public class DNSJavaUtil
extends java.lang.Object

Utility methods based on DNSJava. Use these utilities to avoid having to use the native InetAddress lookup.

Version:
$Date: 2007-01-06 05:17:35 +0000 (Sat, 06 Jan 2007) $, $Revision: 4837 $
Author:
stack

Method Summary
static java.net.InetAddress getHostAddress(java.lang.String host)
          Return an InetAddress for passed host.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getHostAddress

public static java.net.InetAddress getHostAddress(java.lang.String host)
Return an InetAddress for passed host. If passed host is an IPv4 address, we'll not do a DNSJava lookup.

Parameters:
host - Host to lookup in dnsjava.
Returns:
A host address or null if not found.


Copyright © 2003-2011 Internet Archive. All Rights Reserved.