PHP查询whois数据库
问题描述:
我正在连接到tld特定whois数据库以查找whois信息。 有的只是返回:PHP查询whois数据库
Domain: domain.de
Status: connect
.COM工作正常,例如 如何我还可以得到充分的whois信息?
我的代码:
$lookup = "";
if(strlen($whois) > 0) {
$fp = fsockopen($whois, 43, $errno, $errstr);
} else {
$fp = fsockopen(trim($server->server), 43, $errno, $errstr);
}
if (!$fp) {
echo "ERROR: $errno - $errstr<br />\n";
}
fwrite($fp, "".$domain."\r\n");
while (!feof($fp)) {
$lookup .= fgets($fp);
}
fclose($fp);
答
.de
工作在whois.denic.de
。默认情况下,在连接到whois.denic.de
43时,他们不公开有关域所有者的隐私信息。条款和条件说:
% The DENIC whois service on port 43 never discloses any information concerning
% the domain holder/administrative contact. Information concerning the domain
% holder/administrative contact can be obtained through use of our web-based
% whois service available at the DENIC website:
% http://www.denic.de/en/domains/whois-service/web-whois.html
你确实知道大多数提供WHOIS数据的人都有积极的对策来阻止你做这件事,对吗? – Machavity 2014-12-04 14:30:02
为什么?它应该是合法的每个人检查免费提供的whois数据 – pila 2014-12-04 14:32:53
什么abous只是解析'whois'命令行工具? – exussum 2014-12-04 14:33:59