From nobody@FreeBSD.ORG Fri Mar 26 08:36:10 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 1836E1569B; Fri, 26 Mar 1999 08:36:10 -0800 (PST)
Message-Id: <19990326163610.1836E1569B@hub.freebsd.org>
Date: Fri, 26 Mar 1999 08:36:10 -0800 (PST)
From: adamo@dblab.ece.ntua.gr
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: whois(1) client enchancements
X-Send-Pr-Version: www-1.0

>Number:         10803
>Category:       misc
>Synopsis:       whois(1) client enchancements
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    joe
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 26 08:40:00 PST 1999
>Closed-Date:    Thu Jun 14 09:45:35 PDT 2001
>Last-Modified:  Thu Jun 14 09:48:45 PDT 2001
>Originator:     Yiorgos Adamopoulos
>Release:        3.1-RELEASE
>Organization:
Knowledge and Data Base Systems Laboratory, NTUA
>Environment:
FreeBSD hawk.dbnet.ece.ntua.gr 3.1-RELEASE FreeBSD 3.1-RELEASE #0: Mon Mar  1 21:41:09 EET 1999     george@hawk.dbnet.ece.ntua.gr:/usr/src/sys/compile/ADAMO  i386

>Description:

>How-To-Repeat:

>Fix:
*** whois.c.orig        Fri Mar 26 18:07:47 1999
--- whois.c     Fri Mar 26 18:00:40 1999
***************
*** 57,66 ****
  #include <unistd.h>
  
  #define       NICHOST         "whois.internic.net"
! #define       DNICHOST        "nic.ddn.mil"
  #define       ANICHOST        "whois.arin.net"
  #define       RNICHOST        "whois.ripe.net"
  #define       PNICHOST        "whois.apnic.net"
  #define       WHOIS_PORT      43
  
  static void usage __P((void));
--- 57,68 ----
  #include <unistd.h>
  
  #define       NICHOST         "whois.internic.net"
! #define       DNICHOST        "whois.nic.mil"
  #define       ANICHOST        "whois.arin.net"
  #define       RNICHOST        "whois.ripe.net"
  #define       PNICHOST        "whois.apnic.net"
+ #define       GNICHOST        "whois.nic.gov"
+ #define       SNICHOST        "whois.6bone.net"
  #define       WHOIS_PORT      43
  
  static void usage __P((void));
***************
*** 83,89 ****
  #endif
  
        host = NICHOST;
!       while ((ch = getopt(argc, argv, "adh:pr")) != -1)
                switch((char)ch) {
                case 'a':
                        host = ANICHOST;
--- 85,91 ----
  #endif
  
        host = NICHOST;
!       while ((ch = getopt(argc, argv, "adh:prg6")) != -1) {
                switch((char)ch) {
                case 'a':
                        host = ANICHOST;
***************
*** 100,109 ****
--- 102,122 ----
                case 'r':
                        host = RNICHOST;
                        break;
+               case 'g':
+                       host = GNICHOST;
+                       break;
+               case '6':
+                       host = SNICHOST;
+                       break;
                case '?':
                default:
                        usage();
                }
+ 
+               if ((host == SNICHOST) || (host == RNICHOST)) {
+                       break;
+               }
+       }
        argc -= optind;
        argv += optind;
  
***************
*** 151,156 ****
  static void
  usage()
  {
!       (void)fprintf(stderr, "usage: whois [-adpr] [-h hostname] name ...\n");
        exit(EX_USAGE);
  }
--- 164,169 ----
  static void
  usage()
  {
!       (void)fprintf(stderr, "usage: whois [-adprg6] [-h hostname] name ...\n")
;
        exit(EX_USAGE);
  }


>Release-Note:
>Audit-Trail:

From: Chris Costello <chris@holly.dyndns.org>
To: adamo@dblab.ece.ntua.gr
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: misc/10803: whois(1) client enchancements
Date: Fri, 26 Mar 1999 11:24:35 -0600

 On Fri, Mar 26, 1999, adamo@dblab.ece.ntua.gr wrote:
 > 
 > >Number:         10803
 > >Category:       misc
 > >Synopsis:       whois(1) client enchancements
 
 
 > >Fix:
 
    The fix you have does not apply to the latest version of whois -- perhaps
 you should CVSup to the latest -STABLE tree.
 
 > >Release-Note:
 > >Audit-Trail:
 > >Unformatted:
 > 
 > 
 > To Unsubscribe: send mail to majordomo@FreeBSD.org
 > with "unsubscribe freebsd-bugs" in the body of the message
 > 
 
Responsible-Changed-From-To: freebsd-bugs->joe 
Responsible-Changed-By: joe 
Responsible-Changed-When: Sun Dec 5 14:43:52 PST 1999 
Responsible-Changed-Why:  
Added whois.6bone.net support to whois in -current. 
State-Changed-From-To: open->closed 
State-Changed-By: alex 
State-Changed-When: Thu Jun 14 09:45:35 PDT 2001 
State-Changed-Why:  
This has been commmitted (in a slightly modified form) a long time 
ago.  Thanks! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=10803 
>Unformatted:
