Hi,
I've been supplying free names for a few years now. All you need is
Mydns it uses mysql and I am assuming you are running lamp. The software will replace the default bind and pulls the records (A,CNAME,MX,NS) etc. from the db.
It also includes a simple php program to manage the records (add,delete and modify).
Hope this helps.