I am using a script called samswhois at http://whois.samscripts.com/ (its available to download for free on the website).
The script gave me an error saying:
Error - could not open a connection to whois.crsnic.net
I found out by looking at the code in the samswhois.class.php file that it uses port 43 to make a connection to the whois.crsnic.net server.
I have hosting through Godaddy which blocks port 43 and uses a proxy.
I emailed godaddy support as to how I was to use the proxy.
This is what they sent me.
If using cURL with PHP will need to include the following lines on each script that utilizes cURL functions.
curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);
curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt ($ch, CURLOPT_PROXY, http://64.202.165.130:3128);
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
Outgoing http and https connections for our web hosting will take place via a proxy server. Applications that need to make https connections (port 443) will need to be made "proxy aware". This will require additional coding to varying degrees, depending on the application. The ip address and port of the proxy server in order to correctly modify your code is 64.202.165.130 and connections will be made on port 3128.
I have no idea how or where to implement this into the script.