2020-03-01 05:19:43 +03:00
|
|
|
.\" $NetBSD: whois.1,v 1.27 2020/03/01 02:19:43 sevan Exp $
|
|
|
|
.\" $OpenBSD: whois.1,v 1.36 2016/02/20 20:52:50 naddy Exp $
|
1994-11-14 08:13:14 +03:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1985, 1990, 1993
|
2020-03-01 05:19:43 +03:00
|
|
|
.\" The Regents of the University of California. All rights reserved.
|
1993-03-21 12:45:37 +03:00
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
2003-08-07 15:13:06 +04:00
|
|
|
.\" 3. Neither the name of the University nor the names of its contributors
|
1993-03-21 12:45:37 +03:00
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
.\" without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
1995-09-01 01:51:32 +04:00
|
|
|
.\" @(#)whois.1 8.2 (Berkeley) 6/20/94
|
1993-03-21 12:45:37 +03:00
|
|
|
.\"
|
2020-03-01 05:19:43 +03:00
|
|
|
.Dd March 1, 2020
|
1993-07-28 00:21:42 +04:00
|
|
|
.Dt WHOIS 1
|
1999-03-22 21:16:34 +03:00
|
|
|
.Os
|
1993-03-21 12:45:37 +03:00
|
|
|
.Sh NAME
|
|
|
|
.Nm whois
|
2003-10-09 18:21:49 +04:00
|
|
|
.Nd Internet domain name and network number directory service
|
1993-03-21 12:45:37 +03:00
|
|
|
.Sh SYNOPSIS
|
2003-10-09 18:21:49 +04:00
|
|
|
.Nm whois
|
2020-03-01 05:19:43 +03:00
|
|
|
.Op Fl AadfgIilmPQRr
|
2003-10-09 18:21:49 +04:00
|
|
|
.Oo
|
|
|
|
.Fl c Ar country-code | Fl h Ar host
|
|
|
|
.Oc
|
1999-05-19 02:36:36 +04:00
|
|
|
.Op Fl p Ar port
|
2020-03-01 05:19:43 +03:00
|
|
|
.Ar name ...
|
1993-03-21 12:45:37 +03:00
|
|
|
.Sh DESCRIPTION
|
2002-01-13 05:35:03 +03:00
|
|
|
The
|
1999-10-05 15:56:15 +04:00
|
|
|
.Nm
|
2003-10-09 18:21:49 +04:00
|
|
|
utility looks up records in the databases maintained by several
|
|
|
|
Network Information Centers
|
|
|
|
.Pq Tn NICs .
|
2002-01-13 05:35:03 +03:00
|
|
|
.Pp
|
2003-10-09 18:21:49 +04:00
|
|
|
The options are as follows:
|
|
|
|
.Bl -tag -width Ds
|
2003-10-11 13:06:03 +04:00
|
|
|
.It Fl A
|
|
|
|
Use the Asia/Pacific Network Information Center
|
|
|
|
.Pq Tn APNIC
|
|
|
|
database.
|
|
|
|
It contains network numbers used in East Asia, Australia,
|
|
|
|
New Zealand, and the Pacific islands.
|
2003-10-09 18:21:49 +04:00
|
|
|
.It Fl a
|
|
|
|
Use the American Registry for Internet Numbers
|
|
|
|
.Pq Tn ARIN
|
|
|
|
database.
|
|
|
|
It contains network numbers used in those parts of the world
|
2020-03-01 05:19:43 +03:00
|
|
|
covered neither by
|
2009-05-05 01:13:58 +04:00
|
|
|
.Tn AfriNIC ,
|
|
|
|
.Tn APNIC ,
|
2020-03-01 05:19:43 +03:00
|
|
|
.Tn LACNIC ,
|
|
|
|
nor by
|
2003-10-09 18:21:49 +04:00
|
|
|
.Tn RIPE .
|
2002-01-13 05:35:03 +03:00
|
|
|
.Pp
|
2003-10-09 18:21:49 +04:00
|
|
|
(Hint: All point of contact handles in the
|
|
|
|
.Tn ARIN
|
|
|
|
whois database end with
|
|
|
|
.Qq Li -ARIN . )
|
|
|
|
.It Fl c Ar country-code
|
|
|
|
This is the equivalent of using the
|
|
|
|
.Fl h
|
|
|
|
option with an argument of
|
|
|
|
.Qq Ar country-code Ns Li .whois-servers.net .
|
|
|
|
.It Fl d
|
|
|
|
Use the US Department of Defense database.
|
|
|
|
It contains points of contact for subdomains of
|
|
|
|
.Tn \&.MIL .
|
2007-09-09 22:31:45 +04:00
|
|
|
.It Fl f
|
|
|
|
Use the African Network Information Center
|
|
|
|
.Pq Tn AfriNIC
|
|
|
|
database.
|
2009-05-05 01:13:58 +04:00
|
|
|
It contains network numbers used in Africa.
|
2003-10-09 18:21:49 +04:00
|
|
|
.It Fl g
|
|
|
|
Use the US non-military federal government database, which contains points of
|
|
|
|
contact for subdomains of
|
|
|
|
.Tn \&.GOV .
|
2002-01-13 05:35:03 +03:00
|
|
|
.It Fl h Ar host
|
2003-10-09 18:21:49 +04:00
|
|
|
Use the specified host instead of the default NIC
|
|
|
|
(whois.crsnic.net).
|
|
|
|
Either a host name or an IP address may be specified.
|
2002-01-13 05:35:03 +03:00
|
|
|
.Pp
|
2003-10-09 18:21:49 +04:00
|
|
|
By default
|
2002-01-13 05:35:03 +03:00
|
|
|
.Nm
|
2003-10-09 18:21:49 +04:00
|
|
|
constructs the name of a whois server to use from the top-level domain
|
|
|
|
.Pq Tn TLD
|
2020-03-01 05:19:43 +03:00
|
|
|
of the supplied (single) argument.
|
|
|
|
For newer generic domains (gTLDs), a lookup for whois.nic.tld is attempted.
|
|
|
|
For other TLDs, or if this lookup fails,
|
|
|
|
.Qq Li .whois-servers.net
|
|
|
|
is appended to the TLD.
|
2003-10-09 18:21:49 +04:00
|
|
|
This effectively allows a suitable whois server to be selected
|
|
|
|
automatically for a large number of
|
|
|
|
.Tn TLDs .
|
|
|
|
.Pp
|
|
|
|
In the event that an IP
|
|
|
|
address is specified, the whois server will default to the American
|
|
|
|
Registry for Internet Numbers
|
|
|
|
.Pq Tn ARIN .
|
|
|
|
If a query to
|
|
|
|
.Tn ARIN
|
|
|
|
references
|
2007-09-09 22:31:45 +04:00
|
|
|
.Tn AfriNIC, APNIC , LACNIC ,
|
2003-10-09 18:21:49 +04:00
|
|
|
or
|
|
|
|
.Tn RIPE ,
|
|
|
|
that server will be queried also, provided that the
|
|
|
|
.Fl Q
|
|
|
|
option is not specified.
|
|
|
|
.Pp
|
|
|
|
If the query is not a domain name or IP address,
|
2002-01-13 05:35:03 +03:00
|
|
|
.Nm
|
2003-10-09 18:21:49 +04:00
|
|
|
will fall back to
|
|
|
|
.Pa whois.crsnic.net .
|
2020-03-01 05:19:43 +03:00
|
|
|
.It Fl I
|
|
|
|
Use the Internet Assigned Numbers Authority
|
|
|
|
.Pq whois.iana.org
|
|
|
|
root zone database.
|
|
|
|
It contains information about top-level domains.
|
2003-10-09 18:21:49 +04:00
|
|
|
.It Fl i
|
|
|
|
Use the Network Solutions Registry for Internet Numbers
|
|
|
|
.Pq Tn whois.networksolutions.com
|
|
|
|
database.
|
|
|
|
Historically, it contained network numbers and domain contact information
|
|
|
|
for most of
|
|
|
|
.Tn \&.COM ,
|
|
|
|
.Tn \&.NET ,
|
|
|
|
.Tn \&.ORG
|
|
|
|
and
|
|
|
|
.Tn \&.EDU
|
|
|
|
domains.
|
|
|
|
However, the registration of these domains is now done by a number of
|
|
|
|
independent and competing registrars and this database holds no information
|
|
|
|
on the domains registered by organizations other than Network Solutions, Inc.
|
|
|
|
Also, note that the
|
|
|
|
.Tn InterNIC
|
|
|
|
database
|
|
|
|
.Pq Pa whois.internic.net
|
|
|
|
is no longer handled by Network Solutions, Inc.
|
|
|
|
For details, see
|
2012-03-16 02:35:02 +04:00
|
|
|
.Lk http://www.internic.net/ .
|
2001-12-08 22:26:19 +03:00
|
|
|
.Pp
|
2003-10-09 18:21:49 +04:00
|
|
|
(Hint: Contact information, identified by the term
|
|
|
|
.Em handle ,
|
|
|
|
can be looked up by prefixing
|
|
|
|
.Qq Li \&!
|
|
|
|
or
|
|
|
|
.Qq Li handle\ \&
|
|
|
|
to the
|
|
|
|
.Tn NIC
|
|
|
|
handle in the query.)
|
|
|
|
.It Fl l
|
|
|
|
Use the Latin American and Caribbean IP address Regional Registry
|
|
|
|
.Pq Tn LACNIC
|
|
|
|
database.
|
|
|
|
It contains network numbers used in much of Latin America and the
|
|
|
|
Caribbean.
|
1999-10-05 15:56:15 +04:00
|
|
|
.It Fl m
|
2003-10-09 18:21:49 +04:00
|
|
|
Use the Route Arbiter Database
|
|
|
|
.Pq Tn RADB
|
|
|
|
database.
|
|
|
|
It contains route policy specifications for a large
|
|
|
|
number of operators' networks.
|
2020-03-01 05:19:43 +03:00
|
|
|
.It Fl P
|
|
|
|
Use the PeeringDB database of AS numbers.
|
|
|
|
It contains details about presence at internet peering points
|
|
|
|
for many network operators.
|
2003-10-09 18:21:49 +04:00
|
|
|
.It Fl p Ar port
|
|
|
|
Connect to the whois server on
|
|
|
|
.Ar port .
|
|
|
|
If this option is not specified,
|
|
|
|
.Nm
|
|
|
|
defaults to the
|
|
|
|
.Dq whois
|
|
|
|
port listed in
|
|
|
|
.Pa /etc/services
|
|
|
|
(port 43).
|
|
|
|
.It Fl Q
|
|
|
|
Do a quick lookup.
|
|
|
|
This means that
|
|
|
|
.Nm
|
2003-10-21 13:03:25 +04:00
|
|
|
will not attempt to lookup the name in the authoritative whois
|
2003-10-09 18:21:49 +04:00
|
|
|
server (if one is listed) nor will it contact InterNic if a lookup
|
|
|
|
fails.
|
|
|
|
This flag has no effect when combined with any other flag.
|
1999-10-05 15:56:15 +04:00
|
|
|
.It Fl R
|
2003-10-09 18:21:49 +04:00
|
|
|
Use the Russia Network Information Center
|
|
|
|
.Pq Tn RIPN
|
|
|
|
database.
|
|
|
|
It contains network numbers and domain contact information
|
|
|
|
for subdomains of
|
|
|
|
.Tn \&.RU .
|
|
|
|
This option is deprecated; use the
|
|
|
|
.Fl c
|
|
|
|
option with an argument of
|
|
|
|
.Qq Li RU
|
|
|
|
instead.
|
2003-10-11 13:06:03 +04:00
|
|
|
.It Fl r
|
|
|
|
Use the R\(aaeseaux IP Europ\(aaeens
|
|
|
|
.Pq Tn RIPE
|
2003-10-09 18:21:49 +04:00
|
|
|
database.
|
2003-10-11 13:06:03 +04:00
|
|
|
It contains network numbers and domain contact information for Europe.
|
1999-10-05 15:56:15 +04:00
|
|
|
.El
|
2003-10-09 18:21:49 +04:00
|
|
|
.Pp
|
|
|
|
The default action, unless directed otherwise with a special
|
|
|
|
.Ar name ,
|
|
|
|
is to do a very broad search, looking for matches to
|
|
|
|
.Ar name
|
|
|
|
in all types of records and most fields (name, nicknames, hostname, net
|
|
|
|
address, etc.) in the database.
|
|
|
|
For more information as to what
|
|
|
|
.Ar name
|
|
|
|
operands have special meaning, and how to guide the search, use
|
|
|
|
the special name
|
|
|
|
.Dq help .
|
|
|
|
.Ss Special cases
|
|
|
|
Queries beginning with an exclamation point
|
|
|
|
.Ql \&!
|
|
|
|
are assumed to be
|
|
|
|
.Tn NSI
|
|
|
|
contact handles.
|
|
|
|
Unless a host or domain is specified on the command line,
|
|
|
|
.Pq Tn whois.networksolutions.com
|
|
|
|
will be used as the
|
|
|
|
.Nm
|
|
|
|
database.
|
|
|
|
.Pp
|
|
|
|
Similarly, queries beginning with
|
|
|
|
.Dq COCO-
|
|
|
|
are assumed to be
|
|
|
|
.Tn CORE
|
|
|
|
contact handles.
|
|
|
|
Unless a host or domain is specified on the command line,
|
|
|
|
.Pq Tn whois.corenic.net
|
|
|
|
will be used as the
|
|
|
|
.Nm
|
|
|
|
database.
|
1999-05-19 02:36:36 +04:00
|
|
|
.Sh EXAMPLES
|
2003-10-09 18:21:49 +04:00
|
|
|
Most types of data, such as domain names and
|
|
|
|
.Tn IP
|
|
|
|
addresses, can be used as arguments to
|
|
|
|
.Nm
|
|
|
|
without any options, and
|
|
|
|
.Nm
|
|
|
|
will choose the correct whois server to query.
|
|
|
|
Some exceptions, where
|
|
|
|
.Nm
|
|
|
|
will not be able to handle data correctly, are detailed below.
|
2002-01-13 05:35:03 +03:00
|
|
|
.Pp
|
2003-10-09 18:21:49 +04:00
|
|
|
To obtain contact information about an
|
|
|
|
administrator located in the Russian
|
|
|
|
.Tn TLD
|
|
|
|
domain
|
|
|
|
.Qq Li RU ,
|
|
|
|
use the
|
|
|
|
.Fl c
|
|
|
|
option as shown in the following example, where
|
|
|
|
.Ar CONTACT-ID
|
|
|
|
is substituted with the actual contact identifier.
|
2002-01-13 05:35:03 +03:00
|
|
|
.Pp
|
2003-10-09 18:21:49 +04:00
|
|
|
.Dl "whois -c RU CONTACT-ID"
|
|
|
|
.Pp
|
|
|
|
(Note: This example is specific to the
|
|
|
|
.Tn TLD
|
|
|
|
.Qq Li RU ,
|
|
|
|
but other
|
|
|
|
.Tn TLDs
|
|
|
|
can be queried by using a similar syntax.)
|
|
|
|
.Pp
|
|
|
|
The following example demonstrates how to query
|
|
|
|
a whois server using a non-standard port, where
|
|
|
|
.Dq Li query-data
|
|
|
|
is the query to be sent to
|
|
|
|
.Dq Li whois.example.com
|
|
|
|
on port
|
|
|
|
.Dq Li rwhois
|
|
|
|
(written numerically as 4321).
|
|
|
|
.Pp
|
|
|
|
.Dl "whois -h whois.example.com -p rwhois query-data"
|
2020-03-01 05:19:43 +03:00
|
|
|
.Sh STANDARDS
|
2002-01-13 05:35:03 +03:00
|
|
|
.Rs
|
2020-03-01 05:19:43 +03:00
|
|
|
.%A K. Harrenstien
|
|
|
|
.%A M. Stahl
|
|
|
|
.%A E. Feinler
|
|
|
|
.%D October 1985
|
|
|
|
.%R RFC 954
|
2003-10-09 18:21:49 +04:00
|
|
|
.%T NICNAME/WHOIS
|
2020-03-01 05:19:43 +03:00
|
|
|
.Re
|
|
|
|
.Pp
|
|
|
|
.Rs
|
|
|
|
.%A L. Daigle
|
|
|
|
.%D September 2004
|
|
|
|
.%R RFC 3912
|
|
|
|
.%T WHOIS Protocol Specification
|
2002-01-13 05:35:03 +03:00
|
|
|
.Re
|
2003-10-09 18:21:49 +04:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
2002-01-13 14:16:52 +03:00
|
|
|
.Nm
|
2003-10-09 18:21:49 +04:00
|
|
|
command appeared in
|
|
|
|
.Bx 4.3 .
|