code: public static InetAddress[] getAllByNameOnNet(String host, int netId) throws UnknownHostException {
          return impl.lookupAllHostAddr(host, netId).clone();
      }
docs: Operates identically to {@code getAllByName} except host resolution is
  performed on the network designated by {@code netId}.
  
  @param host the hostname or literal IP string to be resolved.
  @param netId the network to use for host resolution.
  @return the array of addresses associated with the specified host.
  @throws UnknownHostException if the address lookup fails.
  @hide internal use only