public String ping() {
		if (domain == null || domain.isEmpty())
			return "Input domain is not correct";

		StringBuffer buf = new StringBuffer();
		String s = "";
		Process process = null;
		try {
			process = Runtime.getRuntime().exec("cmd /c " + "ping " + domain);
			BufferedReader br = new BufferedReader(new InputStreamReader(process.getInputStream()));
			while ((s = br.readLine()) != null) {
				buf.append(s + "\r\n");
			}

			process.waitFor();

			logger.info(buf.toString());
		} catch (Exception ex) {
			ex.printStackTrace();
		} finally {
			if (process != null)
				process.destroy();
		}
		return buf.toString();
	}