I've built a domain lookup tool for a client (using a few bits from MrWhois by Marek Rozanski) which all works great except when it comes to the .au domains (.com.au, .id.au,etc etc)

Its fine for the first 20 or so queries then i get blacklisted for 24-48 hours, even though according to ausregistry they dont have any blacklisting set up??

this is the whois call i'm using

				$ns = fsockopen($THESERVER,43); fputs($ns,"$domname\r\n");
$result = '';
while(!feof($ns)) $result .= fgets($ns,128); fclose($ns);

$THESERVER in this case is whois-check.ausregistry.net.au

If anyone could help it would be much appreciated.

cheers,
Hugh

    A lot of whois servers will block multiple requests - they normally list this fact in the terms and conditions which are listed when you log on directly via telnet. This is to stop overuse and you always risk getting blacklisted.

    FYI you can also get WHOIS information using this script if your server has a WHOIS command line client installed - ( whois.arin.net has most servers listed ). You may have to add some extract path details and check some permissions ( depending on the version of the whois client ) but this works 'out of the box' on my server. This won't stop the blacklisting of course.

    	
    $addr = "123.123.123.123";
    $state = "";
    $data = exec("whois -h whois.arin.net \"+ $addr\"",$ret);
    foreach($ret as $line)
    {
    // extract your settings here
    }
    
    
      Write a Reply...