I am looking to provide DNS hosting to clients and I'd like to use cPanel as the backend, but move DNS management into the client area.

This will require building a full PHP based DNS editor, but I am clueless as to where to start, I have been looking at the api docs etc

I was half expecting there to be some kind of example / script to already be knocking about on the web but yet to find anything.

Is there already something I can use/modify for this and if not how can I go about replicating the cPanel DNS editors in PHP using API?

Thanks,
Dan