Domain Availability

17 January 2012

Checking Domain Availability

A few client's were looking to expand their internet empire, hoping to automate a process to check domain availability. I put together the below script which would do just that for them. It uses the whois servers from who.is, and makes a simple cURL GET request. The response is then parsed for the text, "appears to be available", and the response is returned. Use as you see fit. The below is now being released under GPLv2. It is a quick, but not fool-proof way of using out-of-date whois servers.