whois:
作用:查询域名是否被注册,以及注册的详细信息,如域名所有人、域名注册商、域名注册日期和过期日期等的工具,这样很方便就能查询自己喜欢的域名是否被注册了,
其他:除了程序包命令外,也可以通过一些网站来查询域名是否被注册过,比如万网等
安装:linux中默认没有安装此工具,因此需要额外的安装
centos下安装:
[root@server ~]# yum install -y jwhois Loaded plugins: fastestmirror, refresh-packagekit Loading mirror speeds from cached hostfile * base: mirrors.btte.net * extras: mirrors.neusoft.edu.cn * updates: mirrors.sina.cn Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package jwhois.x86_64 0:4.0-19.el6 set to be updated --> Finished Dependency Resolution Dependencies Resolved ============================================================================================ Package Arch Version Repo ============================================================================================ Installing: jwhois x86_64 4.0-19.el6 base Transaction Summary ============================================================================================ Install 1 Package(s) Upgrade 0 Package(s) Total download size: 104 k Installed size: 294 k Downloading Packages: jwhois-4.0-19.el6.x86_64.rpm Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : jwhois-4.0-19.el6.x86_64 Installed: jwhois.x86_64 0:4.0-19.el6 Complete!
[root@server ~]# whois baidu.com [Querying whois.verisign-grs.com] [Redirected to whois.markmonitor.com] [Querying whois.markmonitor.com] [whois.markmonitor.com] Domain Name: baidu.com Registry Domain ID: 11181110_DOMAIN_COM-VRSN Registrar WHOIS Server: whois.markmonitor.com Registrar URL: http://www.markmonitor.com Updated Date: 2015-09-10T02:04:54-0700 Creation Date: 1999-10-11T04:05:17-0700 Registrar Registration Expiration Date: 2017-10-11T00:00:00-0700 Registrar: MarkMonitor, Inc. Registrar IANA ID: 292 Registrar Abuse Contact Email: abusecomplaints@markmonitor.com Registrar Abuse Contact Phone: +1.2083895740 Domain Status: clientUpdateProhibited (https://www.icann.org/epp#clientUpdateProhibited) Domain Status: clientTransferProhibited (https://www.icann.org/epp#clientTransferProhibited) Domain Status: clientDeleteProhibited (https://www.icann.org/epp#clientDeleteProhibited) Domain Status: serverUpdateProhibited (https://www.icann.org/epp#serverUpdateProhibited) Domain Status: serverTransferProhibited (https://www.icann.org/epp#serverTransferProhibited) Domain Status: serverDeleteProhibited (https://www.icann.org/epp#serverDeleteProhibited) Registry Registrant ID: Registrant Name: Zhiyong Duan Registrant Organization: Beijing Baidu Netcom Science Technology Co., Ltd. Registrant Street: 3F Baidu Campus No.10, Shangdi 10th Street Haidian District Registrant City: Beijing Registrant State/Province: Beijing Registrant Postal Code: 100085 Registrant Country: CN Registrant Phone: +86.1059924216 Registrant Phone Ext: Registrant Fax: +86.1059927435 Registrant Fax Ext: Registrant Email: domainmaster@baidu.com Registry Admin ID: Admin Name: Zhiyong Duan Admin Organization: Beijing Baidu Netcom Science Technology Co., Ltd. Admin Street: 3F Baidu Campus No.10, Shangdi 10th Street Haidian District Admin City: Beijing Admin State/Province: Beijing Admin Postal Code: 100085 Admin Country: CN Admin Phone: +86.1059924216 Admin Phone Ext: Admin Fax: +86.1059927435 Admin Fax Ext: Admin Email: domainmaster@baidu.com Registry Tech ID: Tech Name: Zhiyong Duan Tech Organization: Beijing Baidu Netcom Science Technology Co., Ltd. Tech Street: 3F Baidu Campus No.10, Shangdi 10th Street Haidian District Tech City: Beijing Tech State/Province: Beijing Tech Postal Code: 100085 Tech Country: CN Tech Phone: +86.1059924216 Tech Phone Ext: Tech Fax: +86.1059927435 Tech Fax Ext: Tech Email: domainmaster@baidu.com Name Server: ns4.baidu.com Name Server: ns3.baidu.com Name Server: ns2.baidu.com Name Server: dns.baidu.com Name Server: ns7.baidu.com DNSSEC: unsigned URL of the ICANN WHOIS Data Problem Reporting System: http://wdprs.internic.net/ >>> Last update of WHOIS database: 2016-05-02T16:49:23-0700 <<< The Data in MarkMonitor.com‘s WHOIS database is provided by MarkMonitor.com for information purposes, and to assist persons in obtaining information about or related to a domain name registration record. MarkMonitor.com 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 e-mail (spam); or (2) enable high volume, automated, electronic processes that apply to MarkMonitor.com (or its systems). MarkMonitor.com reserves the right to modify these terms at any time. By submitting this query, you agree to abide by this policy. MarkMonitor is the Global Leader in Online Brand Protection. MarkMonitor Domain Management(TM) MarkMonitor Brand Protection(TM) MarkMonitor AntiPiracy(TM) MarkMonitor AntiFraud(TM) Professional and Managed Services Visit MarkMonitor at http://www.markmonitor.com Contact us at +1.8007459229 In Europe, at +44.02032062220 For more information on Whois status codes, please visit #但是有的后缀域名就是查询不出来结果,识别不出来结果 [whois.internic.net] 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. No match for domain "WWW.LINUXEDU.TOP". >>> Last update of whois database: Mon, 02 May 2016 23:49:33 GMT <<< 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.
Debian/Ubuntu下安装whois命令
whois命令的配置文件:
查询:
/etc/jwhois.conf /usr/bin/jwhois /usr/bin/whois /usr/share/doc/jwhois-4.0 /usr/share/doc/jwhois-4.0/AUTHORS /usr/share/doc/jwhois-4.0/COPYING /usr/share/doc/jwhois-4.0/ChangeLog /usr/share/doc/jwhois-4.0/NEWS /usr/share/doc/jwhois-4.0/README /usr/share/doc/jwhois-4.0/TODO /usr/share/info/jwhois.info.gz
/etc/jwhois.conf是配置文件,默认的情况下,配置文件中支持顶级通用域名以及国别域名,但是查询其他的后缀的域名,就需要做出相应的修改,也可以下载配置好的配置文件
[root@server ~]# mv /etc/jwhois.conf /etc/jwhois.conf.bak [root@server ~]# wget --no-check-certificate https://raw.githubusercontent.com/jonasob/jwhois/master/example/jwhois.conf -O /etc/jwhois.conf --2016-05-03 08:18:40-- https://raw.githubusercontent.com/jonasob/jwhois/master/example/jwhois.conf 正在解析主机 raw.githubusercontent.com... 103.245.222.133 正在连接 raw.githubusercontent.com|103.245.222.133|:443... 已连接。 警告: 证书通用名 “www.github.com” 与所要求的主机名 “raw.githubusercontent.com” 不符。 已发出 HTTP 请求,正在等待回应... 200 OK 长度:72365 (71K) [text/plain] 正在保存至: “/etc/jwhois.conf” 100%[=================================================>] 72,365 --.-K/s in 0.1s 2016-05-03 08:18:42 (500 KB/s) - 已保存 “/etc/jwhois.conf” [72365/72365])
测试是否能够查询
[root@server ~]# whois linuxedu.top [Querying whois.nic.top] [whois.nic.top] Domain Name: linuxedu.top Domain ID: D20160415G10001G_63585896-TOP WHOIS Server: http://whois.hichina.com/ Referral URL: http://www.net.cn Updated Date: 2016-04-15T15:11:14Z Creation Date: 2016-04-15T15:11:13Z Registry Expiry Date: 2017-04-15T15:11:13Z Sponsoring Registrar: Alibaba Cloud Computing Ltd. d/b/a HiChina (www.net.cn) Sponsoring Registrar IANA ID: 1599 Domain Status: ok https://www.icann.org/epp#OK Registrant ID: hc8790950441643 Registrant Name: Xue Long Registrant Organization: Xue Long Registrant Street: 3/F.,HiChina Mansion,No.27 Gulouwai Avenueu Registrant City: Beijing Registrant State/Province: Beijing Registrant Postal Code: 100120 Registrant Country: CN Registrant Phone: +86.1065985888 Registrant Phone Ext: Registrant Fax: +86.1065985438 Registrant Fax Ext: Registrant Email: 1451032707@qq.com Admin ID: hichina002-wh Admin Name: YinSi BaoHu Yi KaiQi (Hidden by Whois Privacy Protection Service) Admin Organization: YinSi BaoHu Yi KaiQi (Hidden by Whois Privacy Protection Service) Admin Street: 3/F.,HiChina Mansion,No.27 Gulouwai Avenue Admin City: Beijing Admin State/Province: Beijing Admin Postal Code: 100120 Admin Country: CN Admin Phone: +86.1065985888 Admin Phone Ext: Admin Fax: +86.1065985438 Admin Fax Ext: Admin Email: YuMing@YinSiBaoHu.AliYun.com Tech ID: hichina002-wh Tech Name: YinSi BaoHu Yi KaiQi (Hidden by Whois Privacy Protection Service) Tech Organization: YinSi BaoHu Yi KaiQi (Hidden by Whois Privacy Protection Service) Tech Street: 3/F.,HiChina Mansion,No.27 Gulouwai Avenue Tech City: Beijing Tech State/Province: Beijing Tech Postal Code: 100120 Tech Country: CN Tech Phone: +86.1065985888 Tech Phone Ext: Tech Fax: +86.1065985438 Tech Fax Ext: Tech Email: YuMing@YinSiBaoHu.AliYun.com Name Server: dns9.hichina.com Name Server: dns10.hichina.com DNSSEC: unsigned >>> Last update of WHOIS database: 2016-05-03T00:14:14Z <<< 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: The information in the Whois database is collected through ICANN-accredited registrars. Jiangsu bangning science & technology Co., Ltd(“BANGNING”) make this information available to you and do not guarantee its accuracy or completeness. 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) to allow, enable, or otherwise support the transmission of mass unsolicited, commercial advertising or solicitations via direct mail, electronic mail, or by telephone; (2) in contravention of any applicable data and privacy protection acts; or (3) to enable high volume, automated, electronic processes that apply to BANGNING (or its computer systems). Compilation, repackaging, dissemination, or other use of the WHOIS database in its entirety, or of a substantial portion thereof, is not allowed without BANGNING prior written permission. 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. BANGNING reserves the right to restrict your access to the whois database in its sole discretion to ensure operational stability. BANGNING may restrict or terminate your access to the whois database for failure to abide by these terms of use. BANGNING reserves the right to modify these terms at any time without prior or subsequent notification of any kind.
这样就能够识别出来了
当然,你也可以手动的修改配置文件
更多的域名后缀名支持请参考网站:http://www.iana.org/domains/root/db
一些简单的使用方法
[root@server ~]# whois 192.168.1.110 [Querying whois.iana.org] [whois.iana.org] % IANA WHOIS server % for more information on IANA, visit http://www.iana.org % This query returned 1 object inetnum: 192.168.0.0 - 192.168.255.255 organisation: IANA status: assigned remarks: http://www.iana.org/go/rfc1918 changed: 1994-03 source: IANA
whois有一些简单的选项,用的不多,大家可以使用man whois查看使用方法
本文出自 “Touch Dream” 博客,请务必保留此出处http://xuelong.blog.51cto.com/10573089/1769576
原文地址:http://xuelong.blog.51cto.com/10573089/1769576