Commit Graph

68 Commits

Author SHA1 Message Date
Andrey A. Chernov
b79aefd3e9 Use proper type cast for ctype macro 2007-04-14 14:32:48 +00:00
Poul-Henning Kamp
64b4073914 Make DK-HOSTMASTER show contact info for .dk domains.
Submitted by:	Søren Hansen <shan@soeren-hansen.dk>
2007-01-19 08:13:17 +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
Philippe Charnier
a8cf0aaf75 Reduce compiler warning: variable might be used uninitialized, by giving
an initial value.
2005-05-29 15:49:53 +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
Martin Blapp
be460b9467 Add special case for the german whois nameserver. Without the
'-T dn,ace -C US-ASCII' option one does only get:

$ whois nic.de

domain:    nic.de
status:    connect

More information available on:

http://www.denic.de/en/domains/technik/denic_whois-server/index.html

MFC:	3 days
2004-08-25 15:34:44 +00:00
Bruce M Simpson
7714734ac9 Add -b to usage.
Pointed out by:	ceri
Pointy hat to:	bms
2004-06-14 19:29:37 +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
Andrey A. Chernov
e5637075a3 Back out .SU workaround - people at whois-servers.net set up
su.whois-servers.net
2003-06-29 23:56:31 +00:00
Andrey A. Chernov
1d07f642df While there is no su.whois-servers.net, use fallback to
ru.whois-servers.net for su domain or country
2003-06-24 15:08:24 +00:00
Mike Barcroft
e86c7447c2 Drop maintainership of whois(1). If someone needs a review they can
find me in the whois.c revision history.
2003-06-12 02:46:47 +00:00
Eivind Eklund
058543317c Add support for identifying NORID (norwegian top level registry) handles.
Reviewed by:	mike (with slight changes based on feedback afterwards)
2003-03-25 17:00:03 +00:00
Mike Barcroft
80473671e8 Fix style bugs in previous commit. 2003-02-24 17:10:32 +00:00
Ollivier Robert
96db12517f The newly appointed .org registrar has a pecular output format so
whois doesn't follow the link to the authoritative registrar. Fix it.

PR:             bin/47770
Submitted by:   Alain Thivillon <at@rominet.net>
MFC after:	    7 days
2003-01-31 21:57: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
Mike Barcroft
d0505643e5 ARIN has annoyingly started using caps when referencing
whois.apnic.net.  To properly receive hints for recursive IP searches,
we convert a buffer to lowercase before searching for magic words.

PR:		42834
Submitted by:	Andre Albsmeier <andre.albsmeier@mchp.siemens.de> (mostly)
X-MFC-After:	re approval
2002-09-18 07:51:46 +00:00
Philippe Charnier
e8937ba009 Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
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