whois: more countries
[rsc] --rwxrwxr-x M 224650 glenda sys 1637 Apr 2 08:05 rc/bin/iwhois
/n/sourcesdump/2006/0402/plan9/rc/bin/iwhois:26,31 -
/n/sourcesdump/2006/0403/plan9/rc/bin/iwhois:26,32
fn boilerplate { grep -v '^%%' $* }
case *.de
machine=whois.denic.de
+ person='-T dn '^$person
fn boilerplate { cat $* }
case *.dk
machine=whois.dk-hostmaster.dk
/n/sourcesdump/2006/0402/plan9/rc/bin/iwhois:36,43 -
/n/sourcesdump/2006/0403/plan9/rc/bin/iwhois:37,55
case *.es
echo no known whois server for .es
exit
+ case *.jp
+ machine=whois.jprs.jp
+ person=$person^'/e'
+ fn boilerplate { cat $* }
+ case *.in
+ machine=whois.inregistry.net
+ fn boilerplate { cat $* }
+ case *.cn
+ machine=whois.cnnic.net.cn
+ fn boilerplate { cat $* }
case *
machine=whois.internic.net # alternate: whois.networksolutions.com
+ fn boilerplate { cat $* }
}
file=/tmp/iwhois$pid
fn sigexit {
|