Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Automatic Subdomains and Parked Domains

Discussion in 'General Discussion' started by arharp, Sep 4, 2008.

  1. arharp

    arharp Registered

    Sep 4, 2008
    Likes Received:
    Trophy Points:
    I will soon be creating a web app where users can sign up and we'll host a page for them. The pages will all be generic templates that they can choose from. During the sign up process they can choose whether they want a subdomain of our main domain or they can register their own domain (through our site). I know we can have the nameservers set to our server automatically upon registration. But I'm wondering how we would go about adding the appropriate records on our server to basically make all these new domains and subdomains mirrors ("parked domains") of our main domain. Then in the scripting I can go in and figure out what domain the site is being accessed through and display the corresponding user data.

    Can this DNS be setup completely automatically? I imagine I could write a script to add the records to some nameserver files, restart the service and be good to go. I just don't know where I would find this stuff. Any help would be greatly appreciated.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice