NetBSD/usr.bin/whois/whois.1

233 lines
6.8 KiB
Groff
Raw Normal View History

1999-09-03 17:51:28 +04:00
.\" $NetBSD: whois.1,v 1.11 1999/09/03 13:51:28 itojun Exp $
.\"
.\" Copyright (c) 1985, 1990, 1993
.\" 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.
.\" 3. All advertising materials mentioning features or use of this software
.\" must display the following acknowledgement:
.\" This product includes software developed by the University of
.\" California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\" 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
.\"
1995-09-01 01:51:32 +04:00
.Dd June 20, 1994
1993-07-28 00:21:42 +04:00
.Dt WHOIS 1
.Os
1993-03-21 12:45:37 +03:00
.Sh NAME
.Nm whois
.Nd TCP/IP Internet directory service, RIPE version
1993-03-21 12:45:37 +03:00
.Sh SYNOPSIS
.Nm ""
1999-09-03 17:51:28 +04:00
.Op Fl 46aFSrR
.Op Fl h Ar host
.Op Fl p Ar port
.Op Fl i Ar attributes
.Op Fl s Ar sources
.Op Fl T Ns Ar \ types
.Op Fl L | m | M
.Ar identifier
.Nm whois
.Fl t Ar type
.Nm whois
.Fl v Ar type
1993-03-21 12:45:37 +03:00
.Sh DESCRIPTION
.B whois
searches for an object in the RIPE Network Management database.
The key can be either a name (such as "Karrenberg"),a nic-handle
(such as "DK58"),
a network number ("192.87.45.0/24") or a domain name ("ripe.net").
This version of the whois client works with a version of the RIPE
database whois server that supports classless IP addresses.
All IP network numbers are considered classless IP network numbers of
the form prefix/length, like 192.87.45.0/24 for a class C sized network
number and 128.86.0.0/16 for a class B sized network number. Any
length can be given. If no length is given, the server assumes a host
lookup (ie length 32).
By default, the server will return the first less specific network
number, which can be an exact match if available in the database.
.Sh OPTIONS
.TP 8
.B \-a
This causes the server to include information from
non-RIPE whois databases in the reply. Currently these are the public
parts of the US NIC and NSFnet databases. Please note that the RIPE
NCC does not maintain these databases. The information is included for
for your convenience only.
.TP 8
.B \-F
fast output. Force the whois server to not reformat the output. This
can save time for large objects. The output of the RIPE whois server
will be in two letter short form. This option implies -r.
.TP 8
.B \-h host
Select alternate host to direct the query
.TP 8
.B \-p port
Connect to port 'port'
.TP 8
.B \-L
lookup all less specific networks. Has effect only when looking up IP
network numbers.
.TP 8
.B \-m
lookup first level more specific networks. Has effect only when
looking up IP network numbers.
.TP 8
.B \-M
lookup all more specific networks. Has effect only when looking up IP
network numbers.
.TP 8
.B \-r
non-recursive lookup. This will cause the server to not lookup
referenced objects.
.TP 8
.B \-R
suppress referrals. Forces local copy of a domain object to be shown
even if it contains referral.
.TP 8
.B \-i attributes
attributes is a comma separated list of attributes.
the whois server will return all objects that match the search keys
in one of these attributes.
.TP 8
.B \-s sources
sources is a comma separated list of database sources.
The whois server will only search the databases that match the
specified sources.
.TP 8
.B \-S
requests the server to leave out "syntactic sugar" that may normally
be inserted in some database objects.
.TP 8
.B \-t type
requests the server to send a template for an object with type "type".
.TP 8
.B \-v type
requests the server to send a verbose template for an object with type "type".
.TP 8
.B \-T types
types is a comma separated list of object types.
requests the server to only send back objects that match one of the "types".
1999-09-03 17:51:28 +04:00
By default, whois connect to whois server both IPv6 and IPv4. If you want
to connect IPv4 only, you use
.B \-4
option, and if you want to connect IPv6 only, you use
.B \-6
option.
.TP 8
.Lp
.Sh EXAMPLES
.IP
.B example% whois karrenberg
.IP
person: Daniel Karrenberg
.br
address: RIPE Network Coordination Centre
.br
address: Kruislaan 409
.br
address: NL-1098 SJ Amsterdam
.br
address: Netherlands
.br
phone: +31 20 5925065
.br
fax-no: +31 20 5925155
.br
e-mail: dfk@ripe.net
.br
nic-hdl: DK58
.br
changed: dfk@ripe.net 920407
.br
changed: ripe-dbm@ripe.net 920407
.br
source: RIPE
.IP
.B example% whois -h whois.ripe.net -r 192.87.45.0/24
.IP
inetnum: 192.87.45.0
.br
netname: RIPE-NCC
.br
descr: RIPE Network Coordination Centre
.br
descr: Amsterdam, Netherlands
.br
country: NL
.br
admin-c: Daniel Karrenberg
.br
tech-c: Marten Terpstra
.br
connect: RIPE NSF WCW
.br
aut-sys: AS3333
.br
ias-int: 192.87.45.80 AS1104
.br
ias-int: 192.87.45.6 AS2122
.br
ias-int: 192.87.45.254 AS2600
.br
rev-srv: ns.ripe.net
.br
rev-srv: ns.eu.net
.br
notify: ops@ripe.net
.br
changed: tony@ripe.net 940110
.br
source: RIPE
.Lp
.Sh RIPE VERSION
This is the RIPE version of the whois client program.
For questions refer
to <ncc@ripe.net>. For more information about the RIPE database please also
refer to <ncc@ripe.net>.
.Lp
1999-09-03 17:51:28 +04:00
.Sh IPv6 supported
This whois support the IPv6
.Pq IP version 6
whois connections.
This whois is get the all of host's Information from nameserver, and
connect order is
.Pq if exists
IPv6 addresses of server at first and IPv4 address is later.
.Lp
.Sh BUGS
Most of the extra flags are ONLY supported by the RIPE whois server,
or copies of the same version of the software. Usage of these flags
may cause errors on other whois servers.
1999-09-03 17:51:28 +04:00
.Nm
depends on
.Xr getaddrinfo 3
functions and search order depends on the function.
.\".Sh SEE ALSO
.\"RFC 812: NICNAME/WHOIS