D. Strout
Resident IPv6 Proponent
As part of my domain and server management system, I'm trying to wrap my head around my options for WHOIS. All the APIs cost money, which would be fine if this was just for me, but if I distribute it I don't think people will want to sign up for accounts with them. Right now I'm trying to work with phpwhois, but there are a lot of extensions it doesn't support. (I think) the new gTLDs all use a standardized format, but extensions like .im and .io just aren't coming through right. So does anyone know if a good library or free API that I can use for this?
Alternatively, I could ditch WHOIS entirely, or at least the parsing thereof. Right now, WHOIS is used in two ways. First, there are just plain lookups, where it's perfectly fine to use raw output from phpwhois. The other, however, is for adding a domain to the system. With this, I used the parsed output to automatically retrieve creation/expiration dates and registrar info. This isn't vital, and in fact that info could easily be made optional. Still, I think it's a nice feature and would like to keep it if there is an easy way to retrieve this info.
Alternatively, I could ditch WHOIS entirely, or at least the parsing thereof. Right now, WHOIS is used in two ways. First, there are just plain lookups, where it's perfectly fine to use raw output from phpwhois. The other, however, is for adding a domain to the system. With this, I used the parsed output to automatically retrieve creation/expiration dates and registrar info. This isn't vital, and in fact that info could easily be made optional. Still, I think it's a nice feature and would like to keep it if there is an easy way to retrieve this info.