summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2004-06-14 17:30:46 +0000
committerbms <bms@FreeBSD.org>2004-06-14 17:30:46 +0000
commit1598e7b4234febacb1b16af62169c90a2e93cc6b (patch)
tree97dfbcd37421755b20597a2b46a31673cbff9a8c
parent7429d59ed622b5592f530b76c7ce131d9739efdc (diff)
downloadFreeBSD-src-1598e7b4234febacb1b16af62169c90a2e93cc6b.zip
FreeBSD-src-1598e7b4234febacb1b16af62169c90a2e93cc6b.tar.gz
Add whois.abuse.net to whois(1).
Submitted by: ceri (with cleanups)
-rw-r--r--usr.bin/whois/whois.16
-rw-r--r--usr.bin/whois/whois.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/usr.bin/whois/whois.1 b/usr.bin/whois/whois.1
index 18a6383..28efda1 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 aAdgiIlmQrR6
+.Op Fl aAbdgiIlmQrR6
.Op Fl c Ar country-code | Fl h Ar host
.Op Fl p Ar port
.Ar name ...
@@ -73,6 +73,10 @@ Use the Asia/Pacific Network Information Center
database.
It contains network numbers used in East Asia, Australia,
New Zealand, and the Pacific islands.
+.It Fl b
+Use the Network Abuse Clearinghouse database.
+It contains addresses to which network abuse should be reported,
+indexed by domain name.
.It Fl c Ar country-code
This is the equivalent of using the
.Fl h
diff --git a/usr.bin/whois/whois.c b/usr.bin/whois/whois.c
index 54ee7d0..ad488e5 100644
--- a/usr.bin/whois/whois.c
+++ b/usr.bin/whois/whois.c
@@ -60,6 +60,7 @@ __FBSDID("$FreeBSD$");
#include <sysexits.h>
#include <unistd.h>
+#define ABUSEHOST "whois.abuse.net"
#define NICHOST "whois.crsnic.net"
#define INICHOST "whois.networksolutions.com"
#define DNICHOST "whois.nic.mil"
@@ -105,7 +106,7 @@ main(int argc, char *argv[])
country = host = qnichost = NULL;
flags = use_qnichost = 0;
- while ((ch = getopt(argc, argv, "aAc:dgh:iIlmp:QrR6")) != -1) {
+ while ((ch = getopt(argc, argv, "aAbc:dgh:iIlmp:QrR6")) != -1) {
switch (ch) {
case 'a':
host = ANICHOST;
@@ -113,6 +114,9 @@ main(int argc, char *argv[])
case 'A':
host = PNICHOST;
break;
+ case 'b':
+ host = ABUSEHOST;
+ break;
case 'c':
country = optarg;
break;
OpenPOWER on IntegriCloud