[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] When you migrate... isn't DNS supposed to migrate too?
- Subject: [cobalt-users] When you migrate... isn't DNS supposed to migrate too?
- From: "john" <john@xxxxxxxxxxxxx>
- Date: Fri Jan 12 17:17:01 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Hmmm...
If I simply use a text editor and delete all the lines out of
/etc/named/records that contain old IP numbers, what happens to the pri. and
sec. files also in the directory? Do they end up rewriting the
/etc/named/records file later or are they just excess files that can be
deleted later when I have time?
Note - during the migration, some domains were moved to a new server so this
question only applies to domains no longer housed on the server.
..john..
========
> 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-