1WHOIS(1)                       Debian GNU/Linux                       WHOIS(1)
2
3
4

NAME

6       whois - client for the whois directory service
7

SYNOPSIS

9       whois  [  { -h | --host } HOST ] [ { -p | --port } PORT ] [ -abBcdGHIK‐
10       lLmMrRx ]  [  -g  SOURCE:FIRST-LAST  ]  [  -i  ATTR[,ATTR]...  ]  [  -s
11       SOURCE[,SOURCE]...  ] [ -T TYPE[,TYPE]... ] [ --verbose ] [ --no-recur‐
12       sion ] OBJECT
13
14       whois -q KEYWORD
15
16       whois -t TYPE
17
18       whois -v TYPE
19
20       whois --help
21
22       whois --version
23
24

DESCRIPTION

26       whois searches for an object in a RFC 3912 database.
27
28       This version of the whois client tries to guess the right server to ask
29       for  the  specified  object. If no guess can be made it will connect to
30       whois.networksolutions.com for NIC handles or whois.arin.net  for  IPv4
31       addresses and network names.
32

OPTIONS

34       -h HOST, --host=HOST
35               Connect to HOST.
36
37       -H      Do  not display the legal disclaimers that some registries like
38               to show you.
39
40       -p PORT, --port=PORT
41               Connect to PORT.
42
43       -I      First query whois.iana.org and then follow its referral to  the
44               whois  server authoritative for that request. This works for IP
45               addresses, AS numbers and domains.  BEWARE: this  implies  that
46               the IANA server will receive your complete query.
47
48       --no-recursion
49               Disable recursion from registry to registrar servers.
50
51       --verbose
52               Be verbose.
53
54       --help  Display online help.
55
56       --version
57               Display the program version.
58
59       Other  options  are  flags  understood by whois.ripe.net and some other
60       RIPE-like servers:
61
62       -a      Also search all the mirrored databases.
63
64       -b      Return brief IP address ranges with abuse contact.
65
66       -B      Disable objects filtering. (Show the e-mail addresses.)
67
68       -c      Return the smallest IP address range with a reference to an irt
69               object.
70
71       -d      Return the reverse DNS delegation object too.
72
73       -g SOURCE:FIRST-LAST
74               Search  updates from SOURCE database between FIRST and LAST up‐
75               date serial number. It is useful to obtain Near Real Time  Mir‐
76               roring stream.
77
78       -G      Disable grouping of associated objects.
79
80       -i ATTR[,ATTR]...
81               Inverse-search  objects  having associated attributes.  ATTR is
82               the attribute name, while the positional OBJECT argument is the
83               attribute value.
84
85       -K      Return primary key attributes only. An exception is the members
86               attribute of set objects, which is always returned. Another ex‐
87               ception  are all attributes of the objects organisation, person
88               and role, that are never returned.
89
90       -l      Return the one level less specific object.
91
92       -L      Return all levels of less specific objects.
93
94       -m      Return all one level more specific objects.
95
96       -M      Return all levels of more specific objects.
97
98       -q KEYWORD
99               Return information about the server.  KEYWORD  can  be  version
100               for  the  server  version,  sources  for  the  list of database
101               sources or types for the list of supported object types.
102
103       -r      Disable recursive lookups for contact information.
104
105       -R      Disable following referrals and force showing the  object  from
106               the local copy in the server.
107
108       -s SOURCE[,SOURCE]...
109               Request  the server to search for objects mirrored from SOURCE.
110               Sources are delimited by comma, and the order  is  significant.
111               Use the -q sources parameter to obtain a list of valid sources.
112
113       -t TYPE Return the template for a object of TYPE.
114
115       -T TYPE[,TYPE]...
116               Restrict  the  search  to  objects of TYPE.  Multiple types are
117               separated by a comma.
118
119       -v TYPE Return the verbose template for a object of TYPE.
120
121       -x      Search for only exact match on network address prefix.
122

NOTES

124       When querying the Verisign gTLDs (e.g.  .com,  .net...)  thin  registry
125       servers for a domain, the program will automatically prepend the domain
126       keyword to only show domain records.  The nameserver or registrar  key‐
127       words must be used to show other kinds of records.
128
129       When  querying  whois.arin.net for IPv4 or IPv6 networks, the CIDR net‐
130       mask length will be automatically removed from the query string.
131
132       When querying whois.nic.ad.jp for AS numbers, the program will automat‐
133       ically convert the request in the appropriate format, inserting a space
134       after the string AS.
135
136       When querying whois.denic.de for domain names and no other  flags  have
137       been specified, the program will automatically add the flag -T dn.
138
139       When  querying  whois.dk-hostmaster.dk  for  domain  names and no other
140       flags have been specified, the program will automatically add the  flag
141       --show-handles.
142
143       RIPE-specific  command  line options are ignored when querying non-RIPE
144       servers. This may or may not be the behaviour  intended  by  the  user.
145       When  using non-standard query parameters then the command line options
146       which are not to be interpreted by the client must follow the --  sepa‐
147       rator (which marks the beginning of the query string).
148
149       If  the /etc/whois.conf configuration file exists, it will be consulted
150       to find a server before applying the normal rules.  Each  line  of  the
151       file  should  contain  a  regular  expression to be matched against the
152       query text and the whois server to use, separated by white space.   IDN
153       domains must use the ACE format.
154
155       The  whois  protocol  does not specify an encoding for characters which
156       cannot be represented by ASCII and implementations vary wildly.  If the
157       program knows that a specific server uses a certain encoding, if needed
158       it will transcode the server output to the encoding  specified  by  the
159       current system locale.
160
161       Command  line  arguments  will always be interpreted accordingly to the
162       current system locale and converted to the IDN ASCII Compatible  Encod‐
163       ing.
164

FILES

166       /etc/whois.conf
167

ENVIRONMENT

169       LANG   When  querying whois.nic.ad.jp and whois.jprs.jp English text is
170              requested unless the LANG or LC_MESSAGES  environment  variables
171              specify a Japanese locale.
172
173       WHOIS_OPTIONS
174              A list of options which will be evaluated before the ones speci‐
175              fied on the command line.
176
177       WHOIS_SERVER
178              This server will be queried if the program  cannot  guess  where
179              some kind of objects are located. If the variable does not exist
180              then whois.arin.net will be queried.
181

SEE ALSO

183       whois.conf(5).
184
185       RFC 3912: WHOIS Protocol Specification.
186
187       RIPE         Database         Query          Reference          Manual:
188       <http://www.ripe.net/data-tools/support/documentation/ripe-data
189       base-query-reference-manual>
190

BUGS

192       The program may have buffer overflows in the command  line  parser:  be
193       sure to not pass untrusted data to it.  It should be rewritten to use a
194       dynamic strings library.
195

HISTORY

197       This program closely tracks the user interface of the whois client  de‐
198       veloped at RIPE by Ambrose Magee and others on the base of the original
199       BSD client.
200

AUTHOR

202       Whois and this man page were written by Marco d'Itri <md@linux.it>  and
203       are licensed under the terms of the GNU General Public License, version
204       2 or higher.
205
206
207
208
209Marco d'Itri                      2019-12-30                          WHOIS(1)
Impressum