public static String whois(String domain) throws IOException, XPathExpressionException,
            ParserConfigurationException {
        String whois = evaluate(ValueConsts.WHOIS_DOMAIN_XPATH, getHtmlFromUrl("http://whois.chinaz.com/" + domain));
        return whois.replaceAll("\\[whois\\s?反查]", ValueConsts.EMPTY_STRING).replaceAll("\\s{2,}", "\r\n");
    }
public static String whois ( String domain ) throws IOException , XPathExpressionException , ParserConfigurationException { String whois = evaluate ( ValueConsts . WHOIS_DOMAIN_XPATH , getHtmlFromUrl ( "http://whois.chinaz.com/" + domain ) ) ; return whois . replaceAll ( "\\[whois\\s?反查]" , ValueConsts . EMPTY_STRING ) . replaceAll ( "\\s{2,}" , "\r\n" ) ; }
whois查询

@param domain 域名

@return whois信息

@throws IOException 异常
@throws XPathExpressionException 异常
@throws ParserConfigurationException 异常