code: @Trivial
      public static boolean validLocalHostName(String hostName) {
          InetAddress addr = findLocalHostAddress(hostName, PREFER_IPV6);
          return addr != null;
      }
docs: Verifies whether or not the provided hostname references
  an interface on this machine. The provided name is unchanged by
  this operation.
  
  @param hostName
  @return true if the hostname refers to a method on this interface
  false if not.