亚洲综合原千岁中文字幕_国产精品99久久久久久久vr_无码人妻aⅴ一区二区三区浪潮_成人h动漫精品一区二区三

主頁 > 知識庫 > PHP whois查詢類定義與用法示例

PHP whois查詢類定義與用法示例

熱門標簽:智能電話機器人排名前十名南京 西區企業怎么做地圖標注入駐 七魚外呼系統停用嗎 抖音有個地圖標注是什么意思 海南人工外呼系統有效果嗎 地下城堡2圖九地圖標注 保定crm外呼系統運營商 九江外呼系統 阿里云400電話申請加工單

本文實例講述了PHP whois查詢類定義與用法。分享給大家供大家參考,具體如下:

whois.class.php

?php
class Whois{
private $WHOIS_SERVERS = array(
"com" => array("whois.verisign-grs.com","whois.crsnic.net"),
"net" => array("whois.verisign-grs.com","whois.crsnic.net"),
"org" => array("whois.pir.org","whois.publicinterestregistry.net"),
"info" => array("whois.afilias.info","whois.afilias.net"),
"biz" => array("whois.neulevel.biz"),
"us" => array("whois.nic.us"),
"uk" => array("whois.nic.uk"),
"ca" => array("whois.cira.ca"),
"tel" => array("whois.nic.tel"),
"ie" => array("whois.iedr.ie","whois.domainregistry.ie"),
"it" => array("whois.nic.it"),
"li" => array("whois.nic.li"),
"no" => array("whois.norid.no"),
"cc" => array("whois.nic.cc"),
"eu" => array("whois.eu"),
"nu" => array("whois.nic.nu"),
"au" => array("whois.aunic.net","whois.ausregistry.net.au"),
"de" => array("whois.denic.de"),
"ws" => array("whois.worldsite.ws","whois.nic.ws","www.nic.ws"),
"sc" => array("whois2.afilias-grs.net"),
"mobi" => array("whois.dotmobiregistry.net"),
"pro" => array("whois.registrypro.pro","whois.registry.pro"),
"edu" => array("whois.educause.net","whois.crsnic.net"),
"tv" => array("whois.nic.tv","tvwhois.verisign-grs.com"),
"travel" => array("whois.nic.travel"),
"name" => array("whois.nic.name"),
"in" => array("whois.inregistry.net","whois.registry.in"),
"me" => array("whois.nic.me","whois.meregistry.net"),
"at" => array("whois.nic.at"),
"be" => array("whois.dns.be"),
"cn" => array("whois.cnnic.cn","whois.cnnic.net.cn"),
"asia" => array("whois.nic.asia"),
"ru" => array("whois.ripn.ru","whois.ripn.net"),
"ro" => array("whois.rotld.ro"),
"aero" => array("whois.aero"),
"fr" => array("whois.nic.fr"),
"se" => array("whois.iis.se","whois.nic-se.se","whois.nic.se"),
"nl" => array("whois.sidn.nl","whois.domain-registry.nl"),
"nz" => array("whois.srs.net.nz","whois.domainz.net.nz"),
"mx" => array("whois.nic.mx"),
"tw" => array("whois.apnic.net","whois.twnic.net.tw"),
"ch" => array("whois.nic.ch"),
"hk" => array("whois.hknic.net.hk"),
"ac" => array("whois.nic.ac"),
"ae" => array("whois.nic.ae"),
"af" => array("whois.nic.af"),
"ag" => array("whois.nic.ag"),
"al" => array("whois.ripe.net"),
"am" => array("whois.amnic.net"),
"as" => array("whois.nic.as"),
"az" => array("whois.ripe.net"),
"ba" => array("whois.ripe.net"),
"bg" => array("whois.register.bg"),
"bi" => array("whois.nic.bi"),
"bj" => array("www.nic.bj"),
"br" => array("whois.nic.br"),
"bt" => array("whois.netnames.net"),
"by" => array("whois.ripe.net"),
"bz" => array("whois.belizenic.bz"),
"cd" => array("whois.nic.cd"),
"ck" => array("whois.nic.ck"),
"cl" => array("nic.cl"),
"coop" => array("whois.nic.coop"),
"cx" => array("whois.nic.cx"),
"cy" => array("whois.ripe.net"),
"cz" => array("whois.nic.cz"),
"dk" => array("whois.dk-hostmaster.dk"),
"dm" => array("whois.nic.cx"),
"dz" => array("whois.ripe.net"),
"ee" => array("whois.eenet.ee"),
"eg" => array("whois.ripe.net"),
"es" => array("whois.ripe.net"),
"fi" => array("whois.ficora.fi"),
"fo" => array("whois.ripe.net"),
"gb" => array("whois.ripe.net"),
"ge" => array("whois.ripe.net"),
"gl" => array("whois.ripe.net"),
"gm" => array("whois.ripe.net"),
"gov" => array("whois.nic.gov"),
"gr" => array("whois.ripe.net"),
"gs" => array("whois.adamsnames.tc"),
"hm" => array("whois.registry.hm"),
"hn" => array("whois2.afilias-grs.net"),
"hr" => array("whois.ripe.net"),
"hu" => array("whois.ripe.net"),
"il" => array("whois.isoc.org.il"),
"int" => array("whois.isi.edu"),
"iq" => array("vrx.net"),
"ir" => array("whois.nic.ir"),
"is" => array("whois.isnic.is"),
"je" => array("whois.je"),
"jp" => array("whois.jprs.jp"),
"kg" => array("whois.domain.kg"),
"kr" => array("whois.nic.or.kr"),
"la" => array("whois2.afilias-grs.net"),
"lt" => array("whois.domreg.lt"),
"lu" => array("whois.restena.lu"),
"lv" => array("whois.nic.lv"),
"ly" => array("whois.lydomains.com"),
"ma" => array("whois.iam.net.ma"),
"mc" => array("whois.ripe.net"),
"md" => array("whois.nic.md"),
"mil" => array("whois.nic.mil"),
"mk" => array("whois.ripe.net"),
"ms" => array("whois.nic.ms"),
"mt" => array("whois.ripe.net"),
"mu" => array("whois.nic.mu"),
"my" => array("whois.mynic.net.my"),
"nf" => array("whois.nic.cx"),
"pl" => array("whois.dns.pl"),
"pr" => array("whois.nic.pr"),
"pt" => array("whois.dns.pt"),
"sa" => array("saudinic.net.sa"),
"sb" => array("whois.nic.net.sb"),
"sg" => array("whois.nic.net.sg"),
"sh" => array("whois.nic.sh"),
"si" => array("whois.arnes.si"),
"sk" => array("whois.sk-nic.sk"),
"sm" => array("whois.ripe.net"),
"st" => array("whois.nic.st"),
"su" => array("whois.ripn.net"),
"tc" => array("whois.adamsnames.tc"),
"tf" => array("whois.nic.tf"),
"th" => array("whois.thnic.net"),
"tj" => array("whois.nic.tj"),
"tk" => array("whois.nic.tk"),
"tl" => array("whois.domains.tl"),
"tm" => array("whois.nic.tm"),
"tn" => array("whois.ripe.net"),
"to" => array("whois.tonic.to"),
"tp" => array("whois.domains.tl"),
"tr" => array("whois.nic.tr"),
"ua" => array("whois.ripe.net"),
"uy" => array("nic.uy"),
"uz" => array("whois.cctld.uz"),
"va" => array("whois.ripe.net"),
"vc" => array("whois2.afilias-grs.net"),
"ve" => array("whois.nic.ve"),
"vg" => array("whois.adamsnames.tc"),
"yu" => array("whois.ripe.net")
);
public function whoislookup($domain)
{
$domain = trim($domain); //remove space from start and end of domain
if(substr(strtolower($domain), 0, 7) == "http://") $domain = substr($domain, 7); // remove http:// if included
if(substr(strtolower($domain), 0, 4) == "www.") $domain = substr($domain, 4);//remove www from domain
if(preg_match("/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/",$domain))
return $this->queryWhois("whois.lacnic.net",$domain);
elseif(preg_match("/^([-a-z0-9]{2,100})\.([a-z\.]{2,8})$/i",$domain))
{
$domain_parts = explode(".", $domain);
$tld = strtolower(array_pop($domain_parts));
$server = $this->WHOIS_SERVERS[$tld][0];
if(!$server) {
return "Error: No appropriate Whois server found for $domain domain!";
}
$res=$this->queryWhois($server,$domain);
while(preg_match_all("/Whois Server: (.*)/", $res, $matches))
{
$server=array_pop($matches[1]);
$res=$this->queryWhois($server,$domain);
}
return $res;
}
else
return "Invalid Input";
}
private function queryWhois($server,$domain)
{
$fp = @fsockopen($server, 43, $errno, $errstr, 20) or die("Socket Error " . $errno . " - " . $errstr);
if($server=="whois.verisign-grs.com")
$domain="=".$domain;
fputs($fp, $domain . "\r\n");
$out = "";
while(!feof($fp)){
$out .= fgets($fp);
}
fclose($fp);
return $out;
}
}
?>

