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.

Bulk edit DNS zones

Discussion in 'Bind / DNS / Nameserver Issues' started by vanessafan, May 27, 2011.

  1. vanessafan

    vanessafan Member

    Joined:
    May 26, 2011
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    I need to update the DNS zones on a few hundred domains
    The IP address
    How can I do this in bulk?
    I am migrating a lot of servers and each has a few hundred domains on them
    Thanks!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    I suggest using the IP Migration Wizard, found at:

    "WHM >> IP Functions >> IP Migration Wizard"

    It will update your server’s configuration files, including DNS Zones. Full documentation on this feature can be found at:

    IP Migration Wizard

    Thank you.
     
  3. ravindradhainwa

    ravindradhainwa Well-Known Member

    Joined:
    Jan 24, 2008
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    You can use replace command to change IP in DNS Zone files.

    root@server [~]# cd /var/named/
    root@server [~]# replace "Old IP" "New IP" -- *.db
    root@server [~]# service named restart

    With the help of above mentioned command, you can change the IPs in DNS Zone in a bulk and to make them effective, you need to restart the named service.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    The replace command can be useful, but please note you will need to manually update the serials in the zones afterward. The "IP Migration Wizard" will complete this for you automatically.

    Thank you.
     
Loading...

Share This Page