public class InetAddressUtil extends Object
| Constructor and Description |
|---|
InetAddressUtil()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
public static InetAddress getByName(String s) throws UnknownHostException
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.UnknownHostExceptionhttp://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5092063Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.