|
发表于 2017-2-13 22:53:16
|
显示全部楼层
whois 本身这不就是开源的命令行工具么?为什么要造轮子?
```
WHOIS(1) BSD General Commands Manual WHOIS(1)
NAME
whois -- Internet domain name and network number directory service
SYNOPSIS
whois [-aAbdgiIlmQrR6] [-c country-code | -h host] [-p port] name ...
DESCRIPTION
The whois utility looks up records in the databases maintained by several Network Information Centers (NICs).
The options are as follows:
-6 Use the IPv6 Resource Center (6bone) database. It contains network names and addresses for the IPv6 network.
-A Use the Asia/Pacific Network Information Center (APNIC) database. It contains network numbers used in East Asia, Australia, New Zealand, and the Pacific islands.
-a Use the American Registry for Internet Numbers (ARIN) database. It contains network numbers used in those parts of the world covered neither by APNIC nor by RIPE.
(Hint: All point of contact handles in the ARIN whois database end with "-ARIN".)
-b Use the Network Abuse Clearinghouse database. It contains addresses to which network abuse should be reported, indexed by domain name.
-c country-code
This is the equivalent of using the -h option with an argument of "country-code.whois-servers.net".
-d Use the US Department of Defense database. It contains points of contact for subdomains of .MIL.
-g Use the US non-military federal ** database, which contains points of contact for subdomains of .GOV.
-h host
Use the specified host instead of the default variant. Either a host name or an IP address may be specified.
By default whois constructs the name of a whois server to use from the top-level domain (TLD) of the supplied (single) argument, and appending ".whois-servers.net".
This effectively allows a suitable whois server to be selected automatically for a large number of TLDs.
In the event that an IP address is specified, the whois server will default to the American Registry for Internet Numbers (ARIN). If a query to ARIN references APNIC,
LACNIC, or RIPE, that server will be queried also, provided that the -Q option is not specified.
If the query is not a domain name or IP address, whois will fall back to whois.crsnic.net.
-I Use the Internet Assigned Numbers Authority (IANA) database. It contains network information for top-level domains.
-i Use the Network Solutions Registry for Internet Numbers (whois.networksolutions.com) database. It contains network numbers and domain contact information for most of
.COM, .NET, .ORG and .EDU domains.
``` |
|