Next: , Previous: , Up: GNU Inetutils   [Contents][Index]


10 whois: User interface to WHOIS data bases.

The functionality of a world wide Internet is dependent on stored node information of different kinds. Registrars keep much relevant material in WHOIS data bases. This utility whois is able to query those sources for general and for particular properties of most domains.

For many domains there are names of suitable data base servers hard coded into whois, ready to query for domain relevant information. Since servers’ names do change from time to time, this utility might occasionally need some guidance using a suitable command line option.

Synopsis:

whois [OPTION…] OBJECT

10.1 Command line options

-a

Search all data bases.

-F

Fast and raw output. Implies -r.

-g source:first-last

Find updates for an object from provider source, starting from the version with serial key first, and ending with serial key last.

-h host
--server=host

Connect to server host.

-H

Hide legal disclaimers.

-i attr[,attr2…]

Do an inverse lookup for specified attributes. Use a comma separated list for multiple attributes.

-l

One level less specific lookup. Applies to RPSL only.

-L

Find all less specific matches.

-m

Find more specific matches, one level deeper.

-M

Find all more specific matches.

-p port

Connect to server port port.

-q {version|sources}

Query specified server info. Applies to RPSL only.

-r

Turn off recursive lookups.

-R

Force output to show local copy of the domain object, even if it contains a referral.

-s source[,source2…]

Search the data base at source. A comma separated list queries multiple providers.

-S

Tell server to refrain from syntactic sugar.

-t type

Request a template for objects of type type. Use the value ‘all’ for a list of possible types.

-T type[,type2…]

Search only for objects of type type. A comma separated list allows for multiple types.

-V
--verbose

Verbosely explain all actions taken.

-x

Search only for exact matches. Applicable only to RPSL.

10.2 Environment variables

whois holds an internal list of information servers and their assigned data bases. Queries are examined against this list to select the most plausible server, but the hint can always be overruled on the command line by use of the option -h. If neither of these have a say, then the default server to ask is ‘whois.internic.net’, but this name is in turn overruled by a server name in the environment variable WHOIS_SERVER.

LANG

When the server ‘whois.nic.ad.jp’ is queried, and only then, any non-Japanese locale in LANG will ask the server to reply with English text, not Japanese.

WHOIS_HIDE

When set, the effect on whois is as if the option -H had been given.

WHOIS_SERVER

Data base server to query when internal hinting is inconclusive. When unset, ‘whois.internic.net’ is used as default server.


Next: ftp: FTP client, Previous: traceroute: Trace the route to a host, Up: GNU Inetutils   [Contents][Index]