Skip site navigation (1)Skip section navigation (2)
Date:      5 Dec 1999 06:16:53 -0000
From:      matt@S02.ARPA-CANADA.NET
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/15267: CHANGE-REQUEST: WHOIS(1) - Support Internic.CA (Canada)
Message-ID:  <19991205061653.42444.qmail@s02.arpa-canada.net>

next in thread | raw e-mail | index | archive | help

>Number:         15267
>Category:       bin
>Synopsis:       CHANGE-REQUEST: WHOIS(1) - Support Internic.CA (Canada)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec  4 22:20:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Matt
>Release:        FreeBSD 3.3-STABLE i386
>Organization:
N/A
>Environment:

N/A

>Description:

WHOIS(1) had no builtin support for whois.internic.ca which is the Canadian
Internic Registry. As a Canadian, I hate to be left out. Therefore, I added
support for whois.internic.ca via 'whois -c [domain.ca]'

Thanks in advance for (hopefully) accepting this addition.

>How-To-Repeat:

N/A

>Fix:

This is diffed against 3.3-STABLE source, has been tested locally by
myself on 3.3-STABLE machine, manpage update also included and tested.
	
---- START CUT: WHOIS.DIFF ----

diff -urbN whois.old/whois.1 whois/whois.1
--- whois.old/whois.1   Fri Sep 17 10:35:56 1999
+++ whois/whois.1       Sat Dec  4 21:25:51 1999
@@ -40,7 +40,7 @@
 .Nd Internet domain name and network number directory service
 .Sh SYNOPSIS
 .Nm whois
-.Op Fl adgprR
+.Op Fl acdgprR
 .Op Fl h Ar host
 .Ar name ...
 .Sh DESCRIPTION
@@ -58,6 +58,10 @@
 covered neither by
 .Tn APNIC nor by
 .Tn RIPE .
+.It Fl c
+Use the Canadian Internic Registry 
+database. It contains points of contact for subdomains of
+.Tn \&.CA .
 .It Fl d
 Use the US Department of Defense
 database.  It contains points of contact for subdomains of
diff -urbN whois.old/whois.c whois/whois.c
--- whois.old/whois.c   Sat Dec  4 21:21:28 1999
+++ whois/whois.c       Sat Dec  4 21:25:51 1999
@@ -57,6 +57,7 @@
 #include <unistd.h>
 
 #define        NICHOST         "whois.internic.net"
+#define        CNICHOST        "whois.internic.ca"
 #define        DNICHOST        "whois.nic.mil"
 #define        GNICHOST        "whois.nic.gov"
 #define        ANICHOST        "whois.arin.net"
@@ -85,11 +86,14 @@
 #endif
 
        host = NICHOST;
-       while ((ch = getopt(argc, argv, "adgh:prR")) != -1)
+       while ((ch = getopt(argc, argv, "acdgh:prR")) != -1)
                switch((char)ch) {
                case 'a':
                        host = ANICHOST;
                        break;
+               case 'c':
+                       host = CNICHOST;
+                       break;
                case 'd':
                        host = DNICHOST;
                        break;
@@ -159,6 +163,6 @@
 static void
 usage()
 {
-       fprintf(stderr, "usage: whois [-adgprR] [-h hostname] name ...\n");
+       fprintf(stderr, "usage: whois [-acdgprR] [-h hostname] name ...\n");
        exit(EX_USAGE);
 }

--- END CUT: WHOIS.DIFF ---

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991205061653.42444.qmail>