zeromtrx

Member
Jun 7, 2003
16
0
151
I will be moving clients from an old server to a new server this week and I want to update all the DNS records after I move the data so the customers will "see" the new server in 4 hours instead of 24-72 hours. Is there an easy way to do this? I thought I could just search and replace the bind config but alas all the zone entries are separate files. I will do them all by hand if I must but certainly there must be an easier way to accomplish this.

Thanks in advance!
 

ciphervendor

Well-Known Member
Aug 26, 2002
1,050
0
166
Be sure to make backups & also be sure that the last octet in your customers' IPs remain the same.

Once the above is completed, you can use something like this to modify all zone files:
Code:
replace 10.10.10 20.20.20 -- /var/named/namedb/*
Note that 10.10.10 is the IP your clients currently have & 20.20.20 is the IP they should have. Again, the last octet of their IP address should remain the same between allocations in order to facilitate this renumbering process.
 

zeromtrx

Member
Jun 7, 2003
16
0
151
Actually all these accounts are sharing one IP so I won't have to bother with trying to match up old IPs to new IPs.

Thanks for the help!