Results 1 to 4 of 4

Thread: Bulk utility to Add DNS zone

  1. #1
    Member
    Join Date
    Nov 2007
    Posts
    900

    Arrow Bulk utility to Add DNS zone

    I want to create DNS zone for 450 domains is there any utility/script to create DNS zone for all domains at one go, server is same only domains will be different ?

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Sep 2006
    Location
    Virginia Beach, VA
    Posts
    264
    cPanel/WHM Access Level

    Root Administrator

    Default

    Using the XML API would be your best bet:

    AddDNSZone < AllDocumentation/AutomationIntegration < TWiki

    You'd probably want to list all the zones in a separate file and run a loop for them. I have a base API script that you can easily implement for this if you need it.

  3. #3
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,052

    Default

    Quote Originally Posted by nileshparmar View Post
    I want to create DNS zone for 450 domains is there any utility/script to create DNS zone for all domains at one go, server is same only domains will be different ?
    Already replied to you on WHT but here it is again.

    Copy the list of domains (one domain name on a line) in a file on the server say, /root/domainlist

    and execute the following script

    for i in `cat /root/domainlist`; do /scripts/adddns --domain $i --ip xx.xx.xx.xx; done;
    replace, xx.xx.xx.xx with your server IP.

  4. #4
    Member
    Join Date
    Nov 2007
    Posts
    900

    Arrow

    thanks a ton, it saved our lot of time, I really appriciate your help for this script

Similar Threads

  1. Bulk utility to Add "A" Entry
    By crazyaboutlinux in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 01-23-2010, 08:37 AM
  2. Bulk dns zone ttl editor script
    By Branko in forum cPanel & WHM Discussions
    Replies: 8
    Last Post: 09-24-2008, 07:01 AM
  3. DNS Zone Add -> Not displayed at CPanel Accound / Can't add addon-domain
    By Luerssen in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 08-02-2007, 08:50 PM
  4. Add a DNS Zone
    By ljwhite in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 11-22-2006, 01:40 AM
  5. Add a DNS Zone
    By kiran in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 05-05-2002, 08:17 AM