summaryrefslogtreecommitdiffstats
path: root/usr.bin/whois/whois.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/whois/whois.c')
-rw-r--r--usr.bin/whois/whois.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/usr.bin/whois/whois.c b/usr.bin/whois/whois.c
index ed5e5bc..df6fa1a 100644
--- a/usr.bin/whois/whois.c
+++ b/usr.bin/whois/whois.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)whois.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
- "$Id: whois.c,v 1.5 1998/02/19 19:07:50 wollman Exp $";
+ "$Id: whois.c,v 1.6 1998/06/12 12:55:46 peter Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -57,7 +57,8 @@ static const char rcsid[] =
#include <unistd.h>
#define NICHOST "whois.internic.net"
-#define DNICHOST "nic.ddn.mil"
+#define DNICHOST "whois.nic.mil"
+#define GNICHOST "whois.nic.gov"
#define ANICHOST "whois.arin.net"
#define RNICHOST "whois.ripe.net"
#define PNICHOST "whois.apnic.net"
@@ -83,7 +84,7 @@ main(argc, argv)
#endif
host = NICHOST;
- while ((ch = getopt(argc, argv, "adh:pr")) != -1)
+ while ((ch = getopt(argc, argv, "adgh:pr")) != -1)
switch((char)ch) {
case 'a':
host = ANICHOST;
@@ -91,6 +92,9 @@ main(argc, argv)
case 'd':
host = DNICHOST;
break;
+ case 'g':
+ host = GNICHOST;
+ break;
case 'h':
host = optarg;
break;
@@ -151,6 +155,6 @@ main(argc, argv)
static void
usage()
{
- (void)fprintf(stderr, "usage: whois [-adpr] [-h hostname] name ...\n");
+ fprintf(stderr, "usage: whois [-adgpr] [-h hostname] name ...\n");
exit(EX_USAGE);
}
OpenPOWER on IntegriCloud