顶级域名的 Whois 列表及其对应的注册商

发布于 2024-08-27 23:53:21 字数 283 浏览 6 评论 0原文

我正在尝试查找相应 whois 服务器的 TLD 列表,例如

.com americanWhoisServer .net someOtherWhoisServer .au australianWhoisServer

最后,我的目标是类似字典的东西,其中键是 TLD,值是 whois 服务器地址(例如 whois.apnic.net)。

啊,天哪,我刚刚意识到我得到的是 IP 地址而不是域名,但列表仍然可以派上用场。

如何确定给定 IP 地址要使用哪个 whois 服务器?猜测并检查?

I'm trying to find a list of TLD's to their corresponding whois server, for example

.com americanWhoisServer
.net someOtherWhoisServer
.au australianWhoisServer

In the end i'm aiming for something like a Dictionary where the key is the TLD and the value is the whois server address (eg whois.apnic.net).

Ah snap, i just realised that i am given the IP addresses and not domain names but a list could still come in handy.

How can i determine which whois server to use given a IP address? Guess and check?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

万人眼中万个我 2024-09-03 23:53:22

不要使用静态的本地列表; whois 服务器可能会随时间变化(好吧,不是每天,但可能会发生);要查找给定域或 IP 的服务器,首先要查询 IANA whois 服务器,基本上,连接到 whois.iana.org:43 并发送后跟“\r\n”的查询字符串;例如“ibm.com\r\n”或“72.163.5.201\r\n”,IANA whois 服务器将返回包含“hint”,例如,对 72.163.5.201 的查询

% IANA WHOIS server 
% for more information on IANA, visit http://www.iana.org 
% This query returned 1 object

refer: whois.arin.net

inetnum: 72.0.0.0 - 72.255.255.255 organisation: ARIN status: ALLOCATED

whois: whois.arin.net

changed: 2004-08 source: IANA

现在将返回,解析搜索“whois:”条目的响应,提取负责该域名的 whois 服务器的名称IP 或域(本例中为 whois.arin.net)并使用该服务器重复查询;但请注意,在某些情况下(例如“com”域和 verisign whois 服务器),您得到的第二个答案可能会返回对另一个 whois 服务器的引用,例如,这是针对 verisign whois 的查询结果 在这种情况下,将返回 .com 域,

Domain Name: VERISIGN-GRS.COM
Registrar: CSC CORPORATE DOMAINS, INC.
Sponsoring Registrar IANA ID: 299
Whois Server: whois.corporatedomains.com
Referral URL: http://www.cscglobal.com/global/web/csc/digital-brand-services.html
Name Server: AV1.NSTLD.COM
Name Server: AV2.NSTLD.COM
Name Server: AV3.NSTLD.COM
Name Server: AV4.NSTLD.COM
Status: clientTransferProhibited https://www.icann.org/epp#clientTransferProhibited
Status: serverDeleteProhibited https://www.icann.org/epp#serverDeleteProhibited
Status: serverTransferProhibited https://www.icann.org/epp#serverTransferProhibited
Status: serverUpdateProhibited https://www.icann.org/epp#serverUpdateProhibited
Updated Date: 12-jan-2016
Creation Date: 08-sep-2000
Expiration Date: 08-sep-2016

您需要找到“Whois Server:”行,提取 whois 服务器名称(本例中为 whois.corporatedomains.com)并重复查询;最后需要注意的是,在某些情况下,即使服务器是您刚刚查询的服务器,也可能会返回“推荐”,因此您应该检查这样的条件以避免无限循环

Do not use a static, local list; whois servers may change in time (ok, not everyday, but it may happen); to find the server for a given domain or ip, start by querying the IANA whois server, basically, connect to whois.iana.org:43 and send the query string followed by "\r\n"; for example "ibm.com\r\n" or "72.163.5.201\r\n", the IANA whois server will then return an answer containing a "hint", for example, the query for 72.163.5.201 would return

% IANA WHOIS server 
% for more information on IANA, visit http://www.iana.org 
% This query returned 1 object

refer: whois.arin.net

inetnum: 72.0.0.0 - 72.255.255.255 organisation: ARIN status: ALLOCATED

whois: whois.arin.net

changed: 2004-08 source: IANA

now, parse the response searching for the "whois:" entry, extract the name of the whois server responsible for the IP or domain (whois.arin.net in this case) and repeat the query using that server; notice though, that in some cases (e.g. "com" domains and the verisign whois server) the second answer you'll get may return a referral to another whois server for example, here's the result of a query against the verisign whois for the verisign.com domain will return

