Automated adding of co-domains

Discussion in 'General' started by syndicut, Nov 29, 2007.

  1. syndicut

    syndicut New Member


    I've just installed ispconfig and i have about 1000 domains to add. All of them should be aliases, so i want them to be added as a co-domain to one "main" domain. Any ideas how i can automate this process? I installed remote framework, but as i read on forum editing of co-domains is not implemented yet.

    I tried to figure how addition of co-domain works, but didn't succeed.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    There is currently no automated way to add co-domains. If you want to add them in the database, I recommend to add one co-domain trough the interface and then have a look at the records that get added in the tables isp_isp_domain, isp_nodes and isp_dep


    isp_isp_domain.doc_id = isp_nodes.doc_id
    isp_isp_domain.doctype_id = isp_nodes.doctype_id

    isp_dep.child_doc_id = isp_isp_domain.doc_id
    isp_dep.child_doctype_id = isp_isp_domain.doctype_id
    isp_dep.child_tree_id = isp_nodes.tree_id (of the record defined above)
  3. syndicut

    syndicut New Member

    ok, and what else happens when i add co-domain? a zone to dns server is added and ServerAlias to Vhosts_ispconfig.conf, am i right? If so, I would be able to right script for this.

Share This Page