Deutsch | Français ficos.com
* @copyright inDot media * @include Funktion:_include_ */ class domain{ var $domain=""; var $domainname=""; var $tld=""; /******************************* * Initializing server variables * array(top level domain,whois_Server,not_found_string or MAX number of CHARS: MAXCHARS:n) **/ var $servers=array( "be" => array("whois.dns.be", "Status: FREE"), "lu" => array("whois.dns.lu", "Status: FREE"), "de" => array("whois.denic.de","not found"), "com" => array("whois.crsnic.net","No match"), "net" => array("whois.crsnic.net","No match"), // whois.crsnic.net //"net" => array("whois.opensrs.net","Can't get information"), "org" => array("whois.publicinterestregistry.net","NOT FOUND"), "biz" => array("whois.biz","Not found"), "info" => array("whois.afilias.info","Not found"), ); /** * Constructor of class domain * @param string $str_domainame the full name of the domain * @desc Constructor of class domain */ function domain($str_domainname){ $this->domain=$str_domainname; $arr = explode(".",$this->domain); $this->domainname = $arr[0]; $this->tld = $arr[1]; } /** * Returns the whois data of the domain * @return string $whoisdata Whois data as string * @desc Returns the whois data of the domain */ function info(){ $debug = 0; $tldname=$this->get_tld(); $domainname=$this->get_domain(); $whois_server=$this->get_whois_server(); if($debug) echo "
.$tldname - querying $whois_server ..."; // Getting whois information if(($tldname=="be") || ($tldname=="lu")) $fp = fsockopen($whois_server,4343); else $fp = fsockopen($whois_server,43); // New IDN if($tldname=="de") fputs($fp, "-C ISO-8859-1 -T dn ".$this->domain."\r\n"); elseif(($tldname=="be") || ($tldname=="lu")) fputs($fp, "GET 1.0 $domainname\r\n"); else fputs($fp, $this->domain."\r\n"); // Getting string $string=""; // Checking whois server for .com and .net while(!feof($fp)) $string .= fgets($fp,128); fclose($fp); return $string; } /** * 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(){ return $this->servers[$this->get_tld()][0]; } /** * 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 return $this->tld; } /** * 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 return $this->domainname; } /** * 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(){ return $this->servers[$this->get_tld()][1]; } /** * 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 // echo "
".$whois_string."




"; $not_found_string=$this->get_notfound_string(); // Gets 3rd item from array $domain=$this->domain; // Gets current domain being queried $whois_string =@preg_replace("/\s+/"," ",$whois_string); //Replace whitespace with single space return !(stristr($whois_string,$not_found_string) === false); } function nslookup_is_available() { $result = array(); exec("nslookup ".$this->domain, $result); return (count($result) < 4); } /** * 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=split("\.",$this->domain); $pattern="^[a-z0-9\-]{3,}$"; return ((count($domainArr)<=2) && ereg($pattern,strtolower($this->get_domain())) && !ereg("^-|-$",strtolower($this->get_domain())) && !preg_match("/--/",strtolower($this->get_domain()))); } } ?>

Domain-check

Schreiben Sie in das mittlere Kästchen den gewünschten Namen, und wählen Sie daneben die Endung (Top-Level-Domain), klicken Sie anschließend auf OK.

www. Ok
Verfügbare Domains werden geprüft
Leistung


Ideal für Vereine:
Domain & Hosting sowie eine E-Mail Adresse für jedes Vorstandsmitglied für nur 100EUR/Jahr


Domain-Verfügbarkeit prüfen:
Domain-Check


Bestellung