code: public static InetAddress getByNameOnNet(String host, int netId) throws UnknownHostException {
          return impl.lookupAllHostAddr(host, netId)[0];
      }
docs: Operates identically to {@code getByName} except host resolution is
  performed on the network designated by {@code netId}.
  
  @param host
  the hostName to be resolved to an address or {@code null}.
  @param netId the network to use for host resolution.
  @return the {@code InetAddress} instance representing the host.
  @throws UnknownHostException if the address lookup fails.
  @hide internal use only