So anyways, I\'m working on a small PHP website/script, and as one of the features I\'d like to be able to run a WHOIS lookup on the current domain the PHP script is running
Try the Function Which is available in github gist
github
gist
https://gist.github.com/AManojKiran/4b034659e85fa02308ad9bdcdd05629c
For the full list of TLDs/Whois servers see http://www.iana.org/domains/root/db/ and http://www.whois365.com/en/listtld/
TLDs/Whois servers