#!/bin/bash # Does a 'whois domain−name' lookup on any of 3 alternate servers: # ripe.net, cw.net, radb.net # Place this script, named 'wh' in /usr/local/bin # Requires symbolic links: # ln −s /usr/local/bin/wh /usr/local/bin/wh−ripe # ln −s /usr/local/bin/wh /usr/local/bin/wh−cw # ln −s /usr/local/bin/wh /usr/local/bin/wh−radb if [ −z "$1" ] then echo "Usage: `basename $0` [domain−name]" exit 65 fi case `basename $0` in # Checks script name and calls proper server "wh" ) whois $1@whois.ripe.net;; "wh−ripe") whois $1@whois.ripe.net;; "wh−radb") whois $1@whois.radb.net;; "wh−cw" ) whois $1@whois.cw.net;; * ) echo "Usage: `basename $0` [domain−name]";; esac exit 0
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)