public static InetAddress getByName ( String name ) throws UnknownHostException { try { return getByAddress ( name ) ; } catch ( UnknownHostException e ) { Record [ ] records = lookupHostName ( name ) ; return addrFromRecord ( name , records [ 0 ] ) ; } }
Determines the IP address of a host