Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Better script' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Better script
Authored by: THEM on Jan 29, '03 12:38:23PM

Here's my quick hack that makes the posted script that much better

echo "Fetching domain's whois server..."
SERVER=`whois $1 | grep -i whois server: | awk '{print $3'}`
if [ $SERVER ]; then
	echo "Querying whois server "$SERVER"..."
	whois -h $SERVER $1
	echo "Querying the default whois server..."
	whois $1

If the server actually uses the default whois server the posted script would fail, mine works around that issue.

[ Reply to This | # ]
Better script Bug
Authored by: leen on Jan 29, '03 02:56:10PM

The better script contains a bug, no quotes around the grep arguments

grep -i whois\ server:

[ Reply to This | # ]