From owner-freebsd-bugs Thu Apr 12 14:50:22 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2EE4B37B440 for ; Thu, 12 Apr 2001 14:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f3CLo1W52254; Thu, 12 Apr 2001 14:50:01 -0700 (PDT) (envelope-from gnats) Received: from botbay.net (botbay.net [151.197.159.116]) by hub.freebsd.org (Postfix) with ESMTP id 7989E37B446 for ; Thu, 12 Apr 2001 14:43:26 -0700 (PDT) (envelope-from wcampbel@botbay.net) Received: (from wcampbel@localhost) by botbay.net (8.11.1/8.11.3) id f3CLhPo31257; Thu, 12 Apr 2001 17:43:25 -0400 (EDT) (envelope-from wcampbel) Message-Id: <200104122143.f3CLhPo31257@botbay.net> Date: Thu, 12 Apr 2001 17:43:25 -0400 (EDT) From: Walter Campbell Reply-To: wcampbel@botbay.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: misc/26521: Australia's whois.aunic.net as an option in whois(1) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 26521 >Category: misc >Synopsis: Australia's whois.aunic.net as an option in whois(1) >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: Thu Apr 12 14:50:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Walter Campbell >Release: FreeBSD 4.2-STABLE i386 >Organization: Botbay.net >Environment: CLI Whois client, whois an Australian domain or IP block. >Description: FreeBSD's whois client has an option -p that queries whois.apnic.net. Information about Australian hosts were once authoritative in apnic, however they no longer are. whois.aunic.net is the current authoritative server. The included patch will enable the -u option to query the AUNIC database. >How-To-Repeat: >Fix: diff -uNrd ../whois.dist/whois.1 ./whois.1 --- ../whois.dist/whois.1 Thu Apr 12 17:18:25 2001 +++ ./whois.1 Thu Apr 12 17:24:58 2001 @@ -117,8 +117,8 @@ .It Fl p Use the Asia/Pacific Network Information Center .Pq Tn APNIC -database. It contains network numbers used in East Asia, Australia, -New Zealand, and the Pacific islands. +database. It contains network numbers used in East Asia, New Zealand, +and the Pacific islands. .It Fl Q Do a quick lookup. This means that .Nm @@ -136,6 +136,10 @@ database. It contains network numbers and domain contact information for subdomains of .Tn \&.RU . +.It Fl u +Use the Australia Network Information Center +.Pq Tn AUNIC +database. It contains network numbers used in Australia .It Fl 6 Use the IPv6 Resource Center .Pq Tn 6bone diff -uNrd ../whois.dist/whois.c ./whois.c --- ../whois.dist/whois.c Thu Apr 12 17:18:25 2001 +++ ./whois.c Thu Apr 12 17:37:01 2001 @@ -62,6 +62,7 @@ #define DNICHOST "whois.nic.mil" #define GNICHOST "whois.nic.gov" #define ANICHOST "whois.arin.net" +#define AUNICHOST "whois.aunic.net" #define RNICHOST "whois.ripe.net" #define PNICHOST "whois.apnic.net" #define RUNICHOST "whois.ripn.net" @@ -96,7 +97,7 @@ qnichost = NULL; flags = 0; use_qnichost = 0; - while ((ch = getopt(argc, argv, "adgh:impQrR6")) != -1) { + while ((ch = getopt(argc, argv, "adgh:impQrRu6")) != -1) { switch((char)ch) { case 'a': host = ANICHOST; @@ -128,6 +129,9 @@ case 'R': host = RUNICHOST; break; + case 'u': + host = AUNICHOST; + break; case '6': host = SNICHOST; break; @@ -292,6 +296,6 @@ usage() { (void)fprintf(stderr, - "usage: whois [-adgimpQrR6] [-h hostname] name ...\n"); + "usage: whois [-adgimpQrRu6] [-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