【问题标题】:Domain name Whois: how to find contact information?域名 Whois:如何查找联系信息?
【发布时间】:2016-06-23 15:39:30
【问题描述】:

我将此代码片段用于 Whois 信息:

org.apache.commons.net.whois.WhoisClient whois = new org.apache.commons.net.whois.WhoisClient();
whois.connect("whois.verisign-grs.com", 43);

String domainWhois = whois.query(domainName);

whois.disconnect();

我获得了创建、到期日期、注册商和名称服务器,但没有与管理或技术联系人相关的数据。有什么办法可以得到吗?

【问题讨论】:

  • 根据这个question,也许尝试不同的whois服务器。
  • 试试 whois.connect(whois.DEFAULT_HOST);
  • whois.iana.org 服务器为所有域返回相同的联系人:VeriSign 全球注册服务。 whois.connect(whois.DEFAULT_HOST);不提供任何额外信息。
  • whois.verisign-grs.com 提供 thin whois 服务。您需要在注册商的 whois 服务器上再次查询该域(注册商及其 whois 服务器将在威瑞信返回的记录中给出)。
  • @ajcr - 它有效,谢谢。您可以将其发布为答案。

标签: java dns domain-name whois


【解决方案1】:

通常,查找特定 .com 或 .net 域的所有者/管理员需要执行两次 WHOIS 查找。

威瑞信是这些顶级域的注册机构。您问题中的代码是正确的,因为您必须在 whois.verisign-grs.com 上查询服务器。

但是,您应该知道这是thin WHOIS 服务。这意味着服务器只会向您发送有关注册商(注册域名的公司)以及到期日期、名称服务器等的信息。

以 stackoverflow.com 为例,Verisign 告诉您注册商是 NAME.COM INC(我使用的是在基于 Unix 的系统上找到的 whois 程序,为了清楚起见,用 -h 指定主机) :

$ whois -h whois.verisign-grs.com stackoverflow.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: STACKOVERFLOW.COM
   Registrar: NAME.COM, INC.
   Sponsoring Registrar IANA ID: 625
   Whois Server: whois.name.com
   Referral URL: http://www.name.com
   Name Server: NS-1033.AWSDNS-01.ORG
   Name Server: NS-1543.AWSDNS-00.CO.UK
   Name Server: NS-358.AWSDNS-44.COM
   Name Server: NS-739.AWSDNS-28.NET
   Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited
   Updated Date: 08-jun-2016
   Creation Date: 26-dec-2003
   Expiration Date: 26-dec-2016

[...]

如果您想查看有关实际拥有该域的公司或个人的信息,您需要将查询发送到注册商的 WHOIS 服务器。在这种情况下,查询必须转到 whois.name.com:

$ whois -h whois.name.com stackoverflow.com

Domain Name: STACKOVERFLOW.COM 
Registry Domain ID: 108907621_DOMAIN_COM-VRSN 
Registrar WHOIS Server: whois.name.com 
Registrar URL: http://www.name.com 
Updated Date: 2016-06-08T04:23:11Z 
Creation Date: 2003-12-26T19:18:07Z 
Registrar Registration Expiration Date: 2016-12-26T19:18:07Z 
Registrar: Name.com, Inc. 
Registrar IANA ID: 625 
Reseller:  
Domain Status: clientTransferProhibited 
Registry Registrant ID:  
Registrant Name: Sysadmin Team 
Registrant Organization: Stack Exchange, Inc. 
Registrant Street: 110 William St , Floor 28 
Registrant City: New York 
Registrant State/Province: NY 
Registrant Postal Code: 10038 
Registrant Country: US 
Registrant Phone: +1.2122328280 
Registrant Email: sysadmin-team@stackoverflow.com

[...]

【讨论】:

    猜你喜欢
    • 2023-03-08
    • 2018-04-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-05-09
    • 1970-01-01
    • 1970-01-01
    • 2014-10-30
    相关资源
    最近更新 更多