1.I just want to know if it is possible to have a domain

Hi,

1.I just want to know if it is possible to have a domain availability checker in my main site?

2. it may work like, User enters the domain name>if available>clicks the register link(Which is an affiliate link of my choice)

If not available>throws error"already registered"

Thanks