Commit Graph

54 Commits

Author SHA1 Message Date
Warner Losh
fbbd9655e5 Renumber copyright clause 4
Renumber cluase 4 to 3, per what everybody else did when BSD granted
them permission to remove clause 3. My insistance on keeping the same
numbering for legal reasons is too pedantic, so give up on that point.

Submitted by:	Jan Schaumann <jschauma@stevens.edu>
Pull Request:	https://github.com/freebsd/freebsd/pull/96
2017-02-28 23:42:47 +00:00
Baptiste Daroussin
d10807ecab Add missing -width after -Bl -tag
Reported by:	make manlint
MFC after:	2 days
2017-02-11 23:36:52 +00:00
Tony Finch
c37dc1fb0b Example RIPE whois query with options and spaces.
Since it is used in the example, mention the -- option in the synopsis
even though it is a universal standard, and tweak to fit it on one line.
2016-04-25 15:46:42 +00:00
Tony Finch
6f4d88df9f A lot of the cleverness in whois is no longer needed!
The IANA whois server has the right referral information for domain
names, IP addresses, and AS numbers, so whois does not need to be
able to choose servers itself (except for a few cases where referrals
do not work). We can delete a chunk of code, which is always fun.

This change improves the referral handling to be less sensitive to
all the various formats, and to allow multi-hop referral chains,
such as IANA -> registry -> registrar.

ARIN queries have the "+" flag added if no flags are present, so we
get full details if the query matches multiple objects. The Verisign
anti-spam logic is also now suppressed if the user provided a non-
trivial query string.

Uninformative rubric is now trimmed by default. The -S option
turns off trimming, and disables query fettling.

The -i option is back to its traditional pre-1999 hostname, since
whois.internic.net is more useful than whois.networksolutions.com.
Note that the old fallback/default server whois.crsnic.net is an
alias for whois.internic.net.

The manual is more informative about query syntax.
2016-01-23 00:28:18 +00:00
Tony Finch
de80c945d2 Update whois synopsis and usage with new options 2016-01-22 19:06:43 +00:00
Benjamin Kaduk
70be6b9442 Bump .Dd after r294575 2016-01-22 17:17:27 +00:00
Tony Finch
52517c0a57 A few whois usability improvements
Look up AS numbers at ARIN.

Handle more referral formats.

Suppress spammy nameserver objects when querying the .com and .net
whois servers by explicitly querying for domain names by default.
2016-01-22 16:43:49 +00:00
Tony Finch
60214b7ff6 whois: add an option to query the PeeringDB 2015-05-14 11:37:36 +00:00
Tony Finch
315c9c163c Update whois(1) synopsis. 2015-05-14 11:33:31 +00:00
Tony Finch
a95cb27ce0 Bump whois(1) date.
(Thanks to bz@ for the reminder!)
2015-05-14 11:25:18 +00:00
Tony Finch
1326bf51e6 whois: try whois.nic.TLD if TLD.whois-servers.net does not exist
Based on an idea from OpenBSD.
2015-05-14 10:33:01 +00:00
Tony Finch
0279f129c6 whois: check WHOIS_SERVER as well as RA_SERVER environment variables
WHOIS_SERVER is used by Debian's whois client.
2015-05-14 10:32:35 +00:00
Tony Finch
8b6444e7e4 Clean up whois manual.
Document the RA_SERVER environment variable.

Remove the obsolete -R option, and discourage people from trying
to use the Network Solutions server.

Describe the default behaviour in the DESCRIPTION section,
not buried in the options.
2015-05-14 10:30:37 +00:00
Joel Dahl
7e700c30d2 mdoc: minor paragraph fixes. 2014-02-08 13:37:02 +00:00
Glen Barber
2fccbf04cc General mdoc(7) and typo fixes.
PR:		167696
Submitted by:	Nobuyuki Koganemaru (kogane!jp.freebsd.org)
MFC after:	3 days
2012-05-10 02:07:00 +00:00
Joel Dahl
da52b4caaf Remove the advertising clause from UCB copyrighted files in usr.bin. This
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change

Also add $FreeBSD$ to a few files to keep svn happy.

Discussed with:	imp, rwatson
2010-12-11 08:32:16 +00:00
Edwin Groothuis
3b81fe7712 Remove -d option, whois.nic.mil doesn't exist anymore.
PR:		bin/142507
Submitted by:	Dan Mahoney <danm@prime.gushi.org>
MFC after:	1 week
2010-01-14 10:40:54 +00:00
Doug Barton
85f67d6972 The 6bone was decommissioned on 6/6/06, so remove references to it. 2009-10-03 02:37:21 +00:00
Ruslan Ermilov
cb29445a92 Markup fixes. 2006-09-29 15:20:48 +00:00
John Hay
23639a23a8 Add AfriNIC as a RIR.
PR:		80421
Submitted by:	Adrian Frith <adrian at frith.homelinux.org>
MFC after:	6 days
2006-01-23 13:49:39 +00:00
Ceri Davies
8693799f41 Bump document date before ru gets me. 2004-12-11 13:14:54 +00:00
Ceri Davies
876b0a88dd Add a -k flag for querying whois.krnic.net (the National Internet
Development Agency of Korea) which hold details of IP address
allocations within Korea.

