tags:

views:

110

answers:

2

Hi. Im looking to call a simple http service from my Java servlet to check the price an availability of domain names from my site.

Basically, i want to do something like this checker here... http://www.123-reg.co.uk/

I know i can just to a get on the target url and parse the response, but I'm looking for an exising service this just gives me an XML response. Even a webserivce if available.

Has anyone come across any companies that expose their domain checkers as a service?

Thanks.

+1  A: 

What you're looking for is a whois lookup. Here is a GNU licensed Java whois package. And here is another Java whois package.

Asaph
Cheers mate! One thing.. I would like to be able to quote a price for registering the domain. Do you know if this would be possbile.
That depends on what registrar you choose. The price can vary. What registrar will you be purchasing domain names through?
Asaph
different registrars will likely give you different prices. You'll have to pick who you want to buy it through and ask them.
rmeador
To be honest, I'd purchase through the first one that offers an easy http service that I can call :-)I usually use 123reg but the price seems to be similar over different providers anyway.
Basically im trying to put a little box on the screen that lets users check the availability of a domain name and the price, then order it. After that I would go and buy it for them from the company and setup the dns servers as needed etc.
A: 

you gotta have a try with domainr and its api.

nil