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!

DNS: Adding Multiple Subdomains to hostname

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

  1. MojoCreations

    MojoCreations Active Member

    Joined:
    Feb 14, 2012
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    56
    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:
    30
    Likes Received:
    0
    Trophy Points:
    56
    cPanel Access Level:
    Root Administrator
    Anyone out there that can help??
     
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,423
    Likes Received:
    1,957
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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