2011-03-30 58 views
2

如今,只要您使用WHOIS命令,不會返回任何有用的信息。我通常必須去Godaddy,Dnsstuff或其他服務來獲取數據。我明白原因主要是由於垃圾郵件。WHOIS命令不返回有用的信息?

我只是想知道其他服務如何獲得這些數據。他們是否使用不同類型的WHOIS命令?

+0

哈哈..我會粉筆,直到一個SO臭蟲..上次我看,這是0% - 無論是在這個網頁和點擊通過。我會刪除評論,但我會離開它,以防萬一開發者看起來:) – 2011-03-30 02:17:08

+0

我已經在ServerFault上回答http://serverfault.com/questions/253451/whois-command-not-returning-useful-information/ 253566#253566 – 2011-03-30 09:26:40

+2

我投票結束這個問題,因爲它不是關於[help/on-topic]中定義的編程問題。 – robinCTS 2017-11-22 20:44:05

回答

1

裸露的whois當Network Solutions不再是唯一註冊域名的地方時,將停止返回完整記錄。現在它的功能更像DNS,其中的東西可以讓你找到權威信息的地方,如果你需要的話,你必須去那裏看看。

機智:

% whois stackoverflow.com 
[Querying whois.verisign-grs.com] 
[whois.verisign-grs.com] 
    ... 
    Domain Name: STACKOVERFLOW.COM 
    Registrar: GODADDY.COM, INC. 
    Whois Server: whois.godaddy.com 
    ... 

% whois [email protected] 
[Querying whois.godaddy.com] 
[whois.godaddy.com] 
... 
Registrant: 
    Stack Overflow Internet Services, Inc. 
    1010 Disk Drive 
    ...etc... 

其他服務在註冊域名的企業,從他們的域名註冊得到他們的信息。

+0

我收到錯誤消息,「沒有whois服務器對這種對象是已知的。」 – zylstra 2017-09-09 20:04:46

+0

@zylstra這個問題在六年前得到了回答,當時是準確的。從那時起事情就有了變化。 – Blrfl 2017-09-11 17:32:26

+0

@Blrfl現在做這個的新方法是什麼?我已經在這裏嘗試了所有的答案,它似乎只是查詢whois兩次。 – Leggy 2017-10-03 21:44:28

3

這是the answer I posted on ServerFault


簡短的回答你的問題,假設你使用Debian/Ubuntu的WHOIS查詢庫,就是用

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

這裏是長答案。

.COM TLD是Thin 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&

上面的命令正是我所解釋的。它不是通過google.com向Verisign發送完整查詢「domain google.com」。您必須顯式傳遞-h標誌,因爲Whois會嘗試猜測主機名以從查詢中進行查詢,但會失敗,因爲它無法將查詢「domain 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. 
1

雖然新的「厚」 WHOIS政策要求所有新通用頂級域名註冊管理機構厚厚的登記,目前一些現有註冊(如.com和.net)尚未轉換到「厚」 WHOIS和仍然使用瘦登記。 - https://whois.icann.org/en/primer

.com和.net,使用註冊表的薄結果從一個簡單的whois命令來查找註冊商的whois服務器。

例如,

# 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 
    DNSSEC: unsigned 
    URL of the ICANN Whois Inaccuracy Complaint Form: https://www.icann.org/wicf/ 
>>> Last update of whois database: 2017-09-12T18:51:08Z <<< 

For more information on Whois status codes, please visit https://icann.org/epp 
... 

然後查詢註冊商厚的結果。

例如,

# whois google.com -h whois.markmonitor.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: 2017-09-07T08:50:36-0700 
Creation Date: 1997-09-15T00:00:00-0700 
Registrar Registration Expiration Date: 2020-09-13T21:00:00-0700 
Registrar: MarkMonitor, Inc. 
Registrar IANA ID: 292 
Registrar Abuse Contact Email: [email protected] 
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: DNS Admin 
Registrant Organization: Google Inc. 
Registrant Street: 1600 Amphitheatre Parkway, 
Registrant City: Mountain View 
Registrant State/Province: CA 
... 

在我看來,(雖然我不覺得現在確定的whois命令歷史記錄),在某一點上的whois命令修改爲不自動查詢厚度註冊商結果來自初始瘦註冊表信息。

+0

至於最後一句話,這取決於您使用哪個whois客戶端。有各種策略,請參閱https://unix.stackexchange.com/a/407030/211833 – 2018-01-04 15:52:59

+0

嗯,當然是。 – zylstra 2018-01-05 20:04:22