com.bigdata.net
Class InetAddressUtil

java.lang.Object
  extended by com.bigdata.net.InetAddressUtil

Deprecated. this was a red herring.

public class InetAddressUtil
extends Object

Utility methods for working around some known issues.

Version:
$Id: InetAddressUtil.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Constructor Summary
InetAddressUtil()
          Deprecated.  
 
Method Summary
static InetAddress getByName(String s)
          Deprecated. There is a bug with reverse DNS lookup in InetAddress.getByName(String) when presented with a IP address rather than a host name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InetAddressUtil

public InetAddressUtil()
Deprecated. 
Method Detail

getByName

public static InetAddress getByName(String s)
                             throws UnknownHostException
Deprecated. 
There is a bug with reverse DNS lookup in InetAddress.getByName(String) when presented with a IP address rather than a host name. It will always attempt reverse DNS lookup of the IP address. Therefore if reverse DNS is NOT setup correctly, a significant delay (4-5 seconds on Windows) will occur for each lookup and resolution may fail with an UnknownHostException.

Throws:
UnknownHostException
See Also:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5092063
TODO:
this does not handle IPV6


Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.