調用的方式

?php
require("whois.class.php");
$whois=new Whois;
echo $whois->whoislookup("www.jb51.net");
?>

運行結果:

Domain Name: JB51.NET Registry Domain ID: 527217184_DOMAIN_NET-VRSN Registrar WHOIS Server: whois.godaddy.com Registrar URL: http://www.godaddy.com Updated Date: 2016-05-26T08:17:44Z Creation Date: 2006-07-22T03:11:39Z Registry Expiry Date: 2024-07-22T03:11:39Z Registrar: GoDaddy.com, LLC Registrar IANA ID: 146 Registrar Abuse Contact Email: abuse@godaddy.com Registrar Abuse Contact Phone: 480-624-2505 Domain Status: clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited Domain Status: clientRenewProhibited https://icann.org/epp#clientRenewProhibited Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited Domain Status: clientUpdateProhibited https://icann.org/epp#clientUpdateProhibited Name Server: NS1.DNSV2.COM Name Server: NS2.DNSV2.COM DNSSEC: unsigned URL of the ICANN Whois Inaccuracy Complaint Form: https://www.icann.org/wicf/ >>> Last update of whois database: 2019-04-03T03:32:17Z For more information on Whois status codes, please visit https://icann.org/epp NOTICE: The expiration date displayed in this record is the date the registrar's sponsorship of the domain name registration in the registry is currently set to expire. This date does not necessarily reflect the expiration date of the domain name registrant's agreement with the sponsoring registrar. Users may consult the sponsoring registrar's Whois database to view the registrar's reported date of expiration for this registration. TERMS OF USE: You are not authorized to access or query our Whois database through the use of electronic processes that are high-volume and automated except as reasonably necessary to register domain names or modify existing registrations; the Data in VeriSign Global Registry Services' ("VeriSign") Whois database is provided by VeriSign for information purposes only, and to assist persons in obtaining information about or related to a domain name registration record. VeriSign does not guarantee its accuracy. By submitting a Whois query, you agree to abide by the following terms of use: You agree that you may use this Data only for lawful purposes and that under no circumstances will you use this Data to: (1) allow, enable, or otherwise support the transmission of mass unsolicited, commercial advertising or solicitations via e-mail, telephone, or facsimile; or (2) enable high volume, automated, electronic processes that apply to VeriSign (or its computer systems). The compilation, repackaging, dissemination or other use of this Data is expressly prohibited without the prior written consent of VeriSign. You agree not to use electronic processes that are automated and high-volume to access or query the Whois database except as reasonably necessary to register domain names or modify existing registrations. VeriSign reserves the right to restrict your access to the Whois database in its sole discretion to ensure operational stability. VeriSign may restrict or terminate your access to the Whois database for failure to abide by these terms of use. VeriSign reserves the right to modify these terms at any time. The Registry database contains ONLY .COM, .NET, .EDU domains and Registrars.

