mike
705073e549
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
charnier
ad8a79e6a5
Use `The .Nm utility'
2002-04-20 12:18:28 +00:00
mike
4232c22913
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
b2cbfe0830
Mark a function as __printflike()
...
MFC after: 1 week
2002-02-04 02:12:49 +00:00
mike
c41b30278b
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
22f5b26d81
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
markm
77bb412269
Remove WARNS=2 as this is to be the default.
2001-12-11 22:31:01 +00:00
mike
d43f783040
Add support for Brazilian IP Addresses. Example `whois 200.236.70.0'.
...
PR: 30676
2001-12-08 21:22:42 +00:00
mike
3997cf6e35
Remove some EOL whitespace. Update usage() to current reality.
2001-10-17 16:28:12 +00:00
mike
55f9dc658c
Use whois.example.com rather than non-existent.host in an example.
2001-10-17 15:47:38 +00:00
mike
2abcf6c606
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
6995cd3005
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
c751275b67
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
bcf70c152e
Take maintainership of whois(1).
2001-08-21 19:24:50 +00:00
ru
a196f4a023
mdoc(7) police: bump document date for the previous delta.
2001-08-07 13:45:55 +00:00
mike
ee03551b7f
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
f322ed6873
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
567548e3b8
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
c13f900ffc
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
dd
057bf882e3
Minor grammar cleanup.
...
Submitted by: Mike Barcroft <mike@q9media.com>
2001-06-27 23:08:57 +00:00
dd
c42db86ef3
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
des
dadeb6dc97
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
ume
8888e65159
Do retry next entry in addrinfo during connect.
...
MFC after: 1 week
2001-06-01 13:43:20 +00:00
phk
ffbd616b16
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
ru
c78dfea20c
mdoc(7) police: fix markup.
...
Submitted by: roam, ru
2001-05-22 07:05:39 +00:00
ru
0d1334ca0c
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 19:21:22 +00:00
kris
9520faa817
Enable whois queries over IPv6
...
Obtained from: KAME
2000-07-07 07:52:21 +00:00
obrien
b813631de1
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
sheldonh
49c4458c80
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
ru
be362cf42a
Fix typos
1999-12-31 12:20:17 +00:00
joe
67afece3d6
Mention the '6' flag in the flags summary. (Forgotten in the last commit).
1999-12-06 21:49:07 +00:00
joe
a5c97eab80
Add braces ({}) to all the places that they're missing.
1999-12-06 21:18:32 +00:00
joe
54c92f8579
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
joe
d754df9726
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
ache
9f9ea4099c
Change -i host to whois.networksolutions.com
1999-12-03 16:56:57 +00:00
ache
28edb56949
purity change for name length checking code
1999-11-17 20:51:35 +00:00
ache
3620b449a5
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
ache
64b85dd45e
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
3b842d34e8
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
ache
c97188153a
Add -R for .RU domains
1999-02-02 01:49:14 +00:00
wollman
27a9da7374
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
0b9db54b14
#include <arpa/inet.h>
1998-06-12 12:55:46 +00:00
wollman
929ade011c
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
charnier
19da442f11
Use err(3).
1997-08-26 11:16:08 +00:00
imp
141381e1cb
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
markm
6b056ec071
Fix default whois server.
1997-02-18 19:02:06 +00:00
pst
ceb677462b
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
rgrimes
f9ab90d9d6
BSD 4.4 Lite Usr.bin Sources
1994-05-27 12:33:43 +00:00