public String getWhois(final String domainName) {
		StringBuilder result = new StringBuilder("");

		try {
			WhoisClient whois = new WhoisClient();
			whois.connect(WhoisClient.DEFAULT_HOST);

			// whois =google.com
			String whoisData = whois.query("=" + domainName);
			result.append(whoisData);
			whois.disconnect();

			// get the google.com whois server - whois.markmonitor.com
			String whoisServerUrl = getWhoisServer(whoisData);
			if (!whoisServerUrl.equals("")) {

				// whois -h whois.markmonitor.com google.com
				result.append("\n").append(queryWithWhoisServer(domainName, whoisServerUrl));
			}
		} catch (SocketException e) {
		} catch (IOException e) {
		}

		return result.toString();

	}