From owner-freebsd-audit Mon May 21 4:41:33 2001 Delivered-To: freebsd-audit@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.13]) by hub.freebsd.org (Postfix) with SMTP id 47C9F37B422 for ; Mon, 21 May 2001 04:41:30 -0700 (PDT) (envelope-from roam@ringworld.nanolink.com) Received: (qmail 9895 invoked by uid 1000); 21 May 2001 11:40:41 -0000 Date: Mon, 21 May 2001 14:40:41 +0300 From: Peter Pentchev To: "Jeroen C. van Gelderen" Cc: Joachim Strombergson , FreeBSD-Audit Subject: Re: Patch to add nic-se to whois Message-ID: <20010521144041.L2781@ringworld.oblivion.bg> Mail-Followup-To: "Jeroen C. van Gelderen" , Joachim Strombergson , FreeBSD-Audit References: <3B0841FB.188D5933@ludd.luth.se> <3B08EEA8.1C54CA16@vangelderen.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B08EEA8.1C54CA16@vangelderen.org>; from jeroen@vangelderen.org on Mon, May 21, 2001 at 11:32:08AM +0100 Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, May 21, 2001 at 11:32:08AM +0100, Jeroen C. van Gelderen wrote: > Joachim Strombergson wrote: > > Trying my hands at contributing and hacking FreeBSD again. > > > > This is an adaption of a patch from OpenBSD that adds nic-se as one of > > the databases whois knows about. > > > > Could someone look at the patch and see if it's an ok patch? Also is > > this something we should add to the system? > > This sounds like a welcome addition except for > the fact that I'm wondering what will happen if > 20 other countries need to have their servers > added to whois. We cannot really use the same > strategy without adopting a bigger alphabet :-) > > Wouldn't a more scalable solution be to accept > the -s flag followed by a country code like so: > whois -s SE > whois -s BE > whois -s DE > whois -s NL > ? > > The '-s' would than stand for 'server'. Sounds like a great idea! Joachim, are you interested in revamping whois(1) this way? :) If not, I could take it up.. There could be several issues here: does whois(1) work with hard-coded server names, or does it take the country code -> server name mappings from a file, or both? I guess the best way would be to check a file if it exists, then if no match was found, use a hardcoded table. This would render the -R (RIPN, .ru) switch obsolete, but I do not think that the global, non-country-specific registries should be removed (not that Jeroen has proposed this, just to make it clear :) G'luck, Peter -- .siht ekil ti gnidaer eb d'uoy ,werbeH ni erew ecnetnes siht fI To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message