QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2811|回复: 7

linux命令之whois

[复制链接]
发表于 2005-2-22 11:29:02 | 显示全部楼层 |阅读模式
昨天偶然试了一下 whois 命令, 觉得很有意思, 特搜集一番与大家共享

   WHOIS  域名查询工具
   WHOIS, 顾名思义, 就是问"他是谁?", 我们通过对域名的检索, 可以反馈回域名的注册信息, 包括持有人, 管理资料以及技术联络资料, 也包括该域名的域名服务器. 但是在世界上有几个主要的WHOIS服务器, 他们是 whois.RIPE.net whois.LACNIC.net whois.APNIC.net whois.ARIN.net 他们分别在各大洲. WHOIS 在查询时是逐级查询,
  比方当我们查询blogchina.com的时候通过亚洲的服务器whois.APNIC.net,它会返回新的WHOIS服务器的地址给我们:whois.melbourneit.com,而后,我们再通过 whois.melbourneit.com进行WHOIS的查询.如果还有新的WHOIS服务器的存在,继续往下查询,最终他会返回如下的信息
[dhm@yqsz temp]$whois blogchina.com
[Querying whois.internic.net]
[Redirected to whois.melbourneit.com]
[Querying whois.melbourneit.com]
[whois.melbourneit.com]

Domain Name.......... blogchina.com
  Creation Date........ 2002-08-20
  Registration Date.... 2003-11-08
  Expiry Date.......... 2005-08-20
  Organisation Name.... fang xing dong
  Organisation Address. No.341, Building 3,
  Organisation Address. Tsinghua, Haidian District
  Organisation Address. beijing
  Organisation Address. 100084
  Organisation Address. beijing
  Organisation Address. CHINA

Admin Name........... Fang xingdong
  Admin Address........ No.341, Building 3,
  Admin Address........ Tsinghua, Haidian District
  Admin Address........ beijing
  Admin Address........ 100084
  Admin Address........ beijing
  Admin Address........ CHINA
  Admin Email.......... [email protected]
  Admin Phone.......... 86-10-82251828
  Admin Fax............ 86-10-82252185

Tech Name............ Fang xingdong
  Tech Address......... No.341, Building 3,
  Tech Address......... Tsinghua, Haidian District
  Tech Address......... beijing
  Tech Address......... 100084
  Tech Address......... beijing
  Tech Address......... CHINA
  Tech Email........... [email protected]
  Tech Phone........... 86-10-82251828
  Tech Fax............. 86-10-82252185
  Name Server.......... dns.blogchina.com
  Name Server.......... dns2.blogchina.com

  WHOIS服务器一般打开43号端口进行监听,当用户有链接的时候,并且用户发送类似与blogchina.com的字符的时候,它会对blogchina.com进行检索,返回信息给用户.

  如果有时只知道IP地址, 而且这个IP地址没有DOMAIN NAME的话, 则先将IP地址分等级,
再向WHOIS服务器查询, (以下网址作为范例, 均为虚构, 如有雷同, 实属巧合)例如:
   
  若IP为:15.4.75.2
  这是一个A类地址, 则查询15.0即可.

  若IP为:141.111.32.53
  这是B类地址, 则查询两次, 第一次查询:141.111.0, 第二次再查询141.111.32

  若IP为203.66.35.1
  这是C类地址, 则查询三次, 第一次查询203.0, 第二次查询203.66.0, 第三次查询203.66.35.0
发表于 2005-2-22 17:22:22 | 显示全部楼层
[code:1][root@BOoRFGOnZ Asian_Firestorm]# whois linuxfans.org
[Querying whois.publicinterestregistry.net]
[whois.publicinterestregistry.net]
NOTICE: Access to .ORG WHOIS information is provided to assist persons in
determining the contents of a domain name registration record in the PIR
registry database. The data in this record is provided by Public Interest Registry
for informational purposes only, and PIR does not guarantee its
accuracy.  This service is intended only for query-based access.  You agree
that you will use this data only for lawful purposes and that, under no
circumstances will you use this data to: (a) allow, enable, or otherwise
support the transmission by e-mail, telephone, or facsimile of mass
unsolicited, commercial advertising or solicitations to entities other than
the data recipient's own existing customers; or (b) enable high volume,
automated, electronic processes that send queries or data to the systems of
Registry Operator or any ICANN-Accredited Registrar, except as reasonably
necessary to register domain names or modify existing registrations.  All
rights reserved. PIR reserves the right to modify these terms at any
time. By submitting this query, you agree to abide by this policy.

