3 个版本
0.1.2 | 2022年1月19日 |
---|---|
0.1.1 | 2021年12月25日 |
0.1.0 | 2021年12月24日 |
在 #domain-name 中排名 48
8KB
133 行
domainfo
显示域名或 IP 地址的信息。
安装
如果您已安装 cargo,可以简单地运行 cargo install domainfo
,或使用 cargo build --release
并将 ./target/release/netinfo
添加到您的路径中的某个位置(可能是 /usr/local/bin
)。
用法
只需运行 domainfo <查询>
其中 查询
是域名或 IP 地址。
$ domainfo 8.8.8.8
8.8.8.8 (8.8.8.0/24) is advertised by Google LLC (AS15169 ARIN US)
$ domainfo google.com
google.com has IPv4 142.250.187.238
142.250.187.238 (142.250.0.0/15) is advertised by Google LLC (AS15169 ARIN US)
$ domainfo github.com
github.com has IPv4 140.82.121.4
140.82.121.4 (140.82.121.0/24) is advertised by GitHub, Inc. (AS36459 ARIN US)
$ domainfo www.gov.uk
www.gov.uk has IPv4 151.101.0.144
151.101.0.144 (151.101.0.0/22) is advertised by Fastly (AS54113 ARIN US)
www.gov.uk has IPv4 151.101.64.144
151.101.64.144 (151.101.64.0/22) is advertised by Fastly (AS54113 ARIN US)
www.gov.uk has IPv4 151.101.128.144
151.101.128.144 (151.101.128.0/22) is advertised by Fastly (AS54113 ARIN US)
www.gov.uk has IPv4 151.101.192.144
151.101.192.144 (151.101.192.0/22) is advertised by Fastly (AS54113 ARIN US)
依赖关系
~9.5MB
~185K SLoC