code: @Deprecated
    public static String getDefaultHost(String strInterface, String nameserver)
      throws UnknownHostException {
      if (strInterface.equals("default")) 
        return InetAddress.getLocalHost().getCanonicalHostName();
  
      if (nameserver != null && nameserver.equals("default"))
        return getDefaultHost(strInterface);
  
      String[] hosts = getHosts(strInterface, nameserver);
      return hosts[0];
    }
docs: Returns the default (first) host name associated by the provided
  nameserver with the address bound to the specified network interface
  
  @param strInterface
  The name of the network interface to query (e.g. eth0)
  @param nameserver
  The DNS host name
  @return The default host names associated with IPs bound to the network
  interface
  @throws UnknownHostException
  If one is encountered while querying the deault interface