Domain Name: VERISIGN-GRS.COM
Registrar: CSC CORPORATE DOMAINS, INC.
Sponsoring Registrar IANA ID: 299
Whois Server: whois.corporatedomains.com
Referral URL: http://www.cscglobal.com/global/web/csc/digital-brand-services.html
Name Server: AV1.NSTLD.COM
Name Server: AV2.NSTLD.COM
Name Server: AV3.NSTLD.COM
Name Server: AV4.NSTLD.COM
Status: clientTransferProhibited https://www.icann.org/epp#clientTransferProhibited
Status: serverDeleteProhibited https://www.icann.org/epp#serverDeleteProhibited
Status: serverTransferProhibited https://www.icann.org/epp#serverTransferProhibited
Status: serverUpdateProhibited https://www.icann.org/epp#serverUpdateProhibited
Updated Date: 12-jan-2016
Creation Date: 08-sep-2000
Expiration Date: 08-sep-2016

in such a case you'll need to locate the "Whois Server:" line, extract the whois server name (whois.corporatedomains.com in this case) and repeat the query; a last caveat, in some cases the "referral" may be returned even if the server is the one you just queried, so you should check such a condition to avoid an infinite loop

梦里寻她 2024-09-03 23:53:22

由于没有采用任何标准,每个 whois 客户端都有自己的获取此信息的方式。

GNU whois(在 Debian 上使用)有一个硬连线列表(不是配置文件,是编译时包含的文件,名为 tld_serv_list)。

FreeBSD 上的 whois 客户端使用在线(非官方)列表,该列表在 DNS 中维护,地址为 whois-servers.net:

% dig +short CNAME fr.whois-servers.net 
whois.nic.fr.
% dig +short CNAME in.whois-servers.net 
whois.inregistry.net.

Each whois client has its own way of getting this information, since no standard was ever adopted.

GNU whois (as used on Debian) has a hardwired list (not a configuration file, a file included at compile-time, named tld_serv_list).

The whois client on FreeBSD uses an online (unofficial) list, maintained in the DNS, at whois-servers.net:

% dig +short CNAME fr.whois-servers.net 
whois.nic.fr.
% dig +short CNAME in.whois-servers.net 
whois.inregistry.net.
如若梦似彩虹 2024-09-03 23:53:22

您可以在 http://www.iana 找到官方 IANA(互联网号码分配机构)列表.org/domains/root/db/ 是一个很好的起点/跳跃点。它列出了所有分配的 TLD 的 WHOIS(和域名服务器),并且是官方列表,但不以“易于导出的格式”提供

You might find the official IANA (Internet Assigned Numbers Authority) list at http://www.iana.org/domains/root/db/ a good starting/jumping off point. It lists the WHOIS (and nameservers) for all allocated TLDs and it's the official list, but not available in an "easy to export format"

別甾虛僞 2024-09-03 23:53:22

我定期从 IANAXML 格式的 PSLhttps ://github.com/whois-server-list/whois-server-list

该列表包含 900 多个顶级域名及其各自的 whois 服务器。此外,它还包括 300 多个二级域名。该列表经常更新。

I regularly compile such a list from IANA and PSL in XML: https://github.com/whois-server-list/whois-server-list

This list contains more than 900 top level domains and its respective whois servers. Additionally it includes more than 300 second level domains. The list gets updated frequently.

彼岸花ソ最美的依靠 2024-09-03 23:53:22

TLD 和 SLD 的服务器列表可在以下网址找到:https://whois.sld .ro/servers-list.html 以及唯一的根域 https:// www.iana.org/domains/root/db

SLD / TLD Whois Server Last modified
.aaa whois.nic.aaa 2020-10-28
.gov.af whois.nic.af 2020-10-28
.com.af whois.nic.af 2020-10-28
.org.af whois.nic.af 2020-10-28
.edu.af whois.nic.af 2020-10-28
.ai whois.nic.ai 2020-10-28
.off.ai whois.nic.ai 2020-10-28
.com.ai whois.nic.ai 2020-10-28
....

a list of servers for TLD and SLD can be found at the web address https://whois.sld.ro/servers-list.html and at the only root domains https://www.iana.org/domains/root/db

SLD / TLD Whois Server Last modified
.aaa whois.nic.aaa 2020-10-28
.gov.af whois.nic.af 2020-10-28
.com.af whois.nic.af 2020-10-28
.org.af whois.nic.af 2020-10-28
.edu.af whois.nic.af 2020-10-28
.ai whois.nic.ai 2020-10-28
.off.ai whois.nic.ai 2020-10-28
.com.ai whois.nic.ai 2020-10-28
....
回梦 2024-09-03 23:53:21

您可以从 http://data 获取官方 (?) TLD 列表。 iana.org/TLD/tlds-alpha-by-domain.txt,然后查询每个 tld 的 IANA whois 服务器(端口 43 处的 whois.iana.org)以获取有关它的信息。比 http://www.iana.org 上的 HTML tld 列表更便于导出和官方/domains/root/db/

You can get the official (?) tld list from http://data.iana.org/TLD/tlds-alpha-by-domain.txt and then query the IANA whois server (whois.iana.org at port 43) for each tld to get information about it. Slightly more export-friendly and official than the HTML tld list at http://www.iana.org/domains/root/db/.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文