Commit Graph

46 Commits

Author SHA1 Message Date
Mike Barcroft
064692095c Leave the `copyright' variable exposed, since the main purpose of it
is to put a copyright in the object file.

Submitted by:	bde
2002-03-07 10:06:00 +00:00
Kris Kennaway
01d7192418 Mark a function as __printflike()
MFC after:	1 week
2002-02-04 02:12:49 +00:00
Mike Barcroft
f971bd0623 Use new ID scheme.
Fix a bug that caused .br domains to be queried twice, by only
recursively following ARIN referrals when querying ARIN.

PR:		34291
MFC after:	7 days
2002-02-03 07:35:32 +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
Mark Murray
8878836d7b Remove WARNS=2 as this is to be the default. 2001-12-11 22:31:01 +00:00
Mike Barcroft
3334b16966 Add support for Brazilian IP Addresses. Example `whois 200.236.70.0'.
PR:	30676
2001-12-08 21:22:42 +00:00
Mike Barcroft
d335cbd39f Remove some EOL whitespace. Update usage() to current reality. 2001-10-17 16:28:12 +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
42ab40e52d o Treat a buffer as a non-NUL terminated string, because the whois
server may not return a new line character on the final line.
o Remove the whois.networksolutions.com fallback code, which is no
  longer needed.
o Instead of determining a hostname by terminating it when we see
  whitespace, only allow hostname characters and terminate the string
  when it's not such a character.
o Add a small optimization in a for loop.

PR:		30968
Reviewed by:	-audit
MFC after:	4 days
2001-10-12 17:39:36 +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
Mike Barcroft
666fb6724a Take maintainership of whois(1). 2001-08-21 19:24:50 +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
Mike Barcroft
2c69b9a13e Fix a bug I introduced in Rev. 1.21 that prevented 'whois test' from
working.

Reviewed by:	des
Approved by:	des
2001-07-22 18:23:24 +00:00
Mike Barcroft
197bca2ccf o Add phantom's gethostinfo() function to reduce duplicated code.
o Increase readability by creating a wrapper for asprintf(3).
o Cast isdigit(3) argument to unsigned char for future locale
  changes.

Submitted by:	phantom
Reviewed by:	-audit, des
Approved by:	des
2001-07-20 16:44:44 +00:00
Mike Barcroft
6c56da4a27 Re-write the logic that finds the whois server to query.
[This fixes a bug where one would type 'whois foo.bar.'
and get an error because of the trailing period.]

PR:		28880
Approved by:	des
2001-07-17 20:40:41 +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
Dag-Erling Smørgrav
9b07a06672 Stylify, ANSIfy, silence warnings, plug a memory leak, don't assume the
server is well-behaved wrt. line endings.

PR:		bin/28082
Submitted by:	Mike Barcroft <mike@q9media.com>
2001-06-22 01:52:37 +00:00
Hajimu UMEMOTO
2c5958aa51 Do retry next entry in addrinfo during connect.
MFC after:	1 week
2001-06-01 13:43:20 +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
Kris Kennaway
ad59157a75 Enable whois queries over IPv6
Obtained from:	KAME
2000-07-07 07:52:21 +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
4fb3772628 Add braces ({}) to all the places that they're missing. 1999-12-06 21:18:32 +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
e64b191d27 Change -i host to whois.networksolutions.com 1999-12-03 16:56:57 +00:00
Andrey A. Chernov
0e98576f36 purity change for name length checking code 1999-11-17 20:51:35 +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
Peter Wemm
a60c62a3c0 #include <arpa/inet.h> 1998-06-12 12:55:46 +00:00
Garrett Wollman
a00fe97d5a Make it more convenient to query NICs other than InterNIC. Explain in the
man page what each database contains.
1998-02-19 19:07:50 +00:00
Philippe Charnier
741d304e2d Use err(3). 1997-08-26 11:16:08 +00:00
Warner Losh
1c8af87873 compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
1997-03-29 04:34:07 +00:00
Mark Murray
1899f6a2ff Fix default whois server. 1997-02-18 19:02:06 +00:00
Paul Traina
d9fd44dd79 Add support for SOCKS if enabled.
Remove a useless bind() call (why did that ever get in there?)
1996-04-23 06:01:10 +00:00
Rodney W. Grimes
9b50d90275 BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00