From owner-freebsd-stable Sun Dec 5 14:56: 4 1999 Delivered-To: freebsd-stable@freebsd.org Received: from gndrsh.dnsmgr.net (GndRsh.dnsmgr.net [198.145.92.4]) by hub.freebsd.org (Postfix) with ESMTP id A56DE14C3C for ; Sun, 5 Dec 1999 14:56:01 -0800 (PST) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: (from freebsd@localhost) by gndrsh.dnsmgr.net (8.9.3/8.9.3) id OAA88072; Sun, 5 Dec 1999 14:54:36 -0800 (PST) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <199912052254.OAA88072@gndrsh.dnsmgr.net> Subject: Re: Little whois patch. In-Reply-To: <19991205143904.D18336@strontium.scientia.demon.co.uk> from Ben Smithurst at "Dec 5, 1999 02:39:04 pm" To: ben@scientia.demon.co.uk (Ben Smithurst) Date: Sun, 5 Dec 1999 14:54:35 -0800 (PST) Cc: matt@S02.ARPA-CANADA.NET (matt), FreeBSD-Stable@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > matt wrote: > > > I noticed that the Canadian Internic was being left out of the > > whois command line opts, so I thought I'd add it to the options. I really > > have no clue who to send this to, or if I should use send-pr maybe, but > > it's technically not a problem. Hopefully one of the committers can give > > me feedback on where this should go. It's diffed against 3.3-stable, does > > nothing but give 'whois -c' for whois.internic.ca, us Canadians feel left > > out, cheers. =) > > Can we (the UK) have a -u option too? :-) The host is whois.nic.uk. > Anyway, what happens when China want their own option, and find that -c > is taken? Wouldn't a more generic option make more sense, something like > -c , eg `whois -c ca ...' or `whois -c uk ...' ? How about a much more elegant solution in that this data should not be coded in the program at all. Use of an external data file that maps regex's to whois servers living in /usr/share someplace would mean we could stop fussing with the binary and just fix the data file such that it DTRT for folks: .*\.{com,net,org}$ whois.networksolutions.com .*\.{mil}$ ??? .*\.{edu}$ ??? .*\.{ca}$ whois.internic.ca .*\.{uk}$ ??? etc, etc.... And -h would override even looking at this file... And for folks like me who do lots of rr queries I could locally add things like ^AS[0-9]* whois.ra.net ^MAINT-.* whois.ra.net ^RTR-.* whois.ra.net ^[1-9]*\.[0-9]*\.[0-9]*\.[0-9]* whois.arin.net Infact you could go one step further and even allow a ~/.whoisrc, so my users whouldn't get confused when whois gave them data from a routing registry :-) -- Rod Grimes - KD7CAX @ CN85sl - (RWG25) rgrimes@gndrsh.dnsmgr.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message