Kinachi: Der Index konnte nicht an WHOIS-Bediener

Beitrag lesen

Hallo alle zusammen.

Ich habe einen Neuen Script doch irgend wie muss ich das PHP.ini konfigurieren. Kann mir jemand sagen was ich da genau konfigurieren muss das diese anwort nicht mehr kommt: Der Index konnte nicht an WHOIS-Bediener anschließen: whois.crsnic.net

Script: <?

//SERVER DEFINITIONS //uganda TLD $ugserver="wawa.eahd.or.ug";             //whois server $ugnomatch="No entries found";           //string returned if no match is found //com, org, net TLD $intserver="whois.crsnic.net"; $intnomatch="No match for"; //co.uk TLD $ukserver="whois.nic.uk"; $uknomatch="No match"; //ch, li TLD $chserver="whois.ripe.net"; $chnomatch="No match for"; //be, cc, cn, ws, tk, tv, info TLD $server="whois.dopoly.de"; $nomatch="not found"; //de TLD $deserver="whois.ripe.net"; $denomatch="No entries found"; //us TLD $usserver="whois.nic.us"; $usnomatch="Not found:"; //info TLD $infoserver="whois.opensrs.net"; $infonomatch="Not Found"; //biz TLD $bizserver="whois.nic.biz"; $biznomatch="Not found"; //be TLD $beserver="whois.nic.biz"; $benomatch="No such domain"; //END SERVER DEFINITIONS

//THIS SECTION SHOULD BE CUSTOMISED BY YOU TO REFLECT YOUR SITE $template = "whois.html";           //this is the page where the results will be displayed                                     //this page must contain this "<!--DOMAIN RESULTS-->"                                     //where ever you want the results to be displayed

$registerlink = "signup.php";       //this is the page a user is taken to if they want to                                     //register the domain name from you or your affiliate                                     //it should be a script preferably because this script                                     //will pass it the $domain variable using the get method                                     //for example signup.php?domain=topdog-software.com

$restrict = 0;                      //set to 0 if you dont want to restrict access                                     //set to 1 if you want to restrict access remeber to                                     //change $REFERERS below to reflect your site.

$REFERERS = array('blabla.com', 'www.blabla.com');                                     //These are the domains allowed to access the script                                     //if you decide to restrict access

if($restrict ==1){     check_referer(); }     //check the lenth & xters of the domain name     namecheck($domain);     //check domain zone     if(($ext=="co.ug")||($ext=="or.ug")||($ext=="ac.ug")||($ext=="sc.ug")||($ext=="ne.ug")){         //uganda settings         $server=$ugserver;         $nomatch=$ugnomatch;     }     if($ext=="co.uk"){         //uk settings         $server=$ukserver;         $nomatch=$uknomatch;     }     if($ext=="com"||$ext=="org"||$ext=="net"){         //int settings         $server=$intserver;         $nomatch=$intnomatch;     }   if($ext=="ch"||$ext=="li"){         //ch, li settings         $server=$chserver;         $nomatch=$chnomatch;     }  if($ext=="de"){         //ch, li settings         $server=$deserver;         $nomatch=$denomatch;     }  if($ext=="us"){         //us settings         $server=$usserver;         $nomatch=$usnomatch;     }  if($ext=="biz"){         //biz settings         $server=$bizserver;         $nomatch=$biznomatch;     }  if($ext=="info"){         //info settings         $server=$infoserver;         $nomatch=$infonomatch;     }  if($ext=="be"){         //be settings         $server=$beserver;         $nomatch=$benomatch;     }   if(($ext=="cc")||($ext=="tk")||($ext=="cn")||($ext=="tv")||($ext=="ws")){         //cc, cn, ws, tk, tv settings         $server=$server;         $nomatch=$nomatch;  }     if($option=="check"){         $layout = check_domain($domain,$ext);         print_results($layout);     }     if($option=="whois"){         whois($domain,$ext);     } //end main script area---->

//<------------------------------------functions--------------------------------> function check_domain($domain,$ext) {     global $nomatch,$server;     $output="";     if(($sc = fsockopen($server,43))==false){echo"Der Index konnte nicht an WHOIS-Bediener anschließen:  $server";exit;}     fputs($sc,"$domain.$ext\n");     while(!feof($sc)){$output.=fgets($sc,128);}     fclose($sc);     //compare what has been returned by the server     if (eregi($nomatch,$output)){         return 0;     }else{         return 1;     } }

