Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Nov 2007
    Posts
    865

    Arrow Bulk utility to Add "A" Entry

    I want to create "A" entry for 450 subdomains is there any utility/script to create "A" entry for all subdomains at one go, server is same only subdomains will be different ?

    subdomain1 IN A 123.2.33.45.
    subdomain2 IN A 123.2.33.46.

  2. #2
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,050

    Default

    Copy sub-domain names in a single file (one name per line) for example, create a file /root/subdomain and add sub-domains

    abc
    xyz
    qaz
    wsx

    Save the file and execute the following script

    for i in `cat /root/subdomains`; do echo "$i IN A xx.xx.xx.xx" >> /var/named/yourdomain.tld.db; done;
    where,
    xx.xx.xx.xx is the IP you want to point the sub-domains to.
    yourdomain.tld is the domain on which you want to set the sub-domains.

    Don't forget to restart the 'named' service.

Similar Threads & Tags
Similar threads

  1. Add "delete list" button in WHM on "Reset a Mailman Password" page
    By cPanelMary in forum Feature Requests for cPanel/WHM
    Replies: 0
    Last Post: 01-08-2011, 12:19 AM
  2. Bulk utility to Add DNS zone
    By crazyaboutlinux in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-20-2010, 08:05 AM
  3. "Add an A entry to my hostname" Broke My Server. Help!
    By RTCruiser in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-24-2006, 08:49 PM
  4. Can I manually add the "sent" and "drafts" folders to squirrelmail.
    By Fractal in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-30-2004, 03:17 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube