#1 (permalink)  
Old 07-05-2007, 09:32 AM
Registered User
 
Join Date: Jun 2007
Posts: 15
ruber is on a distinguished road
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-05-2007, 11:34 AM
Spiral's Avatar
Registered User
 
Join Date: Jun 2005
Location: Area 51
Posts: 1,501
Spiral is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-06-2007, 10:12 AM
zye zye is offline
Registered User
 
Join Date: Dec 2002
Posts: 44
zye
perl -pi -e 's/old.ip/new.ip/g' *.db

cheers
zye
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 04:55 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc