Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Aug 1999 22:56:56 +0100 (BST)
From:      joe@FreeBSD.org.uk
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/13236: Patch for whois to use UK Nominet database.
Message-ID:  <199908182156.WAA90914@storm.FreeBSD.org.uk>

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

>Number:         13236
>Category:       bin
>Synopsis:       Patch for whois to use UK Nominet database.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 18 15:00:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Joe Karthauser
>Release:        FreeBSD 3.2-STABLE i386
>Organization:
Pavilion Internet/FreeBSD (UK)
>Environment:
>Description:

	It would be nice if whois was able to query the UK
	Nominet whois database.  Patches below ;)

>How-To-Repeat:
>Fix:
	
	Apply the following patches :)


Index: whois.1
===================================================================
RCS file: /home/ncvs/src/usr.bin/whois/whois.1,v
retrieving revision 1.6
diff -u -r1.6 whois.1
--- whois.1	1999/02/02 01:49:14	1.6
+++ whois.1	1999/08/18 21:53:41
@@ -86,6 +86,10 @@
 database.  It contains network numbers and domain contact information
 for subdomains of
 .Tn \&.RU .
+.It Fl u
+Use the Nominet Network Information Center
+.Pq Tn NIC.UK
+database.  It contains domain contact information for the UK.
 .El
 .Pp
 The operands specified to
Index: whois.c
===================================================================
RCS file: /home/ncvs/src/usr.bin/whois/whois.c,v
retrieving revision 1.8
diff -u -r1.8 whois.c
--- whois.c	1999/02/02 01:49:14	1.8
+++ whois.c	1999/08/18 21:50:31
@@ -63,6 +63,7 @@
 #define	RNICHOST	"whois.ripe.net"
 #define	PNICHOST	"whois.apnic.net"
 #define RUNICHOST       "whois.ripn.net"
+#define UNICHOST        "whois.nic.uk"
 #define	WHOIS_PORT	43
 
 static void usage __P((void));
@@ -85,7 +86,7 @@
 #endif
 
 	host = NICHOST;
-	while ((ch = getopt(argc, argv, "adgh:prR")) != -1)
+	while ((ch = getopt(argc, argv, "adgh:prRu")) != -1)
 		switch((char)ch) {
 		case 'a':
 			host = ANICHOST;
@@ -108,6 +109,9 @@
 		case 'R':
 			host = RUNICHOST;
 			break;
+		case 'u':
+			host = UNICHOST;
+			break;
 		case '?':
 		default:
 			usage();
@@ -159,6 +163,6 @@
 static void
 usage()
 {
-	fprintf(stderr, "usage: whois [-adgprR] [-h hostname] name ...\n");
+	fprintf(stderr, "usage: whois [-adgprRu] [-h hostname] name ...\n");
 	exit(EX_USAGE);
 }

>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?199908182156.WAA90914>