Hosting software on my server that allows users to point their domain to using CNAME

I am creating software that allows users to either have their own custom subdomain (e.g: or point a CNAME from their own domain to my website address (e.g:

I’ve contacted my host about this and the first subdomain option is cool. They will set-up a wilcard subdomain script for me…

The CNAME they said I can’t do automatically. I will have to manually go into my account and add the domain to point to my website address otherwise apache wont now where to look for the files.

Is this common practice or is there a way around this that is automated?


Dynamically configured mass virtual hosting tells you all about it!