GVKun编程网logo

什么是whois查询?whois查询可以干什么?(whois查询什么意思)

9

本文的目的是介绍什么是whois查询?whois查询可以干什么?的详细情况,特别关注whois查询什么意思的相关信息。我们将通过专业的研究、有关数据的分析等多种方式,为您呈现一个全面的了解什么是who

本文的目的是介绍什么是whois查询?whois查询可以干什么?的详细情况,特别关注whois查询什么意思的相关信息。我们将通过专业的研究、有关数据的分析等多种方式,为您呈现一个全面的了解什么是whois查询?whois查询可以干什么?的机会,同时也不会遗漏关于IPwhois查询,域名whois查询、IP地址查询:Whois查询与域名反查详解、php whois查询API制作方法、php whois查询API制作方法_php技巧的知识。

本文目录一览:

什么是whois查询?whois查询可以干什么?(whois查询什么意思)

什么是whois查询?whois查询可以干什么?(whois查询什么意思)

 

什么是whois查询?whois查询可以干什么?

什么是whois查询?whois查询可以干什么?Whois是一种传输协议,用于查询域名的ip、其所有者等。Whois查询是一个数据库,用于查询域名是否已注册以及域名注册的详细情况,包括:域名所有者、注册中心、注册时间、联系电话和域名状态等。随着网络通信技术的发展和web应用的迅速普及,通过web系统进行域名信息查询已成为主流。基本上,每个提供域名注册服务的网站都可以进行whois查询。下面蝶动网小编就带大家看看什么是whois查询和whois查询可以干什么。

