Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Aug 2001 17:50:39 +0200 (CEST)
From:      Leif Neland <leifn@neland.dk>
To:        <freebsd-isp@freebsd.org>
Subject:   script for dk-whois
Message-ID:  <20010802174509.N71435-100000@arnold.neland.dk>

next in thread | raw e-mail | index | archive | help
dk-hostmaster has turned off access to whois-data by whois, and
requires the use of a browser to http://www.dk-hostmaster.dk/dkwhois.shtml

This script provides command-line access:

#/bin/sh
wget -q --referer=http://www.dk-hostmaster.dk/dkwhois.shtml \
--user-agent="opera 2.3" \
"http://www.dk-hostmaster.dk/perl/Whois.pl?query=$*" -O - | \
awk "/<pre>/,/<\/pre>/ {lines++;print}
END {if (lines<5) {print \"Query produced no data\"}}" |grep -v "pre>"

 - - - - -

Could probably be done i perl, but in 5 lines?

Leif



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010802174509.N71435-100000>