WHOIS是一个基于TCP的查询和响应协议,通常用于为互联网用户提供信息服务。 它返回有关注册域名,IP地址块,Nameservers和更广泛的信息服务的信息。
在Linux中, whois命令行实用程序是一个WHOIS客户端,与WHOIS服务器(或数据库主机)进行通信,该服务器监听众所周知的端口号43上的请求,该端口号以可读的格式存储和传送数据库内容。
另请参阅 : 10 Linux Dig(域信息搜索)命令来查询DNS
whois命令行实用程序没有预安装在许多Linux发行版上,请运行以下相应的命令,以便您的发行版进行安装。
# yum install whois #RHEL/CentOS # dnf install whois #Fedora 22+ $ sudo apt install whois #Debian/Ubuntu
如何查找IP地址信息
要获取有关特定IP地址的信息,请按照下面的示例中所示执行命令。
$ whois 216.58.206.46 # # ARIN WHOIS data and services are subject to the Terms of Use # available at: https://www.arin.net/whois_tou.html # # If you see inaccuracies in the results, please report at # https://www.arin.net/public/whoisinaccuracy/index.xhtml # # # The following results may also be obtained via: # https://whois.arin.net/rest/nets;q=216.58.206.46?showDetails=true&showARIN=false&showNonArinTopLevelNet=false&ext=netref2 # NetRange: 216.58.192.0 - 216.58.223.255 CIDR: 216.58.192.0/19 NetName: GOOGLE NetHandle: NET-216-58-192-0-1 Parent: NET216 (NET-216-0-0-0-0) NetType: Direct Allocation OriginAS: AS15169 Organization: Google LLC (GOGL) RegDate: 2012-01-27 Updated: 2012-01-27 Ref: https://whois.arin.net/rest/net/NET-216-58-192-0-1 OrgName: Google LLC OrgId: GOGL Address: 1600 Amphitheatre Parkway City: Mountain View StateProv: CA PostalCode: 94043 Country: US RegDate: 2000-03-30 Updated: 2017-12-21 Ref: https://whois.arin.net/rest/org/GOGL ...
如何查找域信息
要获取有关注册域的信息,只需使用域名发出以下命令即可。 它将检索域数据,包括可用性,所有权,创建,到期细节,Nameservers等。
$ whois google.com Domain Name: GOOGLE.COM Registry Domain ID: 2138514_DOMAIN_COM-VRSN Registrar WHOIS Server: whois.markmonitor.com Registrar URL: http://www.markmonitor.com Updated Date: 2011-07-20T16:55:31Z Creation Date: 1997-09-15T04:00:00Z Registry Expiry Date: 2020-09-14T04:00:00Z Registrar: MarkMonitor Inc. Registrar IANA ID: 292 Registrar Abuse Contact Email: [email protected] Registrar Abuse Contact Phone: +1.2083895740 Domain Status: clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited Domain Status: clientUpdateProhibited https://icann.org/epp#clientUpdateProhibited Domain Status: serverDeleteProhibited https://icann.org/epp#serverDeleteProhibited Domain Status: serverTransferProhibited https://icann.org/epp#serverTransferProhibited Domain Status: serverUpdateProhibited https://icann.org/epp#serverUpdateProhibited Name Server: NS1.GOOGLE.COM Name Server: NS2.GOOGLE.COM Name Server: NS3.GOOGLE.COM Name Server: NS4.GOOGLE.COM ....
信息的格式将根据所使用的WHOIS服务器而有所不同。 此外,WHOIS的一个缺点是缺乏对数据的完全访问权限,因此请查看以下用于查询Linux中的DNS信息的有用指南:
如果您有任何疑问或有关您想与我们分享的文章的信息,请使用下面的评论表单。