deep_whois = false; // To use special whois servers (see README) //$whois->UseServer('uk','whois.nic.uk:1043?{hname} {ip} {query}'); //$whois->UseServer('au','whois-check.ausregistry.net.au'); // uncomment the following line to add support for non ICANN tld's // $whois->non_icann = true; $result = $whois->Lookup($query); echo "
Results for $query :

"; switch ($output) { case 'object': if ($whois->Query['status'] < 0) { echo implode($whois->Query['errstr'],"\n

"); } else { $utils = new utils; echo $utils->showObject($result); } break; case 'nice': if (!empty($result['rawdata'])) { $utils = new utils; echo $utils->showHTML($result); } else { echo implode($whois->Query['errstr'],"\n

"); } break; default: if(!empty($result['rawdata'])) { echo '
'.implode($result['rawdata'],"\n").'
'; } else { echo implode($whois->Query['errstr'],"\n

"); } } echo '
'; } ?>
Enter any domain name, ip address or AS handle you would like to query whois for



Show me regular output

Show me HTMLized output

Show me the returned PHP object