Free script with a Creative Commons License and requested linkback to dailydomain.co.uk
Ive been looking how to including a whois lookup for use users directly from on my sites. Couldnt find a script to do what I wanted, how I wanted so created my own. This was first created for the UK market, so included are options which allow access to whois2 (if you have access).
I have tried to write the script in such a way other nic servers can be added easily but already covers :-
co.uk org.uk me.uk com net org info biz
working but commented out are :-
at de cc it ws
The script should work as is from download. To use enter the domain in the format xxxxx.com and select none or xxxxx and select which hlq from the drop down box. This was made this way to allow simple scripting of whois lookup. If you change form from POST to GET (LINE10) you can automate looks from external sources.
If you require whois2 the following lines need to be edited.
LINE 57
[code]
$string = socket_whois('x.x.x.x',$nicsrv,$dom); // update x.x.x.x with your host IP if your using whois2
[/code]
LINES 102 - 104
[code]
array('co.uk','whois.nic.uk','43'), // 43 standard, 1043 if your host IP has access to whois2
array('org.uk','whois.nic.uk','43'), // 43 standard, 1043 if your host IP has access to whois2
array('me.uk','whois.nic.uk','43'), // 43 standard, 1043 if your host IP has access to whois2
[/code]
Demo
http://www.dailydomain.co.uk/project/whoisx/whoisx_v1_0.php
Download
http://www.dailydomain.co.uk/project/whoisx/whoisx_v1_0.zip