question: private static InetAddress toIpAddress ( String hostName ) { try { if ( InetAddressValidator . isValid ( hostName ) ) { return InetAddress . getByName ( hostName ) ; } } catch ( UnknownHostException e ) { } return null ; }
target:  Convert to an IP address without performing a DNS lookup.