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.

DNS: Adding Multiple Subdomains to hostname

Discussion in 'Bind / DNS / Nameserver Issues' started by MojoCreations, Mar 8, 2012.

  1. MojoCreations

    MojoCreations Active Member

    Joined:
    Feb 14, 2012
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I need to add around 100 subdomains to a hostname and would like to know the fastest way of doing that. I don't mind running command line if i need to. Thanks
     
  2. MojoCreations

    MojoCreations Active Member

    Joined:
    Feb 14, 2012
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Anyone out there that can help??
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    If you only require the DNS Zone itself, you could utilize the following script:
    Code:
    # /scripts/add_dns
    
    Control Flags:
    --domain    (required)
        Domain for zone creation
    
    --ip        (optional)
        IP for zone creation. Defaults to server's main shared IP
    
    --reseller  (optional)
        Set reseller (zone administrator) to utilize name server IPs assigned via WHM to the reseller.
        Defaults to using main server name server IPs
    You would need to develop a custom script to loop this command for a list of domain names.

    Thank you.
     
Loading...

Share This Page