Eigenlijk moeten het 2 afzonderlijke scripts zijn.
1 whoisdomain info
1 whois ip info, omdat beide andere informatie geven.
de info voor domain:
@@DOMAIN@@
Website title:
Created:
Whois server:
IP address:
IP Location
Blacklist status
Status:
Domain Nameservers:
Server Type:
Blacklist status:
@@IP@@
IP Location:
Blacklist Status:
Resolve host:
inetnum:
netname:
descr:
country:
role:
address: (all of them)
source:
route:
mnt-by:
on $*:text:/^[!@.]whois(ip|domain)/Si:#: {
set %whois.name $2-
sockopen whois whois.domaintools.com
}
on *:sockopen:whois: {
sockwrite -nt $sockname GET / $+ %whois.name HTTP/1.1
sockwrite -nt $sockname Host: whois.domaintools.com
sockwrite -nt $sockname $crlf
}
on *:sockread:whois: {
if (!$sockerr) {
var %sockreader
sockread %sockreader
if ....................