← 返回命令列表

Linux command

whois 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Look up domain registration info

whois [example.com]

Look up IP address info

whois [8.8.8.8]

Query a specific WHOIS server

whois -h [whois.verisign-grs.com] [example.com]

Look up AS number

whois [AS15169]

Disable recursive lookups

whois -r [example.com]

说明

whois queries databases for domain name registration information, IP address allocation, and autonomous system (AS) numbers. It provides details about domain ownership, registration dates, name servers, and contact information. For domain names, whois contacts the appropriate registry (based on TLD) to retrieve registration data. For IP addresses, it queries regional internet registries (ARIN, RIPE, APNIC, etc.). The data returned includes registrant information (often privacy-protected), registration and expiration dates, name servers, and registrar details. Different registries have different data formats and levels of detail. Some domains use privacy services that mask the actual registrant information.

参数

-h _host_, --host _host_
Query the specified WHOIS server instead of guessing it from the object.
-p _port_, --port _port_
Connect to the given TCP port (default: 43).
-H
Hide the legal disclaimers that some registries show.
-r
Disable recursive lookups for contact information (RIPE-style servers).
-I
Query whois.iana.org first and then follow its referral.
-a
Also search all the mirrored databases (RIPE).
-T _type_
Restrict the search to objects of the given type (e.g. _inetnum_, _person_).
-B
Disable object filtering; include e-mail addresses in results.
-R
Disable following referrals; show the object from the local copy.
--verbose
Verbose output; show which server is being queried.

FAQ

What is the whois command used for?

whois queries databases for domain name registration information, IP address allocation, and autonomous system (AS) numbers. It provides details about domain ownership, registration dates, name servers, and contact information. For domain names, whois contacts the appropriate registry (based on TLD) to retrieve registration data. For IP addresses, it queries regional internet registries (ARIN, RIPE, APNIC, etc.). The data returned includes registrant information (often privacy-protected), registration and expiration dates, name servers, and registrar details. Different registries have different data formats and levels of detail. Some domains use privacy services that mask the actual registrant information.

How do I run a basic whois example?

Run `whois [example.com]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -h _host_, --host _host_ do in whois?

Query the specified WHOIS server instead of guessing it from the object.