更多關于PHP相關內容感興趣的讀者可查看本站專題:《php socket用法總結》、《php字符串(string)用法總結》、《PHP數學運算技巧總結》、《php面向對象程序設計入門教程》、《PHP數組(Array)操作技巧大全》、《PHP數據結構與算法教程》、《php程序設計算法總結》及《PHP網絡編程技巧總結》

希望本文所述對大家PHP程序設計有所幫助。

您可能感興趣的文章:
  • php使用lua+redis實現限流,計數器模式,令牌桶模式
  • PHP設計模式之策略模式原理與用法實例分析
  • PHP設計模式之觀察者模式定義與用法分析
  • PHP示例演示發送郵件給某個郵箱
  • ThinkPHP3.2.3框架實現的空模塊、空控制器、空操作,跳轉到錯誤404頁面圖文詳解
  • PHP反射實際應用示例
  • ThinkPHP3.2.3框架實現執行原生SQL語句的方法示例
  • 從ThinkPHP3.2.3過渡到ThinkPHP5.0學習筆記圖文詳解
  • 使用docker在服務器運行多個php版本
  • PHP中quotemeta()函數的用法講解

標簽:遼陽 涼山 梅河口 昭通 九江 十堰 韶關 甘肅

巨人網絡通訊聲明:本文標題《PHP whois查詢類定義與用法示例》,本文關鍵詞  PHP,whois,查詢,類,定義,與,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《PHP whois查詢類定義與用法示例》相關的同類信息!
  • 本頁收集關于PHP whois查詢類定義與用法示例的相關信息資訊供網民參考!
  • 推薦文章
    日韩中文字幕在线播放| 天天色成人网| 欧美激情在线精品video| 国产成人精品一区二区视频| 国产精品自拍一区| 久久久久久久久综合影视网| 亚洲第一页色| 国产麻豆精品hdvideoss| 青青青草视频在线观看| 九九国产| 久久精品店| 香蕉视频亚洲一级| 国产视频网站在线观看| 日韩中文字幕在线播放| 久久久久久久男人的天堂| 成人影视在线播放| 久久99爰这里有精品国产| 日本伦理黄色大片在线观看网站| 国产精品自拍亚洲| 中文字幕97| 国产麻豆精品高清在线播放| 欧美日本免费| 国产美女在线一区二区三区| 欧美大片a一级毛片视频| 国产一区二区精品| 尤物视频网站在线观看| 欧美激情一区二区三区中文字幕| 一级片片| 精品在线观看一区| 亚飞与亚基在线观看| 精品国产一区二区三区久久久蜜臀 | 日韩免费片| 欧美夜夜骑 青草视频在线观看完整版 久久精品99无色码中文字幕 欧美日韩一区二区在线观看视频 欧美中文字幕在线视频 www.99精品 香蕉视频久久 | 好男人天堂网 久久精品国产这里是免费 国产精品成人一区二区 男人天堂网2021 男人的天堂在线观看 丁香六月综合激情 | 成人免费观看视频| 欧美日本免费| 日韩免费在线| 国产极品白嫩美女在线观看看| 国产精品1024在线永久免费 | 黄视频网站免费看| 99色吧| 国产91视频网| 欧美爱色| 国产一区二区精品在线观看| 日韩中文字幕在线亚洲一区| 台湾美女古装一级毛片| 九九干| 成人免费网站视频ww| 国产成a人片在线观看视频 | 久久国产一久久高清| 久久精品大片| 亚洲精品中文字幕久久久久久| 午夜精品国产自在现线拍| 久久99中文字幕| 国产精品自拍一区| 国产高清视频免费观看| 夜夜操网| 成人免费一级毛片在线播放视频| 你懂的日韩| 天天做日日爱| 亚洲天堂一区二区三区四区| 免费一级片在线| 成人高清视频免费观看| 国产视频一区在线| 国产成人精品综合| 久久国产精品永久免费网站| 日韩中文字幕在线播放| 久久精品欧美一区二区| 欧美激情一区二区三区在线| 午夜激情视频在线播放| 国产成人精品综合久久久| 99热热久久| 久久福利影视| 精品国产亚洲人成在线| 免费一级片在线| 精品久久久久久免费影院| 高清一级片| 91麻豆国产福利精品| 国产精品免费久久| 欧美激情伊人| 九九九在线视频| 国产91丝袜在线播放0| 国产a免费观看| 国产91精品露脸国语对白| 好男人天堂网 久久精品国产这里是免费 国产精品成人一区二区 男人天堂网2021 男人的天堂在线观看 丁香六月综合激情 | 日韩中文字幕在线亚洲一区| 成人a大片高清在线观看| 韩国三级视频在线观看| 99久久精品国产麻豆| 亚洲第一色在线| 午夜激情视频在线观看| 亚洲爆爽| 色综合久久手机在线| 精品视频免费在线| 亚洲女人国产香蕉久久精品| 精品国产一级毛片| 高清一级淫片a级中文字幕 | 成人a大片高清在线观看| 韩国毛片| 欧美另类videosbestsex视频 | 99色视频在线| 国产精品自拍在线| 欧美国产日韩精品| 精品视频免费观看| 亚洲精品影院| 中文字幕97| 沈樵在线观看福利| 青青久久精品国产免费看| 免费一级生活片| 亚洲爆爽| 精品国产香蕉在线播出| 国产精品自拍亚洲| 久久成人性色生活片| 色综合久久天天综合绕观看| 日本特黄特黄aaaaa大片| 国产麻豆精品高清在线播放| 四虎影视久久久免费| 香蕉视频久久| 国产精品自拍亚洲| 午夜在线影院| 久久国产精品自由自在| 在线观看成人网| 国产成a人片在线观看视频 | 日日爽天天| 亚洲精品影院久久久久久| 国产极品白嫩美女在线观看看| 精品视频免费在线| 亚洲天堂一区二区三区四区| 99热精品在线| 99热热久久| 欧美国产日韩久久久| 国产一区二区精品尤物| 高清一级毛片一本到免费观看| 97视频免费在线观看| 在线观看成人网| 精品视频免费看| 毛片高清| 久久精品免视看国产明星 | 九九热精品免费观看| 精品视频免费看| 超级乱淫伦动漫| 国产亚洲精品aaa大片| 日本免费乱理伦片在线观看2018| 日日爽天天| 91麻豆精品国产高清在线| 毛片的网站| 久久久成人网| 精品视频在线观看免费| 一级女性大黄生活片免费| 黄视频网站在线免费观看| 日韩中文字幕在线播放| 国产91丝袜高跟系列| 国产成人啪精品| 国产91丝袜在线播放0| 亚洲精品中文字幕久久久久久| 久久国产精品只做精品| 日韩av东京社区男人的天堂| 国产激情视频在线观看| 免费国产在线视频| 免费一级片在线| 国产韩国精品一区二区三区| 精品久久久久久中文字幕一区| 欧美夜夜骑 青草视频在线观看完整版 久久精品99无色码中文字幕 欧美日韩一区二区在线观看视频 欧美中文字幕在线视频 www.99精品 香蕉视频久久 | 久久福利影视| 免费一级片在线| 日日日夜夜操| 九九精品影院| 美国一区二区三区| 欧美α片无限看在线观看免费| 韩国三级香港三级日本三级| 欧美另类videosbestsex高清| 麻豆网站在线看| 亚洲wwwwww| 精品在线视频播放| 深夜做爰性大片中文| 999精品影视在线观看| 国产一区免费在线观看| 精品国产一区二区三区精东影业| a级黄色毛片免费播放视频| 99热视热频这里只有精品| 中文字幕一区二区三区 精品| 日韩中文字幕在线播放| 91麻豆精品国产自产在线 | 久久久久久久免费视频| 999精品影视在线观看| 成人a级高清视频在线观看| 久久久成人网| 免费国产一级特黄aa大片在线| 91麻豆精品国产综合久久久| 免费国产在线视频| 可以在线看黄的网站| 亚飞与亚基在线观看| 99色吧| 国产国产人免费视频成69堂| 国产成人精品综合在线| 国产成人女人在线视频观看| 国产不卡高清| 高清一级淫片a级中文字幕 | 国产伦理精品| 日韩在线观看免费|