Date: Sun, 9 Apr 2000 14:22:59 -0400 From: Paul Chvostek <paul@it.ca> To: Jim Conner <jconner@enterit.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: whois question Message-ID: <20000409142259.A36746@flarn.it.ca> In-Reply-To: <4.3.1.2.20000408013420.00ad7aa0@pseudonet.org>; from Jim Conner on Sat, Apr 08, 2000 at 01:34:23AM -0400 References: <4.3.1.2.20000408013420.00ad7aa0@pseudonet.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Easier than that, I've got the following working in csh/tcsh: alias rawhois 'whois -h whois.ra.net \!:*' alias awhois 'whois -h whois.arin.net \!:*' alias riwhois 'whois -h whois.ripe.net \!:*' alias cawhois 'whois -h whois.cdnnet.ca \!:*' alias nwhois 'whois -h whois.networksolutions.com \!:*' This is made obsolete by the new "smarter" whois, as is the following shell script you might find handy under 2.2.8: #!/bin/sh if [ $# -ne 1 ]; then whois elif echo "$1" | grep -q "[0-9][0-9]*\.[0-9]" ; then trap "rm -f /tmp/wh.$$ ; exit" 0 1 2 3 6 15 whois -h whois.arin.net $1 > /tmp/wh.$$ if grep -q "Netname: RIPE" /tmp/wh.$$ ; then whois -h whois.ripe.net $1 elif grep -q "Netname: APNIC" /tmp/wh.$$ ; then whois -h whois.apnic.net $1 else cat /tmp/wh.$$ fi elif echo "$1" | grep -q "\.ca\$" ; then whois -h whois.cdnnet.ca $1 elif echo "$1" | grep -q "\.uk\$" ; then whois -h whois.nic.uk $1 elif echo "$1" | grep -q "\.au\$" ; then whois -h whois.aunic.net $1 else whois -h whois.networksolutions.com $1 fi Expand as necessary. I only included what I use regularly. On Sat, Apr 08, 2000 at 01:34:23AM -0400, Jim Conner wrote: > > Very cool!! I knew it was something simple but didn't know exactly what it > was. Thanks!! > > - Jim > > > At 02:40 PM 4/7/00 -0700, Gorman, John wrote: > >whois -h whois.networksolutions.com [ host ] > > > >The easiest thing is to make up a shell script and call it > > > >whois.sh ( whois -h whois.networksolutions.com $1 ) > > > >John > > > >|-----Original Message----- > >|From: Jim C [mailto:jconner@enterit.com] > >|Sent: Friday, April 07, 2000 2:33 PM > >|To: Alexey L. Tcharykov; freebsd-questions@FreeBSD.ORG > >|Subject: Re: whois question > >| > >| > >|Dunno the answer to this but I have a question to piggy back this one: > >| > >|The new whois format...anyone know how to get the old format > >|instead of the > >|new format via the whois command...I hate this new format. > >| > >|- Jim > >| > >|At 00.53 08.04.00 +0400, Alexey L. Tcharykov wrote: > >|>Hello there! > >|> > >|>My question is: > >|> > >|>I have FreeBSD 2.2.8-RELEASE installed on my server. > >|> > >|>I discovered that whois utility from FreeBSD 3.4-RELEASE+ has > >|a feature I > >|>need so much. > >|> > >|>Can I install 3.4+ whois on my 2.2.8 without upgrading the > >|whole system? > >|>Where can I get it separately? > >|> > >|>Thanks a lot for your support. > >|> > >|>Alexey. > >|> > >|> > >|> > >|> > >|>To Unsubscribe: send mail to majordomo@FreeBSD.org > >|>with "unsubscribe freebsd-questions" in the body of the message > >| > >| > >| > >|To Unsubscribe: send mail to majordomo@FreeBSD.org > >|with "unsubscribe freebsd-questions" in the body of the message > >| > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Today's errors, in contrast: > Windows - "Invalid page fault in module kernel32.dll at 0032:A16F2935" > UNIX - "segmentation fault - core dumped" > Humanous Beingsus - "OOPS, I've fallen and I can't get up" > ------------------------------- > Jim Conner > NOTJames > jconner@enterit.com > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Paul Chvostek <paul@it.ca> Operations / Development / Abuse / Whatever vox: +1 416 598 0000 IT Canada http://www.it.ca/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000409142259.A36746>