summaryrefslogtreecommitdiff
path: root/whois.1
blob: 0ed8ea2a23c72c5e82ad7d5138cfa050db2334f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
.TH "WHOIS" "1" "17 June 2019" "Marco d'Itri" "Debian GNU/Linux"
.SH "NAME"
whois \- client for the whois directory service
.SH "SYNOPSIS"
.B whois
[\~{\~\fB\-h\fP | \fB\-\-host\fP\~}\~\fIHOST\fP\~]
[\~{\~\fB\-p\fP | \fB\-\-port\fP\~}\~\fIPORT\fP\~]
[\~\fB\-abBcdGHKlLmMrRx\fP\~]
[\~\fB\-g\fP\~\fISOURCE:FIRST\-LAST\fP\~]
[\~\fB\-i\fP\~\fIATTR\fP[\fI,ATTR\fP]...\~]
[\~\fB\-s\fP\~\fISOURCE\fP[\fI,SOURCE\fP]...\~]
[\~\fB\-T\fP\~\fITYPE\fP[\fI,TYPE\fP]...\~]
[\~\fB\-\-verbose\fP\~]
.I OBJECT

.B whois
.B \-q
.I KEYWORD

.B whois
.B \-t
.I TYPE

.B whois
.B \-v
.I TYPE

.B whois
.B \-\-help

.B whois
.B \-\-version

.PP
.SH "DESCRIPTION"
\fBwhois\fP searches for an object in a \fIRFC\ 3912\fP database.

