1.明确设置域选项:

1.明确设置域选项:

无论何时使用 WHOIS 命令都不会返回任何有用的信息。我通常必须去 GoDaddy、Dnsstuff 或其他服务来获取数据。我知道原因主要是垃圾邮件。

我只是想知道其他服务如何获取这些数据。他们使用不同类型的 WHOIS 命令吗?还对 WHOIS 命令生成的一些数据感到困惑,这些数据只是垃圾邮件。例如,生成whois google.com垃圾邮件网站,例如GOOGLE.COM.ZZZZZZ.THE.BEST.WEBHOSTING.AT.WWW.FATUCH.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.

GOOGLE.COM.ZZZZZZ.THE.BEST.WEBHOSTING.AT.WWW.FATUCH.COM
GOOGLE.COM.WORDT.DOOR.VEEL.WHTERS.GEBRUIKT.SERVERTJE.NET
GOOGLE.COM.UY
GOOGLE.COM.UA
GOOGLE.COM.TW
GOOGLE.COM.TR
GOOGLE.COM.SA
GOOGLE.COM.PE
GOOGLE.COM.MX
GOOGLE.COM.DO
GOOGLE.COM.CO
GOOGLE.COM.CN
GOOGLE.COM.BR
GOOGLE.COM.AU
GOOGLE.COM.AR
GOOGLE.COM.AFRICANBATS.ORG
GOOGLE.COM

To single out one record, look it up with "xxx", where xxx is one of the
of the records displayed above. If the records are the same, look them up
with "=xxx" to receive a full display for each record.

>>> Last update of whois database: Wed, 30 Mar 2011 03:07:59 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.

答案1

假设您正在使用 debian/ubuntu whois 库,那么对您的问题的简短回答是使用

$ whois -h whois.crsnic.net "domain google.com"

以下是详细答案。

.COM TLD 是精简 WHOIS。当您执行 WHOIS 查询时,WHOIS 工具首先向 Verisign(主机名 whois.crsnic.net)发送 WHOIS 查询,并从响应中提取引荐。

默认情况下,当您从域 example.com 查询 Verisign 时,Whois 会在几个不同的对象(包括域名、注册商名称和名称服务器)中对字符串“example.com”执行非常广泛的搜索。

您可以通过指定关键字来优化查询,如 Verisign 文档中所述。 http://registrar.verisign-grs.com/whois/iframe/help.html?ppath=www.verisigninc.com/products-and-services/domain-name-services/whois&

上述命令的作用与我所解释的完全一致。它向 Verisign 发送完整查询“域 google.com”而不是 google.com。您必须明确传递 -h 标志,因为 Whois 会尝试从查询中猜测要查询的主机名,但它会失败,因为它不会将查询“域 google.com”识别为有效域。

这是该命令的结果。

$ whois -h whois.crsnic.net "domain google.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: GOOGLE.COM
   Registrar: MARKMONITOR INC.
   Whois Server: whois.markmonitor.com
   Referral URL: http://www.markmonitor.com
   Name Server: NS1.GOOGLE.COM
   Name Server: NS2.GOOGLE.COM
   Name Server: NS3.GOOGLE.COM
   Name Server: NS4.GOOGLE.COM
   Status: clientDeleteProhibited
   Status: clientTransferProhibited
   Status: clientUpdateProhibited
   Status: serverDeleteProhibited
   Status: serverTransferProhibited
   Status: serverUpdateProhibited
   Updated Date: 15-sep-2010
   Creation Date: 15-sep-1997
   Expiration Date: 14-sep-2011

>>> Last update of whois database: Wed, 30 Mar 2011 08:50:16 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.

答案2

你要求的是所有记录类型,而不仅仅是domain记录。来自whois help

默认情况下,WHOIS 会执行非常广泛的搜索,查找所有记录类型在以下字段中查找与您的查询匹配的内容:域名、名称服务器名称、名称服务器 IP 地址和注册商名称。使用关键字缩小搜索范围。

以下关键字将搜索限制在数据库中特定类型的字段:域查找域名记录。查找域名、注册商名称、whois 服务器和 URL、名称服务器名称和 IP 地址以及更新日期。

有两种可能的解决方法:

1.明确设置域选项:

 whois "domain google.com"

2. 使用仅返回“域名”结果的 whois 主机

whois -h geektools.com google.com 

为什么您的 whois 结果中会有垃圾信息,以及如何清除它们了解更多信息。

答案3

当您请求 google.com 的 WHOIS 信息时,它会在所有记录中搜索“google.com”,而不是像您期望的那样将模式固定到末尾。

这取决于 WHOIS 客户端及其配置使用的服务器。几年前,我做了一些关于设置内部 WHOIS 服务的研究(我在大学工作,所以我们有很多小封地和很多网络),据我所知,数据格式几乎没有一致的结构,因此客户端必须采用大量启发式方法来找出引荐等。我猜 dnsstuff 和 godaddy 可能有更优化的启发式方法。所以你可能只是尝试不同的客户端。

答案4

在域名前以等号开头执行 whois 查询。您看到的只是注册处创建的纯粹的虚荣名称服务器,是无用的恶作剧(没有技术后果)。

相关内容