getByName

Determines the IP address of a host, given the host's name.

This lightweight port currently supports numeric IPv4/IPv6 literals.

Return

an InetAddress for the supplied literal address.

Parameters

host

the specified host, or null.

Throws

if no IP literal address for the host could be found.