Domain Name Query Code publication

Source: Internet
Author: User
Keywords Domain Name Query Code publication
Domain Name Query Code publication
   Network Technology leader motto: Three people, it must have my teacher Yan. Http://www.ctohome.com
This code can be said to be very smart, I changed the little part to make it easier to use.

$moreinfolist = Array (//The connection method for storing WHOIS query host
' 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= ',
' Es ' = ' 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= ',
' gm ' = ' 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= ',
' Li ' = ' 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= ',
' NZ ' = ' 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 suffix
$moreinfo = $moreinfoname; End loop immediately when a match is encountered
Break
}

if ($moreinfo && $address) {//jump to WHOIS host
Header (' location:http://'. $moreinfo. $address);
Exit ();
}
else {
echo "";
}

?>

 

 
<title>Whois tool</title>  
 

 

Network technical Director of the Chinese interpretation.

 

 
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.