Submitted by RedKnot on Thu, 07/30/2009 - 08:44
Hi,
We changed one of our slave name servers to a new server (and ip) the old server doesn't exist anymore. I removed the old server from Webmin -> Webmin Severs Index and added the new server. I did the same procedure for Servers -> BIND DNS server -> Cluster Slave Server.
The domainname of the slave remained the same (ns2.youngguns.nl). The IP is changed from 82.94.241.190 to 195.240.3.7.
When I check /etc/named.conf I see some zones with the new ip for also-notify and allow-transfer and some zones with the old ip. How can I change the ip for al zones?
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Thu, 07/30/2009 - 13:23 Comment #1
There's no automatic way to make this change, sorry - but you can just edit /etc/named.conf and do a search-and-replace from the old IP to the new, then restart BIND.
Does that work for you?
Submitted by RedKnot on Thu, 07/30/2009 - 16:42 Comment #2
Oke, that'll do! I was just wondering if I must an automated way to do this.
Submitted by JamieCameron on Thu, 07/30/2009 - 18:17 Comment #3
Sorry, but it doesn't happen often enough for us to automate it yet ..
Submitted by Issues on Thu, 08/13/2009 - 21:19 Comment #4
Automatically closed -- issue fixed for 2 weeks with no activity.
Submitted by sgrayban on Fri, 08/14/2009 - 05:39 Comment #5
bookmark and read http://www.brunolinux.com/02-The_Terminal/Find_and%20Replace_with_Sed.html
It comes in very handy !!