什么是whois查询?whois查询可以干什么?(推荐阅读:为什么域名不加www访问不了?有什么原因?

注册域名时,需要使用whois查询查看域名是否已注册。当你找到一个高质量的网站,想互相联系,交换资源,却找不到任何联系信息时,你也可以用域名whois查询,尽量获取所有者信息。当然,前提是域名持有人没有采取严格的隐私保护举措。

由于某些注册者的国际域名的whois信息被阻止,如果您想查询,您只能联系相应的注册者。这种保护机制是为了防止人们恶意使用这一whois信息联系信息,暴露客户隐私信息。

whois查询的工作过程

什么是whois查询?whois查询可以干什么?

whois服务是在线的“请求/响应”服务。Whois服务器在后台的端口43上运行。当internet用户搜索域名(或主机、联系人等其他信息)时,whois服务器首先与客户端建立tcp连接,然后接收用户请求的信息,并相应地查询后台域名数据库。如果数据库中有相应的记录,它会将相关信息,如所有者、管理信息和技术联系信息,反馈给客户。当服务器输出结束时,客户端关闭连接,此时,查询过程结束。

如有其它的域名知识需要,详情请关注蝶动网域名注册:

本文章网址:http://www.ppssdd.com/domain/25035.html。转载请保留出处,谢谢合作!

IPwhois查询,域名whois查询

IPwhois查询,域名whois查询

<script>ec(2);</script>


IP/域名WHOIS查询





IP/域名:
查      询



require_once $_SERVER[''DOCUMENT_ROOT''].''/ad/mid.php'';
if($q2''''){
 if($isdomain){
  echo ''
'';
  echo ''
查询结果
'';
  echo ''
'';
  // Server List File
  $config[''server_list''] = "./whois/servers.lst";
  whois($domain);
  echo ''
'';
  echo ''
'';
 }elseif($isip){
  echo ''
'';
  echo ''
查询结果
'';
  echo ''
'';
  $sourcecode=getsourcecode("http://wq.apnic.net/apnic-bin/whois.pl?searchtext=".$q);
  //echo $sourcecode;
  preg_match(''/(
<b><u>.*?)<divid="key">/s'', $sourcecode, $ipwhois);<br>
  $result=$ipwhois[1];<br>
  $result=nl2br($result);<br>
  echo $result;<br>
  echo ''</div>'';<br>
  echo ''</u></b>
登录后复制
'';
 }else{
  echo ''
'';
  echo ''
Error!
'';
  echo ''

error!请确保你输入的不是域名(中文域名暂不支持)就是ip,你要是输入的是电话号码之类那我们真查不了!

'';
  echo ''
'';
  echo ''
'';
 }
}else{
  echo ''
'';
  echo ''
工具说明
'';
  echo ''

请输入IP或域名,如chaxun.la或xxx.xxx.xxx.xxx

'';
  echo ''
'';
  echo ''
'';
}
function whois() {
 global $domain;
 if(!$server = get_server()) {
  die("无法查询此类型的域名");
 }
  $result = whois_request($server[''server''], $domain);
  if(!$result) {
   echo "无法连接服务器";
   die();
  }
  $server[''info'']=trim($server[''info'']);
  if($server[''info'']){
   $he = strpos($result,$server[''info'']) + strlen($server[''info'']);
   $le = strpos($result, " ", $he);
   $whois_server = trim(substr($result, $he, $le-$he));
   $result2 = whois_request($whois_server, $domain);
   if($result2){
    echo nl2br($result." 以下信息来自:".$whois_server." ".$result2);
   }else {
    echo nl2br($result);
   }
  }else {
   echo nl2br($result);
  }
}
/*function whois() {
 global $domain;
 if(!$server = get_server()) {
  echo "无法查询此类型的域名";
 }else{
  $result = whois_request($server[''server''], $domain);
  if(!$result) {
   echo "无法连接服务器";
  } else {
   echo $result;
  }
 }
}
*/
function whois_request($server, $query)
{
    $data = "";
 if(!$fp = @fsockopen($server, 43)) {
  Return false;
 } else {
  fputs($fp, $query . " ");
        while (!feof($fp)) {
            $data .= fread($fp, 1000);
        }
        fclose($fp);
 }
    //return nl2br($data);
 return $data;
}

function get_server() {
 global $config,$domain;
 $serverarray = file($config[''server_list'']);
 $i = 0;
 foreach($serverarray as $key=>$val) {
  if(substr($val,0,1) != "#") {
   $server_p = explode("|",$val);
   $server[$i][''tld''] = $server_p[0];
   $server[$i][''server''] = $server_p[1];
   $server[$i][''avail''] = $server_p[2];
   $server[$i][''infoserver''] = $server_p[3];
   $server[$i][''backserver''] = $server_p[4];
   $server[$i][''info''] = $server_p[5];
  }
  $i++;
 }

 $domain_c = explode(".",$domain);
 $partnum = count($domain_c);
 $last_part_1 = $domain_c[$partnum-1];
 $last_part_2 = $domain_c[$partnum-2];
 
 foreach($server as $key=>$val) {
  if($val[''tld''] == $last_part_2.".".$last_part_1) {
   Return $val;
  } elseif($val[''tld''] == $last_part_1) {
   Return $val;
  }
 }
 Return false;
}

$q=trim($_GET[''q'']);
$q2=$q;
if($q''''){
if($q=matchip($q2)){
  $isip=1;
 }elseif($q=matchdomain($q2)){
  $domain=topdomain($q2);
  $isdomain=1;
 }
}IPwhois查询,域名whois查询

IP地址查询:Whois查询与域名反查详解

IP地址查询:Whois查询与域名反查详解

在互联网上,IP地址是网络设备的标识符,而域名则是为方便用户访问而设计的与IP地址相对应的“网络地址”。IP地址查询中,Whois查询和域名反查是两种非常常用且有效的方法,它们能够为网络管理、安全监测、域名购买等场景提供重要信息。

一、Whois查询:揭示域名与IP的背景信息
什么是Whois查询?Whois查询是一种用来查询域名注册信息以及IP地址所有者的服务。通过Whois数据库,用户可以了解到域名或IP地址的注册人、注册日期、注册机构等关键信息。Whois查询对于域名购买、网站合法性验证、网络安全等场景有着重要作用。
Whois查询能提供哪些信息?域名注册人信息:包括域名的所有者、联系方式、地址等详细信息。注册商信息:查询可以获得域名或IP地址的注册机构(如GoDaddy、Namecheap等)。域名创建和到期时间:用户可以了解该域名何时注册及何时到期,帮助判断域名的生命周期。DNS服务器信息:Whois查询还能提供域名所使用的DNS服务器信息,有助于分析该域名的解析路径。
二、域名反查:从IP地址找到相关域名
什么是域名反查?域名反查是指通过IP地址反向查询与其关联的所有域名。由于一个IP地址可能承载多个网站,因此域名反查可以帮助用户发现同一IP地址下的其他域名。这在网络安全和域名管理中非常有用。域名反查能提供哪些信息?共享主机上的域名:如果某个IP地址是虚拟主机服务器的地址,通过域名反查可以找到该IP地址下的所有共享域名。恶意域名:在网络安全领域,域名反查能够帮助识别某个IP地址上是否存在潜在的恶意网站或钓鱼网站。网站组群分析:通过域名反查,可以发现一个IP地址上的多个网站,分析其是否属于同一公司或组织。
三、Whois查询与域名反查的区别与联系虽然Whois查询和域名反查都是用于获取域名和IP地址相关信息的工具,但它们的功能有所不同。Whois查询主要提供域名或IP地址的注册信息和所有者背景信息,适用于域名购买、网站合法性验证等场景。
域名反查则是通过IP地址查找其关联的域名,主要用于网络安全和虚拟主机环境下的网站管理。这两者相辅相成,在网络安全、域名管理等领域中起到重要的作用。

php whois查询API制作方法

php whois查询API制作方法

这里我们从万网或新网的数据接口取得数据,透过php的简单文本处理再输出。 
复制代码 代码如下: 
$domain = $_get[''q'']; 
preg_match("| 

(.+?)
 
|is", @file_get_contents(''http://www.php.cn/modules/agent/serv/pages/domain_whois.jsp?domainnamewhois=''.$domain.''&nocode=nocode''), $whois); 
echo $whois[1]; 
?> 

做到这里,可能有的朋友要问了,这不就是简单的php脚本么?!哪是api接口阿;接着我们来加工一下,让查询方式更专业一些: 
我们需要的查询格式如下: 
http://api/whois/baidu.com 
其中baidu.com是需要查询的域名 
可以修改nginx的配置来实现这一点: 
复制代码 代码如下: 
location ~* /whois/(.+)$ { 
proxy_pass http://127.0.0.1:8080/whois/index.php?q=baidu.com 
#将查询传递给内网的apache处理 


ok,至此一个使用的whois api接口完成了,你可以自己的程序中调用,也可以共享给大家使用^_^!。 

php whois查询API制作方法_php技巧

php whois查询API制作方法_php技巧

这里我们从万网或新网的数据接口取得数据,透过php的简单文本处理再输出。

复制代码 代码如下:

$domain = $_GET[''q''];
preg_match("|
(.+?)

|is", @file_get_contents(''http://www.xinnet.cn/Modules/agent/serv/pages/domain_whois.jsp?domainNameWhois=''.$domain.''&noCode=noCode''), $whois);
echo $whois[1];
?>

做到这里,可能有的朋友要问了,这不就是简单的php脚本么?!哪是api接口阿;接着我们来加工一下,让查询方式更专业一些:
我们需要的查询格式如下:
http://api/whois/baidu.com
其中baidu.com是需要查询的域名
可以修改nginx的配置来实现这一点:
复制代码 代码如下:

location ~* /whois/(.+)$ {
proxy_pass http://127.0.0.1:8080/whois/index.php?q=baidu.com
#将查询传递给内网的apache处理
}

ok,至此一个使用的whois api接口完成了,你可以自己的程序中调用,也可以共享给大家使用^_^!。
查询baidu.com的结果:
Whois Server Version 2.0
Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.
Domain Name: BAIDU.COM
Registrar: REGISTER.COM, INC.
Whois Server: whois.register.com
Referral URL: http://www.register.com
Name Server: DNS.BAIDU.COM
Name Server: NS2.BAIDU.COM
Name Server: NS3.BAIDU.COM
Name Server: NS4.BAIDU.COM
Status: clientTransferProhibited
Status: serverDeleteProhibited
Status: serverTransferProhibited
Status: serverUpdateProhibited
Updated Date: 15-mar-2010
Creation Date: 11-oct-1999
Expiration Date: 11-oct-2014
>>> Last update of whois database: Fri, 20 Aug 2010 05:42:12 UTC 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.
The data in Register.com''s WHOIS database is provided to you by
Register.com for information purposes only, that is, to assist you in
obtaining information about or related to a domain name registration
record. Register.com makes this information available “as is,” and
does not guarantee its accuracy. By submitting a WHOIS query, you
agree that you will 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 direct mail, electronic mail, or by
telephone; or (2) enable high volume, automated, electronic processes
that apply to Register.com (or its systems). The compilation,
repackaging, dissemination or other use of this data is expressly
prohibited without the prior written consent of Register.com.
Register.com reserves the right to modify these terms at any time.
By submitting this query, you agree to abide by these terms.
Registrant:
Beijing Baidu Netcom Science and Technology Co.Ltd.
Baidu Netcom Baidu Netcom
No. 10, Shangdi 10th Street, Haidian District,
Beijing, 100085
CN
Phone: +86.1059926680
Email: domainmaster@baidu.com
Registrar Name….: Register.com
Registrar Whois…: whois.register.com
Registrar Homepage: www.register.com
Domain Name: baidu.com
Created on…………..: 1999-10-11
Expires on…………..: 2014-10-11
Administrative Contact:
Beijing Baidu Netcom Science and Technology Co.Ltd.
Baidu Netcom Baidu Netcom
No. 10, Shangdi 10th Street, Haidian District,
Beijing, 100085
CN
Phone: +86.1059927440
Email: wumengyi@baidu.com
Technical Contact:
Registercom
Domain Registrar
575 8th Avenue
New York, NY 10018
US
Phone: +1.9027492701
Email: domainregistrar@register.com
DNS Servers:
ns3.baidu.com
ns2.baidu.com
ns4.baidu.com
dns.baidu.com
Visit AboutUs.org for more information about baidu.com
AboutUs: baidu.com
Register your domain name at http://www.register.com

我们今天的关于什么是whois查询?whois查询可以干什么?whois查询什么意思的分享已经告一段落,感谢您的关注,如果您想了解更多关于IPwhois查询,域名whois查询、IP地址查询:Whois查询与域名反查详解、php whois查询API制作方法、php whois查询API制作方法_php技巧的相关信息,请在本站查询。

本文标签:

上一篇whois是干什么的?whois域名查询如何样?(whois 域名)

下一篇QuickStart系列:docker部署之Gitlab本地代码仓库(gitlab docker部署)