domain=$str_domainname; $this->getServers(); // print_r($this->getServers()); } // function getServers() { //// $this->query("SELECT * FROM ".$this->prefix."whois"); // // $result = mysql_query("SELECT * FROM ".$this->prefix."whois") // or die(mysql_error()); // //// $servers= $this->get_rows(); //// while($row = $servers) { // while($row = mysql_fetch_array ($result)) { // $this->servers[] = array( // 0 => $row['tld'], // 1 => $row['whoisServer'], // 2 => $row['whoisAnswer'], // ); // } // } function getServers() { $this->query("SELECT * FROM ".$this->prefix."whois"); if (!$this->numRows===null) return false; $servers=$this->get_rows(); foreach ($servers as $value) { $this->servers[] = array( 0 => $value['tld'], 1 => $value['whoisServer'], 2 => $value['whoisAnswer'], 9 => $value['umlaut'], ); } } /** * Returns the whois data of the domain * @return string $whoisdata Whois data as string * @desc Returns the whois data of the domain */ function info(){ if($this->is_valid()){ $tldname=$this->get_tld(); $domainname=$this->get_domain(); #$whois_server="whois.denic.de"; $whois_server=$this->get_whois_server(); // If tldname have been found if($whois_server!=""){ // Getting whois information $fp = fsockopen($whois_server,43); $dom=$domainname.".".$tldname; // fputs($fp, "$dom\r\n"); // New IDN if($tldname=="de") { // echo "test"; // exit; fputs($fp, "-C ISO-8859-1 -T dn $dom\r\n"); // print_r(fputs($fp, "-C ISO-8859-1 -T dn $dom\r\n")); } else { fputs($fp, "$dom\r\n"); } // Getting string $string=""; // Checking whois server for .com and .net if($tldname=="com" || $tldname=="net" || $tldname=="edu"){ while(!feof($fp)){ $line=trim(fgets($fp,128)); $string.=$line; $lineArr=explode(":",$line); // print_r($lineArr); if(strtolower($lineArr[0])=="whois server"){ $whois_server=trim($lineArr[1]); } } // Getting whois information $fp = fsockopen($whois_server,43); $dom=$domainname.".".$tldname; fputs($fp, "$dom\r\n"); // Getting string $string=""; while(!feof($fp)){ $string.=fgets($fp,128); } // Checking for other tld's }else{ while(!feof($fp)){ $string.=fgets($fp,128); } } fclose($fp); return $string; }else{ return "No whois server for this tld in list!"; } }else{ return "Domainname isn't valid!"; } } /** * Returns the whois data of the domain in HTML format * @return string $whoisdata Whois data as string in HTML * @desc Returns the whois data of the domain in HTML format */ function html_info(){ return nl2br($this->info()); } /** * Returns name of the whois server of the tld * @return string $server the whois servers hostname * @desc Returns name of the whois server of the tld */ /* function get_whois_server(){ if(isset($this->servers[$this->get_tld()])) { return array( 'whoisServer' => $this->servers[$this->get_tld()]['whoisServer'], 'whoisAnswer' => $this->servers[$this->get_tld()]['whoisAnswer'], ); } return false; } */ function get_whois_server(){ $found=false; $tldname=$this->get_tld(); for($i=0;$iservers);$i++){ if($this->servers[$i][0]==$tldname){ $server=$this->servers[$i][1]; $full_dom=$this->servers[$i][3]; $found=true; } } return $server; } /** * Returns the tld of the domain without domain name * @return string $tldname the tlds name without domain name * @desc Returns the tld of the domain without domain name */ function get_tld(){ // Splitting domainname $domain=explode(".",$this->domain); if(count($domain)>2){ $domainname=$domain[0]; for($i=1;$iservers);$i++){ $tlds[$i]=$this->servers[$i][0]; } return $tlds; } /** * Returns the name of the domain without tld * @return string $domain the domains name without tld name * @desc Returns the name of the domain without tld */ function get_domain(){ // Splitting domainname $domain=explode(".",$this->domain); return $domain[0]; } /** * Returns the full domain * @return string $fulldomain * @desc Returns the full domain */ function get_fulldomain(){ return $this->domain; } /** * Returns the string which will be returned by the whois server of the tld if a domain is avalable * @return string $notfound the string which will be returned by the whois server of the tld if a domain is avalable * @desc Returns the string which will be returned by the whois server of the tld if a domain is avalable */ function get_notfound_string(){ $found=false; $tldname=$this->get_tld(); for($i=0;$iservers);$i++){ if($this->servers[$i][0]==$tldname){ $notfound=$this->servers[$i][2]; } } return $notfound; } /** * Returns if the domain is available for registering * @return boolean $is_available Returns 1 if domain is available and 0 if domain isn't available * @desc Returns if the domain is available for registering */ function is_available(){ $whois_string=$this->info(); // Gets the entire WHOIS query from registrar $not_found_string=$this->get_notfound_string(); // Gets 3rd item from array $domain=$this->domain; // Gets current domain being queried $whois_string2=@preg_replace("/$domain/","",$whois_string); $whois_string =@preg_replace("/\s+/"," ",$whois_string); //Replace whitespace with single space $array=explode(":",$not_found_string); if($array[0]=="MAXCHARS"){ if(strlen($whois_string2)<=$array[1]){ return true; }else{ return false; } }else{ if(preg_match("/".$not_found_string."/i",$whois_string)){ return true; }else{ return false; } } } function get_cn_server($whois_text){ } function getUmlaut(){ $tldend = $this->get_tld(); $this->query("SELECT umlaut FROM ".$this->prefix."whois where tld='$tldend'"); if (!$this->numRows===null) return false; $getUmlaut=$this->get_rows(); foreach ($getUmlaut as $value) { $umlaut = $value['umlaut']; } if($umlaut) return true; else return false; } function correct_encoding($text) { $current_encoding = mb_detect_encoding($text, 'auto'); $text = iconv($current_encoding, 'ISO-8859-1', $text); return $text; } /** * Returns if the domain name is valid * @return boolean $is_valid Returns 1 if domain is valid and 0 if domain isn't valid * @desc Returns if the domain name is valid */ function is_valid(){ $domainArr=explode(".",$this->domain); // print_r($domainArr); // If it's a tld with two Strings (like co.uk) if(count($domainArr)==3){ $tld=$domainArr[1].".".$domainArr[2]; $found=false; for($i=0;$iservers) && $found==false;$i++){ if($this->servers[$i][0]==$tld){ $found=true; } } if(!$found){ return false; } }else if(count($domainArr)>3){ return false; } //Prüfen, ob buchstaben enthalten sind if($this->get_tld()=="name" || $this->get_tld()=="ws"){ // if($this->get_tld()=="de" || $this->get_tld()=="name" || $this->get_tld()=="ws"){ if(!preg_match("/[a-z]+/i",$domainArr[0])) return false; } // print_r($this->get_tld()); // Creating regular expression for idn if($this->get_tld()=="de"){ $this->idn = array(223,224,225,226,227,228,229,230,231,232,233,234,235,240,236,237,238,239,241,242,243,244,245,246,248,254,249,250,251,252,253,255); } if($this->get_tld() == $this->getUmlaut()){ for($i=0;$iidn);$i++){ $idn.=chr($this->idn[$i]); } $pattern="/^[a-z".utf8_encode($idn)."0-9\-]{1,}$/"; // print_r($pattern); // $pattern="^[a-z".$idn."0-9\-]{3,}$"; }else{ $pattern="/^[a-z0-9\-]{2,}$/"; } if(preg_match($pattern,strtolower($this->get_domain())) && !preg_match("/^-|-$/",strtolower($this->get_domain())) && !preg_match("/--/",strtolower($this->get_domain()))){ return true; }else{ return false; } } } ?>
  • Domain wählen
  • Accountdaten
  • Optionen / AGB
  • Bestellübersicht
  • Bestellung abgeschlossen

Bestellung - Domaincheck

Tarif / Produkt: Managed Large

DomainStatusbestellen

 

Geben Sie unten Ihren gewünschten Domainnamen ein und klicken Sie anschließend auf 'Prüfung starten', um sicherzustellen, dass Ihre Wunschdomain noch nicht vergeben ist.

Domain noch frei?

http://www..
Alle Preise verstehen sich inklusive MwStr.