Im hoping someone can help
Ive written a script that should work but doesnt. Taking a whois lookup on port 43 and changed to 1043 and included host & IP. Using port 43 works fine so cant see what ive missed.
Ive got the email which accept I now have access to WHOIS2 from the IP address 65.99.[remove].233.85. The domain is on a VPS so have given the domain its own IP address but the script still times out.
Please help.
Ive written a script that should work but doesnt. Taking a whois lookup on port 43 and changed to 1043 and included host & IP. Using port 43 works fine so cant see what ive missed.
Code:
<?php
$fp = fsockopen('whois.nic.uk', 1043, $errno, $errstr);
if (!$fp) {
echo "ERROR: $errno - $errstr<br />\n";
} else {
fwrite($fp, "myhome.hostname myhome.ip.address yahoo.co.uk\r\n");
while (!feof($fp)) {
echo str_replace("\n", '<br />', fread($fp, 100));
}
fclose($fp);
}
?>
Ive got the email which accept I now have access to WHOIS2 from the IP address 65.99.[remove].233.85. The domain is on a VPS so have given the domain its own IP address but the script still times out.
Code:
Warning: fsockopen() [function.fsockopen]: unable to connect to whois.nic.uk:1043 in /home/daily/public_html/who.php on line 3
ERROR: 110 - Connection timed out
Please help.
Last edited: