i am connecting to tld specific whois databases for whois information. Some just return:
Domain: domain.de
Status: connect
.com works fine for example How can i still get the full whois information?
my code:
$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);