Domain name query code announcement _ php Basics

Source: Internet
Author: User
Tags php basics
Domain name query code announcement domain name query code announcement
// The motto of the network technology supervisor: the trio must have our teacher. Http://www.ctohome.com
// This code can be said to be very SMART. I modified a small part to make it easier to use.

$ Moreinfolist = array (// storage WHOIS query host connection method
'At' => 'Www .ripe.net/cgi-bin/whois? Query = ',
'Au '=> 'Www .aunic.net/cgi-bin/whois.aunic? ',
'Bm '=> 'Www. bermudanic. bm/cgi-bin/BermudaNIC/rwhois_query_get.pl? Query_text = ',
'Ch' => 'Www. switch. ch/cgi-bin/domain/search_domain? Keyword = ',
'Com '=> 'Www .networksolutions.com/cgi-bin/whois/whois /? STRING = ',
'Cz '=> 'Www .ripe.net/cgi-bin/whois? Query = ',
'De' => 'Www .ripe.net/cgi-bin/whois? Query = ',
'Dk '=> 'Www .ripe.net/cgi-bin/whois? Query = ',
'Edu' => 'Www .networksolutions.com/cgi-bin/whois/whois /? STRING = ',
'Els' => 'Www. nic. es/whois/index. php? Type = Dominios & key = ',
'Fi '=> 'Www .ripe.net/cgi-bin/whois? Query = ',
'Fo' => 'Www .ripe.net/cgi-bin/whois? Query = ',
'Fr '=> 'harmonic. nic. fr/cgi-bin/harmonic. pl? Annu_Suffixe = & Annu_Action = Rechercher & Annu_Automaton_State = 17 & Annu_Motif = ',
'Gl '=> 'Www .ripe.net/cgi-bin/whois? Query = ',
'G' => 'Www .ripe.net/cgi-bin/whois? Query = ',
'Gov '=> 'Www .nic.gov/cgi-bin/whois? S = nic.gov ',
'Gr '=> 'Www .ripe.net/cgi-bin/whois? Query = ',
'Hu' => 'Www .ripe.net/cgi-bin/whois? Query = ',
'Id' => 'whois .idnic.net. id/cgi-bin/whois-cgi? User = ',
'Ie' => 'Www .ripe.net/cgi-bin/whois? Query = ',
'Il '=> 'Www .ripe.net/cgi-bin/whois? Query = ',
'Is => 'www .ripe.net/cgi-bin/whois? Query = ',
'It' => 'Www .ripe.net/cgi-bin/whois? Query = ',
'JP '=> 'Www .nic.ad.jp/cgi-bin/whois_gw? Lang =/e & type = DOM & rule = ex & key = ',
'Lb' => 'Www .aub.edu. lb/cgi-bin/lbdr. pl? Cn = ',
'Lil' => 'Www. switch. ch/cgi-bin/domain/search_domain? Keyword = ',
'Lt '=>' www .ripe.net/cgi-bin/whois? Query = ',
'LV' => 'Www .ripe.net/cgi-bin/whois? Query = ',
'MC '=> 'Www .ripe.net/cgi-bin/whois? Query = ',
'Mil '=> 'Www .nic.mil/cgi-bin/whois? Stype = Domains & ctype = reg & keyword = ',
'Ms' => 'Www. adamsnames. tc/whois /? Seen = y & domain = ',
'MX '=> 'Www. nic. mx/cgi/whois? ',
'Net' => 'Www .networksolutions.com/cgi-bin/whois/whois /? STRING = ',
'No' => 'Www .ripe.net/cgi-bin/whois? Query = ',
'Yz' => 'Www .domainz.net. nz/facility/namesearch/Result. asp? PrmMode = Search & DomainName = ',
'Org '=> 'Www .networksolutions.com/cgi-bin/whois/whois /? STRING = ',
'Pt' => 'Www .ripe.net/cgi-bin/whois? Query = ',
'Ro' => 'whois. rotld. ro/cgi-bin/whois? Whois = ',
'SK' => 'Www .ripe.net/cgi-bin/whois? Query = ',
'SM '=> 'Www .ripe.net/cgi-bin/whois? Query = ',
'TC '=> 'Www. adamsnames. tc/whois /? Seen = y & domain = ',
'Tf' => 'Www. adamsnames. tc/whois /? Seen = y & domain = ',
'Th' => 'Www .thnic.net/cgi-bin/whois.pl? Server = whois.thnic.net & string = ',
'TJ '=> 'Www. nic. tj/whois. cgi? Domain ',
'Tr' => 'whois .cc.metu.edu. tr/whois/wwwwhois? Whois = ',
'UK '=> 'Www. nic. uk/cgi-bin/whois. cgi? Query = ',
'Va '=> 'Www .ripe.net/cgi-bin/whois? Query = ',
'Vg '=> 'Www. adamsnames. tc/whois /? Seen = y & domain ='
);

# Where can we get more info?
$ Moreinfo = FALSE;
For (reset ($ moreinfolist); list ($ tail, $ moreinfoname) = each ($ moreinfolist );)
If (eregi ("\. $ tail \ $", $ address) {// compare domain name suffixes
$ Moreinfo = $ moreinfoname; // terminate the loop immediately when a match exists.
Break;
}

If ($ moreinfo & $ address) {// jump to the WHOIS host
Header ('Location: http: // '. $ moreinfo. $ address );
Exit ();
}
Else {
Echo "";
}

?>




Whois tool




Explanation by the network technology director in hand.




Http://www.ctohome.com





Highlight_file ("whois. php ");
?>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.