I'm planning to migrate a virtual machine from one data-center to another. The VM has a public IP address that will change on the new data-center to another public IP address.
I'm planning to change the DNS entry for the VM, so it will reflect the new IP, but I want to keep the machine accessible while the DNS propagates the changes.
Is there a way I can configure some route or iptables rule so that any packet destined to my 1st (old) IP address gets forward to my 2nd (new) IP address?
That way users width cached DNS entry for 1st IP would still be able to access the VM.
After a while, (1 or two days) I could safely remove the routing rule.
I don't know much about IP tables and even less about routing. I was unable to google even a hint on this, except for some academic papers...