function whois($domain,$ext) {   global $template,$server;     if(($sc = fsockopen($server,43))==false){         if(($sc = fsockopen($server,43))==false){             echo"Es gibt eine temporäre Service-Unterbrechung bitte versuchen wieder später";             exit;         }     }     if($ext=="com"||$ext=="net"||$ext=="org"){         //         fputs($sc, "$domain.$ext\n");         while(!feof($sc)){             $temp = fgets($sc,128);             if(ereg("Whois Server:", $temp)) {                 $server = str_replace("Whois Server: ", "", $temp);                 $server = trim($server);             }         }         fclose($sc);         if(($sc = fsockopen($server,43))==false){             echo"Es gibt eine temporäre Service-Unterbrechung bitte versuchen wieder später";             exit;         }     }

$output="";     fputs($sc,"$domain.$ext\n");     while(!feof($sc)){$output.=fgets($sc,128);}     fclose($sc);     //print     if(!is_file($template)){         print"The template file into which to print the results either does not exist         or is not writable<br>         please correct this if you are the webmaster of this site<br>         The script can not continue exiting......";         exit;     }     $template = file ($template);     $numtlines = count ($template);     $line = 0;     while (! stristr ($template[$line], "<!--DOMAIN RESULTS-->") && $line < $numtlines) {  echo $template[$line];  $line++;     }     $line++;     print  "<b>Domain-WHOIS-Frageninformationen für "$domain.$ext"</b>";     print   "<hr>";     $output= explode("\n",$output);     foreach ($output as $value){             print "$value<br>\n";     }     print "<br>";     while ($line < $numtlines) {  echo $template[$line];  $line++;    }

} //function to check referer function check_referer () {  global $REFERERS, $HTTP_REFERER;  if ($HTTP_REFERER != "")   while (list($val, $ref) = each($REFERERS))   if (preg_match("/^http://$ref/", $HTTP_REFERER))   return;  print("Access denied to: $HTTP_REFERER<br>Please dont link to this script <a href="scripts.php">download</a> a copy         and set it up on your site.<br> This is due to bandwidth usage ... leeching and Data mining");         exit; } //Function to print the results into your template function print_results($layout) {     global $template,$registerlink,$domain,$ext;     if(!is_file($template)){         print"The template file into which to print the results either does not exist or is         not writeable<br>         please correct this if you are the webmaster of this site<br>         The script can not continue exiting......";         exit;     }     $template = file ($template);     $numtlines = count ($template); //Number of lines in the template     $line = 0;     while (! stristr ($template[$line], "<!--DOMAIN RESULTS-->") && $line < $numtlines) {  echo $template[$line];  $line++;     }     if($layout==0){         $line++;         print  "<b>Domain Resultate von "$domain.$ext"</b>";         print   "<hr>";         print   "Der Domain ist noch Frei! ";         print   "<a href="$registerlink?domain=$domain.$ext">Registrieren</a> Sie ihn jetzt bei uns";     }     if($layout==1){         $line++;         print  "<b>Domain Resultate von "$domain.$ext"</b><br>";         print   "<hr>";         print   "Der Domain ist nicht mehr Frei! ";         print   "<a href="$PHP_SELF?domain=$domain&ext=$ext&option=whois">Whois</a> informationen<br>";         print   "Testen Sie ein anderen Domain <a href="javascript:history.back()">here</a>";     }

print "<br><br>";     while ($line < $numtlines) {  echo $template[$line];  $line++;    } } //This checks the name for invaild characters function namecheck($domain) {     if($domain==""){echo"Sie müssen ein Domain eintragen<br>\n";     echo"Click <a href="javascript:history.back()">here</a> to go back"; exit;}     if(strlen($domain)< 3){echo"Der Domain Name $domain ist zu kurz"; exit;}     if(strlen($domain)>57){echo"Der Domain Name $domain ist zu Lang"; exit;}     if(@ereg("^-|-$",$domain)){echo"Die Domains können nicht anfangen oder Enden mit diesen Zeichen"; exit;}     if(!ereg("([a-z]|[A-Z]|[0-9]|-){".strlen($domain)."}",$domain))     {echo"Domains können nicht Sonderzeichen enthalten"; exit;}

} //<--------------------------------end functions------------------------------------> ?>

gruss

Kinachi