Approved by:	bms
2004-12-11 13:14:07 +00:00
Bruce M Simpson
fb6dad913a Add whois.abuse.net to whois(1).
Submitted by:	ceri (with cleanups)
2004-06-14 17:30:46 +00:00
Bruce M Simpson
939fca9bea Date bump.
Nudged by:	ru
Pointy hat:	bms
2004-06-14 14:49:44 +00:00
Bruce M Simpson
7138e3fe15 Add whois.iana.org to the whois(1) utility, under the -I option.
PR:		bin/48914
Submitted by:	James Raftery
2004-06-14 14:03:10 +00:00
Ruslan Ermilov
06e482e60a mdoc(7) police: markup polishing.
Approved by:	re
2002-11-26 17:33:37 +00:00
Mike Barcroft
a5d96e6d20 Add support for the Latin American and Caribbean IP address Regional
Registry (LACNIC) with the -l option and support for recursive IP
address searches.

PR:		44448
Submitted by:	David Wolfskill <david@catwhisker.org>
MFC after:	1 week
2002-11-10 16:58:56 +00:00
Philippe Charnier
e8937ba009 Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
Mike Barcroft
42e82026b7 Fix a typo. Don't call options flags. Remove some documentation that
is no longer applicable to whois.  Bump document date.
2001-12-16 01:44:49 +00:00
Mike Barcroft
2032bbdcf7 Use whois.example.com rather than non-existent.host in an example. 2001-10-17 15:47:38 +00:00
Mike Barcroft
1106c5f173 Remove a trailing space at the end of a line.
Forgotten by:	mike
Submitted by:	ru
2001-09-04 17:49:07 +00:00
Mike Barcroft
3b91552d11 o Remove examples from throughout the manual.
o Create an EXAMPLES section.
o In some places change "ru" to "RU" to be consistent.

Reviewed by:	ru
2001-09-04 17:30:39 +00:00
Ruslan Ermilov
489c40dcf5 mdoc(7) police: bump document date for the previous delta. 2001-08-07 13:45:55 +00:00
Mike Barcroft
eade81c941 o Move APNIC flag from -p to -A. Since, -p is usually associated
with specifying a port.
o Add the -p flag for specifying a port.  (PR: 28790)  This is
  useful for querying rwhois servers.  Example:
    whois -h rwhois.exodus.net -p rwhois 216.136.180.0
o Add the -c flag which allows one to get the same whois server
  that would normally be determined if no arguments were specified.
  (Concept based on work by phantom, requested by ache)  Example:
    whois -c ru TCNET-MNT-RIPN
o Deprecate -R flag in favour of -c ru.

PR:		28790
Reviewed by:	-audit, ache, phantom
2001-08-05 19:37:12 +00:00
Dima Dorfman
ffabd15013 Minor grammar cleanup.
Submitted by:	Mike Barcroft <mike@q9media.com>
2001-06-27 23:08:57 +00:00
Dima Dorfman
40682bea9a Implement recursive IP address searches based on the results of a
query to ARIN.

PR:		28426
Submitted by:	Mike Barcroft <mike@q9media.com>
2001-06-27 23:06:47 +00:00
Poul-Henning Kamp
861c52f1c4 Direct queries for IP numbers to ARIN. It would be nice if we could
send them to APNIC/RIPE intelligently, but we can't at this time so
fallback to ARIN and depend on them telling the user where to look.

Maybe we need a .whoisrc file...

PR:		24707
Submitted by:	Mike Barcroft mike@q9media.com
MFC after:	1 week
2001-05-28 21:37:29 +00:00
Ruslan Ermilov
03773b9a81 mdoc(7) police: fix markup.
Submitted by:	roam, ru
2001-05-22 07:05:39 +00:00
Ruslan Ermilov
8fe908ef0c mdoc(7) police: use the new features of the Nm macro. 2000-11-20 19:21:22 +00:00
David E. O'Brien
ea6f1fa37f Tell people how to look up NIC handle information these days (for the two
cases I know about -- Netsol and ARIN).
2000-03-02 22:51:17 +00:00
Sheldon Hearn
87faa07bec Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
2000-03-01 12:20:22 +00:00
Ruslan Ermilov
0b225c8128 Fix typos 1999-12-31 12:20:17 +00:00
Josef Karthauser
72672ddc27 Mention the '6' flag in the flags summary. (Forgotten in the last commit). 1999-12-06 21:49:07 +00:00
Josef Karthauser
300df8f1a9 Rewrite of the manual page to make it clear that NSI and InterNIC
are no longer the same organisation.

Submitted by:	Szilveszter Adam <sziszi@petra.hos.u-szeged.hu>
1999-12-06 19:58:57 +00:00
Josef Karthauser
50bfc34c13 Added a -6 option to lookup information using the whois.6bone.net
database.

PR:		misc/10803 misc/10804
1999-12-05 22:43:36 +00:00
Andrey A. Chernov
2053e9a314 Merge with OpenBSD whois (with bugfixes missed there)
New features are:
Automatic lookup using *.whois-servers.net
Recursive lookup using Registrar's name
Fallback to InterNIC for non-domains
-m for RADB database
-Q to turn recursion/fallback off

Obtained from:	OpenBSD
1999-11-17 19:11:51 +00:00
Andrey A. Chernov
036cc89feb Change default to whois.crsnic.net - new Central Shared Registry for domains
Move InterNIC to -i option
1999-11-09 09:01:38 +00:00
Peter Wemm
c3aac50f28 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
Andrey A. Chernov
04d04825cc Add -R for .RU domains 1999-02-02 01:49:14 +00:00
Garrett Wollman
2712c396cb Update the -d flag to use the new .MIL NIC address (from PR 9802)
and add a -g flag to use the new .GOV NIC.  Also convert the
SEE ALSO reference into a proper bibliographic one.

PR:	9802 (in part)
1999-02-01 19:22:27 +00:00