Domain ID:D89994950-LROR
Domain Name:LINUXFANS.ORG
Created On:05-Sep-2002 20:28:19 UTC
Last Updated On:23-Oct-2004 02:55:01 UTC
Expiration Date:05-Sep-2005 20:28:47 UTC
Sponsoring Registrar:eNom Inc. (R39-LROR)
Status:OK
Registrant ID:72428A9B17C80F81
Registrant Name:Yang Mo
Registrant Organization:China Linux Fans Club
Registrant Street1:Rm 5 Brian Pippard Building
Registrant Street2:
Registrant Street3:
Registrant City:Cambridge
Registrant State/Province:
Registrant Postal Code:CB3 9AL
Registrant Country:GB
Registrant Phone:
Registrant Phone Ext.:
Registrant FAX:
Registrant FAX Ext.:
Registrant Email:[email protected]
Admin ID:72428A9B17C80F81
Admin Name:Yang Mo
Admin Organization:China Linux Fans Club
Admin Street1:Rm 5 Brian Pippard Building
Admin Street2:
Admin Street3:
Admin City:Cambridge
Admin State/Province:
Admin Postal Code:CB3 9AL
Admin Country:GB
Admin Phone:
Admin Phone Ext.:
Admin FAX:
Admin FAX Ext.:
Admin Email:[email protected]
Tech ID:72428A9B17C80F81
Tech Name:Yang Mo
Tech Organization:China Linux Fans Club
Tech Street1:Rm 5 Brian Pippard Building
Tech Street2:
Tech Street3:
Tech City:Cambridge
Tech State/Province:
Tech Postal Code:CB3 9AL
Tech Country:GB
Tech Phone:
Tech Phone Ext.:
Tech FAX:
Tech FAX Ext.:
Tech Email:[email protected]
Name Server:DNS1.NAME-SERVICES.COM
Name Server:DNS2.NAME-SERVICES.COM
Name Server:DNS3.NAME-SERVICES.COM
Name Server:DNS4.NAME-SERVICES.COM
Name Server:DNS5.NAME-SERVICES.COM
Name Server:
Name Server:
Name Server:
Name Server:
Name Server:
Name Server:
Name Server:
Name Server:


[root@BOoRFGOnZ Asian_Firestorm]#

[/code:1]
回复

使用道具 举报

发表于 2005-2-22 23:42:35 | 显示全部楼层
我记得好像rh9以后换成jwhois了,或者是fc以后,记不清了
回复

使用道具 举报

 楼主| 发表于 2005-2-23 10:10:03 | 显示全部楼层
确实, 在rh9中是jwhois,  但仍可用whois调出jwhois程序

[dhm@yqsz dhm]$ whois
jwhois version 3.2.2, Copyright (C) 1999-2003  Free Software Foundation, Inc.
This program is free software with ABSOLUTELY NO WARRANTY; you may
redistribute it under the terms of the GNU General Public License.

Usage: jwhois [OPTIONS] [QUERY]
  --version                  display version number and patch level
.......
回复

使用道具 举报

发表于 2005-2-24 00:23:06 | 显示全部楼层
lrwxrwxrwx    1 root     root            6 2004-07-06  /usr/bin/whois -> jwhois
回复

使用道具 举报

发表于 2005-3-7 19:25:02 | 显示全部楼层
[quote:dd5bd2b9a3="cnhnln"]我记得好像rh9以后换成jwhois了,或者是fc以后,记不清了[/quote]


签名真不错,怎么写的啊
回复

使用道具 举报

发表于 2005-3-7 20:18:01 | 显示全部楼层
用手写的
回复

使用道具 举报

发表于 2005-3-8 07:41:51 | 显示全部楼层
好用的命令!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-10-3 07:29 , Processed in 0.041801 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表