Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Mar 2010
    Location
    Qld, Australia
    Posts
    6

    Default Mass Sub Domain Creation

    Apart from the creation of the DNS A record for a subdomain. What else does the create subdomain function do? It must create some additional entry(s) somewhere to allow HTTP access to the subdomain.

    I need to create lots (around 500) of subdomains. I found a thread with the command line entries to update the DNS file and wonder whether I can do the same for the other records that the Cpanel subdomain creation creates. What are they?

    Thanks

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2008
    Location
    PK
    Posts
    443

    Default

    Quote Originally Posted by vnchief View Post
    Apart from the creation of the DNS A record for a subdomain. What else does the create subdomain function do? It must create some additional entry(s) somewhere to allow HTTP access to the subdomain.

    I need to create lots (around 500) of subdomains. I found a thread with the command line entries to update the DNS file and wonder whether I can do the same for the other records that the Cpanel subdomain creation creates. What are they?

    Thanks
    Each subdomain has its record created in /var/cpanel/users/username file and its own metadata file /var/cpanel/userdata/username folder other than the DNS zone record. I am not sure if its a good idea to create bulk subdomains via a shell script and whether you can do it without missing or messing something, rather creating subdomains via cPanel's API would be a much better idea.
    More about cPanel's API here
    1 solution works for all problems. Trying harder!
    HostMasterTips - Understanding Tech Support

  3. #3
    Member
    Join Date
    Mar 2010
    Location
    Qld, Australia
    Posts
    6

    Default

    API, that's a good idea. My thoughts hadn't reached that far but I can understand why you would be suggesting it.

    Thanks

Similar Threads & Tags
Similar threads

  1. Mass account creation?
    By FarSerenade in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 04-27-2008, 11:36 AM
  2. mass account creation with wwwacct gives error Unable to find an ip address
    By madan.cpanelnet in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-06-2007, 02:23 PM
  3. mass account creation script - anyone?
    By Harryhood in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 08-14-2006, 11:39 AM
  4. Mass FTP Account Creation/Management
    By mreish in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-13-2005, 10:52 PM
  5. Mass Subdomain Setup/Creation
    By Freexxxmen in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-05-2003, 03:42 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube