aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/whois
diff options
context:
space:
mode:
authorBruce M Simpson <bms@FreeBSD.org>2004-06-14 14:03:10 +0000
committerBruce M Simpson <bms@FreeBSD.org>2004-06-14 14:03:10 +0000
commit7138e3fe154d72c677386b91355f46c325bcaf5b (patch)
treef659c1f0fd2c400be62d938ce0a72499fae0cb46 /usr.bin/whois
parentc492956f6cb92ad1db2703746879fdf04c44350d (diff)
downloadsrc-7138e3fe154d72c677386b91355f46c325bcaf5b.tar.gz
src-7138e3fe154d72c677386b91355f46c325bcaf5b.zip
Notes
Diffstat (limited to 'usr.bin/whois')
-rw-r--r--usr.bin/whois/whois.17
-rw-r--r--usr.bin/whois/whois.c8
2 files changed, 12 insertions, 3 deletions
diff --git a/usr.bin/whois/whois.1 b/usr.bin/whois/whois.1
index 34b8e35d7da1..2187fd0ad803 100644
--- a/usr.bin/whois/whois.1
+++ b/usr.bin/whois/whois.1
@@ -40,7 +40,7 @@
.Nd "Internet domain name and network number directory service"
.Sh SYNOPSIS
.Nm
-.Op Fl aAdgilmQrR6
+.Op Fl aAdgiIlmQrR6
.Op Fl c Ar country-code | Fl h Ar host
.Op Fl p Ar port
.Ar name ...
@@ -148,6 +148,11 @@ can be looked up by prefixing
to the
.Tn NIC
handle in the query.)
+.It Fl I
+Use the Internet Assigned Numbers Authority
+.Pq Tn IANA
+database.
+It contains network information for top-level domains.
.It Fl l
Use the Latin American and Caribbean IP address Regional Registry
.Pq Tn LACNIC
diff --git a/usr.bin/whois/whois.c b/usr.bin/whois/whois.c
index 729c2e284396..54ee7d065515 100644
--- a/usr.bin/whois/whois.c
+++ b/usr.bin/whois/whois.c
@@ -73,6 +73,7 @@ __FBSDID("$FreeBSD$");
#define SNICHOST "whois.6bone.net"
#define BNICHOST "whois.registro.br"
#define NORIDHOST "whois.norid.no"
+#define IANAHOST "whois.iana.org"
#define DEFAULT_PORT "whois"
#define WHOIS_SERVER_ID "Whois Server: "
#define WHOIS_ORG_SERVER_ID "Registrant Street1:Whois Server:"
@@ -104,7 +105,7 @@ main(int argc, char *argv[])
country = host = qnichost = NULL;
flags = use_qnichost = 0;
- while ((ch = getopt(argc, argv, "aAc:dgh:ilmp:QrR6")) != -1) {
+ while ((ch = getopt(argc, argv, "aAc:dgh:iIlmp:QrR6")) != -1) {
switch (ch) {
case 'a':
host = ANICHOST;
@@ -127,6 +128,9 @@ main(int argc, char *argv[])
case 'i':
host = INICHOST;
break;
+ case 'I':
+ host = IANAHOST;
+ break;
case 'l':
host = LNICHOST;
break;
@@ -338,7 +342,7 @@ static void
usage(void)
{
fprintf(stderr,
- "usage: whois [-aAdgilmQrR6] [-c country-code | -h hostname] "
+ "usage: whois [-aAdgiIlmQrR6] [-c country-code | -h hostname] "
"[-p port] name ...\n");
exit(EX_USAGE);
}