Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jun 2007
    Posts
    19

    Default Change multiple DNS zones

    I had transfered some accounts from another server.
    When it finished, the DNS zones were "imported" from the old server, including its IPs.

    Is any way to change the values of DNS zones of all domains?

  2. #2
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Best way it to login via SSH and go to the /var/named folder and then
    use "replace" commands to change what you need to change.

    IE: replace "111.111.111.111" "222.222.222.222" -- *.db

  3. #3
    zye
    zye is offline
    Member
    Join Date
    Dec 2002
    Posts
    47

    Default

    perl -pi -e 's/old.ip/new.ip/g' *.db

    cheers
    zye

Similar Threads & Tags
Similar threads

  1. Need a simple way to change MX records on all DNS zones
    By Hostbox.be in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-28-2009, 11:08 AM
  2. Need a simple way to change MX records on all dns zones
    By Pyro411 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-28-2009, 11:00 AM
  3. Change TTL on multiple DNS Zones?
    By HostIt in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-08-2008, 09:50 AM
  4. mass change on all dns zones.
    By IRCBrasil in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 07-14-2006, 11:03 AM
  5. Possible to edit multiple DNS zones
    By andrewm in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 11-23-2005, 12:21 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube