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
LINES 102 - 104
Demo
http://www.dailydomain.co.uk/project/whoisx/whoisx_v1_0.php
Download
http://www.dailydomain.co.uk/project/whoisx/whoisx_v1_0.zip
A big thanks go to Dale (aZooZA for inernic information) and Chris (aquanuke socket assistance)
Please add your comments
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
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
Demo
http://www.dailydomain.co.uk/project/whoisx/whoisx_v1_0.php
Download
http://www.dailydomain.co.uk/project/whoisx/whoisx_v1_0.zip
A big thanks go to Dale (aZooZA for inernic information) and Chris (aquanuke socket assistance)
Please add your comments
Last edited: