OpenRDAP 是一个用 Go 实现的命令行 RDAP 客户端。

https://www.openrdap.org - 主页
https://www.openrdap.org/demo - 在线演示
功能特性
- 命令行 RDAP 客户端
- 输出格式:文本、JSON、WHOIS 风格
- 支持的查询类型:
- ip
- domain
- autnum
- nameserver
- entity
- help
- url
- domain-search
- domain-search-by-nameserver
- domain-search-by-nameserver-ip
- nameserver-search
- nameserver-search-by-ip
- entity-search
- entity-search-by-handle
- ip/domain/autnum/entities 的自动服务器检测
- 对象标签支持
- 启动缓存(可选,默认使用 $XDG_CACHE_HOME/openrdap,回退到 ~/.cache/openrdap)
- X.509 客户端认证
安装
本程序使用 Go 语言。Go 编译器可从 https://golang.org/ 获取。
安装方法:
go install github.com/openrdap/rdap/cmd/rdap@master
这会将 "rdap" 二进制文件安装到您的 $GOPATH/go/bin 目录中。尝试运行:
~/go/bin/rdap google.com
用法
| 查询类型 | 用法 |
|---|
| 域名 (.com) | rdap -v example.com |
| IPv4 地址 | rdap -v 192.0.2.0 |
| IPv6 地址 | rdap -v 2001:db8:: |
| 自治系统编号 (ASN) | rdap -v AS15169 |
| 实体(带对象标签) | rdap -v OPS4-RIPE |
高级用法(需使用 -s 指定服务器;并非所有服务器都支持所有查询类型)
| 查询类型 | 用法 |
|---|
| 域名服务器 | rdap -v -t nameserver -s https://rdap.verisign.com/com/v1 ns1.google.com |
| 帮助 | rdap -v -t help -s https://rdap.verisign.com/com/v1 |
| 域名搜索 | rdap -v -t domain-search -s $SERVER_URL example*.gtld |
| 域名搜索(按域名服务器) | rdap -v -t domain-search-by-nameserver -s $SERVER_URL ns1.example.gtld |
| 域名搜索(按 NS IP) | rdap -v -t domain-search-by-nameserver-ip -s $SERVER_URL 192.0.2.0 |
| 域名服务器搜索 | rdap -v -t nameserver-search -s $SERVER_URL ns1.example.gtld |
| 域名服务器搜索(按 IP) | rdap -v -t nameserver-search-by-ip -s $SERVER_URL 192.0.2.0 |
| 实体搜索 | rdap -v -t entity-search -s $SERVER_URL ENTITY-TAG |
| 实体搜索(按句柄) | rdap -v -t entity-search-by-handle -s $SERVER_URL ENTITY-TAG |
详情请参见 https://www.openrdap.org/docs。
输出示例
点击示例查看输出:
rdap example.com
```Domain:
Domain Name: EXAMPLE.COM
Handle: 2336799_DOMAIN_COM-VRSN
Status: client delete prohibited
Status: client transfer prohibited
Status: client update prohibited
Conformance: rdap_level_0
Conformance: icann_rdap_technical_implementation_guide_0
Conformance: icann_rdap_response_profile_0
Notice:
Title: Terms of Use
Description: Service subject to Terms of Use.
Link: https://www.verisign.com/domain-names/registration-data-access-protocol/terms-service/index.xhtml
Notice:
Title: Status Codes
Description: For more information on domain status codes, please visit https://icann.org/epp
Link: https://icann.org/epp
Notice:
Title: RDDS Inaccuracy Complaint Form
Description: URL of the ICANN RDDS Inaccuracy Complaint Form: https://icann.org/wicf
Link: https://icann.org/wicf
Link: https://rdap.verisign.com/com/v1/domain/EXAMPLE.COM
Event:
Action: registration
Date: 1995-08-14T04:00:00Z
Event:
Action: expiration
Date: 2023-08-13T04:00:00Z
Event:
Action: last changed
Date: 2023-05-12T15:13:35Z
Event:
Action: last update of RDAP database
Date: 2023-05-16T20:36:06Z
Secure DNS:
Delegation Signed: true
DSData:
Key Tag: 370
Algorithm: 13
Digest: BE74359954660069D5C63D200C39F5603827D7DD02B56F120EE9F3A86764247C
DigestType: 2
Entity:
Handle: 376
Public ID:
Type: IANA Registrar ID
Identifier: 376
Role: registrar
vCard version: 4.0
vCard fn: RESERVED-Internet Assigned Numbers Authority
Entity:
Role: abuse
vCard version: 4.0
Nameserver:
Nameserver: A.IANA-SERVERS.NET
Nameserver:
Nameserver: B.IANA-SERVERS.NET
```
rdap 8.8.8.8
```IP Network:
Handle: NET-8-8-8-0-1
Start Address: 8.8.8.0
End Address: 8.8.8.255
IP Version: v4
Name: LVLT-GOGL-8-8-8
Type: ALLOCATION
ParentHandle: NET-8-0-0-0-1
Status: active
Port43: whois.arin.net
Notice:
Title: Terms of Service
Description: By using the ARIN RDAP/Whois service, you are agreeing to the RDAP/Whois Terms of Use
Link: https://www.arin.net/resources/registry/whois/tou/
Notice:
Title: Whois Inaccuracy Reporting
Description: If you see inaccuracies in the results, please visit:
Link: https://www.arin.net/resources/registry/whois/inaccuracy_reporting/
Notice:
Title: Copyright Notice
Description: Copyright 1997-2023, American Registry for Internet Numbers, Ltd.
Entity:
Handle: GOGL
Port43: whois.arin.net
Remark:
Title: Registration Comments
Description: Please note that the recommended way to file abuse complaints are located in the following links.
Description: To report abuse and illegal activity: https://www.google.com/contact/
Description: For legal requests: http://support.google.com/legal
Description: Regards,
Description: The Google Team
Link: https://rdap.arin.net/registry/entity/GOGL
Link: https://whois.arin.net/rest/org/GOGL
Event:
Action: last changed
Date: 2019-10-31T15:45:45-04:00
Event:
Action: registration
Date: 2000-03-30T00:00:00-05:00
Role: registrant
vCard version: 4.0
vCard fn: Google LLC
vCard kind: org
Entity:
Handle: ABUSE5250-ARIN
Status: validated
Port43: whois.arin.net
Remark:
Title: Registration Comments
Description: Please note that the recommended way to file abuse complaints are located in the following links.
Description: To report abuse and illegal activity: https://www.google.com/contact/
Description: For legal requests: http://support.google.com/legal
Description: Regards,
Description: The Google Team
Link: https://rdap.arin.net/registry/entity/ABUSE5250-ARIN
Link: https://whois.arin.net/rest/poc/ABUSE5250-ARIN
Event:
Action: last changed
Date: 2022-10-24T08:43:11-04:00
Event:
Action: registration
Date: 2015-11-06T15:36:35-05:00
Role: abuse
vCard version: 4.0
vCard fn: Abuse
vCard org: Abuse
vCard kind: group
vCard email: [email protected]
vCard tel: +1-650-253-0000
Entity:
Handle: ZG39-ARIN
Status: validated
Port43: whois.arin.net
Link: https://rdap.arin.net/registry/entity/ZG39-ARIN
Link: https://whois.arin.net/rest/poc/ZG39-ARIN
Event:
Action: last changed
Date: 2022-11-10T07:12:44-05:00
Event:
Action: registration
Date: 2000-11-30T13:54:08-05:00
Role: technical
Role: administrative
vCard version: 4.0
vCard fn: Google LLC
vCard org: Google LLC
vCard kind: group
vCard email: [email protected]
vCard tel: +1-650-253-0000
Link: https://rdap.arin.net/registry/ip/8.8.8.0
Link: https://whois.arin.net/rest/net/NET-8-8-8-0-1
Link: https://rdap.arin.net/registry/ip/8.0.0.0/9
Event:
Action: last changed
Date: 2014-03-14T16:52:05-04:00
Event:
Action: registration
Date: 2014-03-14T16:52:05-04:00
cidr0_cidrs:
v4prefix: 8.8.8.0
length: 24
```