This version of the whois client tries to guess the right server to
ask for the specified object. If no guess can be made it will connect
to \fIwhois.networksolutions.com\fP for NIC handles or \fIwhois.arin.net\fP
for IPv4 addresses and network names.
.PP
.SH "OPTIONS"
.TP 8
.B \-h HOST, \-\-host HOST
Connect to HOST.
.TP 8
.B \-H
Do not display the legal disclaimers some registries like to show you.
.TP 8
.B \-p, \-\-port PORT
Connect to PORT.
.TP 8
.B \-\-verbose
Be verbose.
.TP 8
.B \-\-help
Display online help.
.TP 8
.B \-\-version
Display client version information.
.P
Other options are flags understood by \fIwhois.ripe.net\fP and some other
RIPE-like servers:
.TP 8
.B \-a
Also search all the mirrored databases.
.TP 8
.B \-b
Return brief IP address ranges with abuse contact.
.TP 8
.B \-B
Disable object filtering. (Show the e-mail addresses.)
.TP 8
.B \-c
Return the smallest IP address range with a reference to an irt object.
.TP 8
.B \-d
Return the reverse DNS delegation object too.
.TP 8
.B \-g SOURCE:FIRST\-LAST
Search updates from \fISOURCE\fP database between \fIFIRST\fP and \fILAST\fP
update serial number. It's useful to obtain Near Real Time Mirroring stream.
.TP 8
.B \-G
Disable grouping of associated objects.
.TP 8
.B \-i ATTR[,ATTR]...
Search objects having associated attributes. \fIATTR\fP is attribute name.
Attribute value is positional \fIOBJECT\fP argument.
.TP 8
.B \-K
Return primary key attributes only. Exception is \fImembers\fP attribute of
\fIset\fP object which is always returned. Another exceptions are all
attributes of objects \fIorganisation\fP, \fIperson\fP, and \fIrole\fP that
are never returned.
.TP 8
.B \-l
Return the one level less specific object.
.TP 8
.B \-L
Return all levels of less specific objects.
.TP 8
.B \-m
Return all one level more specific objects.
.TP 8
.B \-M
Return all levels of more specific objects.
.TP 8
.B -q KEYWORD
Return list of keywords supported by server. \fIKEYWORD\fP can be
\fIversion\fP for server version, \fIsources\fP for list of source databases,
or \fItypes\fP for object types.
.TP 8
.B \-r
Disable recursive look-up for contact information.
.TP 8
.B \-R
Disable following referrals and force showing the object from the local copy
in the server.
.TP 8
.B \-s SOURCE[,SOURCE]...
Request the server to search for objects mirrored from \fISOURCES\fP.
Sources are delimited by comma and the order is significant.
Use \fI-q sources\fP option to obtain list of valid sources.
.TP 8
.B \-t TYPE
Return the template for a object of \fITYPE\fP.
.TP 8
.B \-T TYPE[,TYPE]...
Restrict the search to objects of \fITYPE\fP. Multiple types are separated by
a comma.
.TP 8
.B -v TYPE
Return the verbose template for a object of \fITYPE\fP.
.TP 8
.B -x
Search for only exact match on network address prefix.
.SH "NOTES"
When querying the Verisign gTLDs (e.g. .com, .net...) thin registry servers
for a domain the program will automatically prepend the \fIdomain\fP
keyword to only show domain records.
The \fInameserver\fP or \fIregistrar\fP keywords must be used to show
other kinds of records.
.P
When querying \fIwhois.arin.net\fP for IPv4 or IPv6 networks, the CIDR
netmask length will be automatically removed from the query string.
.P
When querying \fIwhois.nic.ad.jp\fP for AS numbers, the program will
automatically convert the request in the appropriate format, inserting
a space after the string \fIAS\fP.
.P
When querying \fIwhois.denic.de\fP for domain names and no other
flags have been specified, the program will automatically add the flag
\fI\-T dn\fP.
.P
When querying \fIwhois.dk-hostmaster.dk\fP for domain names and no other
flags have been specified, the program will automatically add the flag
\fI\-\-show\-handles\fP.
.P
RIPE-specific command line options are ignored when querying non-RIPE
servers. This may or may not be the behaviour intended by the user.
When querying a non-standard server, command line options which are not
to be interpreted by the client should always follow the \fI\-\-\fP
separator (which marks the beginning of the query string).
.P
If the \fI/etc/whois.conf\fR configuration file exists, it will be consulted
to find a server before applying the normal rules. Each line of the
file should contain a regular expression to be matched against the query
text and the whois server to use, separated by white space.
IDN domains must use the ACE format.
.P
The whois protocol does not specify an encoding for characters which
cannot be represented by ASCII and implementations vary wildly.
If the program knows that a specific server uses a certain encoding,
if needed it will transcode the server output to the encoding specified
by the current system locale.
.P
Command line arguments will always be interpreted accordingly to the
current system locale and converted to the IDN ASCII Compatible Encoding.
.SH "FILES"
/etc/whois.conf
.SH "ENVIRONMENT"
.IP LANG
When querying \fIwhois.nic.ad.jp\fP and \fIwhois.jprs.jp\fP English text
is requested unless the \fILANG\fP or \fILC_MESSAGES\fP environment
variables specify a Japanese locale.
.IP "WHOIS_OPTIONS"
A list of options which will be evaluated before the ones specified on the
command line.
.IP "WHOIS_SERVER"
This server will be queried if the program cannot guess where some kind
of objects are located. If the variable does not exist then
\fIwhois.arin.net\fP will be queried.
.SH "SEE ALSO"
\fBwhois.conf\fP(5)
.PP
\fIRFC 3912\fP: WHOIS Protocol Specification
.PP
\fIRIPE Database Query Reference Manual:\fP
\fI<http://www.ripe.net/data-tools/support/documentation/ripe-database-query-reference-manual>\fP
.SH "BUGS"
The program may have buffer overflows in the command line parser:
be sure to not pass untrusted data to it.
It should be rewritten to use a dynamic strings library.
.SH "HISTORY"
This program closely tracks the user interface of the whois client
developed at RIPE by Ambrose Magee and others on the base of the
original BSD client.
.SH "AUTHOR"
.B Whois
and this man page were written by Marco d'Itri <\fImd@linux.it\fP>
and are licensed under the terms of the GNU General Public License,
version 2 or higher.