[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] When you migrate... isn't DNS supposed to migrate too?



<FJEJJONIMDOONFPOJNFFMEAPCPAA.john@xxxxxxxxxxxxx> wrote:
> thanks for the answer, jeff.  I see how what you would suggest would work
> but I had to renumber all IP's so I guess I'm stuck with manual entry for
> 648 sites.  :(   Thanks!


You could also use perl to do this. 
Lets say that you you are moving from 10.10.10.0 network to a 192.168.20.0
network.  
perl -pi -e 's#10\.10\.10#192\.168\.20#g' /etc/named/records.

or you could use this with a wrapper to re-map indivual ips
perl -pi -e 's#10\.10\.10\.200#192\.168\.20\.10#' /etc/named/records

Jeff-