The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Automatic Subdomains and Parked Domains

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

  1. arharp

    arharp Registered

    Joined:
    Sep 4, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
Loading...

Share This Page