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!

Bulk edit DNS zones

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

  1. vanessafan

    vanessafan Member

    Joined:
    May 26, 2011
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    51
    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ravindradhainwa

    ravindradhainwa Well-Known Member

    Joined:
    Jan 24, 2008
    Messages:
    45
    Likes Received:
    1
    Trophy Points:
    56
    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    postcd likes this.
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