Thu 22 Oct |
|
When I was installing the new Whois Lookup Module I noticed a real lack of documentation on how to discover the correct server response from the various Whois servers . I set out below how to do this. I'm very happy with the hacked around Max's Whois script but noticed a lot of the Server Responses are out of date. These are the response that the Whois Server returns when no entry for the domain name is found. This varies from server to server, rumour has it they don't like automated enquiries and they change the response to break the lookup scripts. Firstly you need to find the responsible Whois server for your chosen Top Level Domain, .com, .eu etc. I've made an Excel sheet that is hopefully up to date. Included is the Server Response for no domain found. You can download it here --> Whois Lookup Servers & Responses This file will of course become out of date as they change the responses so you can find out the correct response by doing a command line lookup and see the response. download this small executable "Whois v1.01" from www.technet.microsoft.com and unzip it in a folder. Open a command window in that folder or change to it and type - whois nosuchdomainname.tld whois.server - and hit Enter You will receive the response for no domain, remember it is case dependant as well. You can enter this in your script as below. $this->serverList[7]['top'] = 'eu'; $this->serverList[7]['server'] = 'whois.eu'; $this->serverList[7]['response'] = 'AVAILABLE'; $this->serverList[7]['check'] = false; |
Last Updated on Thursday, 22 October 2009 10:59 |