-----Original Message----- From: Ryan McCain [mailto:Ryan.McCain@dss.state.la.us] Sent: Wednesday, November 15, 2006 5:12 PM To: suse-linux-e@suse.com Subject: [opensuse] Migrating to a new domain (BIND/DNS)
I currently have a dns server that resolves about 500 hosts in domain1.com. I need to now work towards migrating all current records to domain2.com.
Over the next year or so, i will also need to keep these domains in sync. ie: serverA.domain1.com has the same ip address as serverA.domain2.com.
What is the best way to handle this? DNAME records??
Thanks, Ryan
Shouldn't be too bad if you use the shorthand style for hosts, and a simple sed or so for the rest... That is, set your host records up as Host1 IN A aaa.bbb.ccc.1 Host2 IN A aaa.bbb.ccc.2 And so on. And then do `cp domain1.com.zone domain2.com.zone; sed -i "s/domain1\.com/domain2.com/g" domain2.com.zone` It's not really automated, and it does require a restart of the server to pick up the changes to domain2.com, but it's quick and easy when needed... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org