Question

I'm in the middle of updating my DNS setup to use all CNAMEs instead of A records, because I need support for VIP swaps between Staging and Production. I can't use A records for this because that puts a dependency on a VIP that will be changing for each deployment.

Previously, I was using A records because of wildcard AND base domain support - I could map mydomain.com and all subdomains to the VIP and everything just worked.

CNAMEs make this a bit more complicated, but not impossible.

My question(s) is - with VIP swaps, the site url (mysite.cloudapp.net) needs to change from pointing to the original VIP, to the new VIP, right? If so, doesn't DNS need to propagate anyways? What happens to all of the cached DNS records that have mysite.cloudapp.net pointing to the original VIP? Isn't there still a delayed propagation, and a chance that requests will get forwarded to the old VIP while this propagation occurs?

Was it helpful?

Solution

A VIP swap is an internal change to Azure's routers/load balancers, not an external DNS change. They're just routing traffic to go from one internal [set of] server[s] to another instead. Therefore the DNS info for mysite.cloudapp.net doesn't change at all. Therefore the change for people accessing via the IP bound to mysite.cloudapp.net (and CNAME'd by you) will see the change as soon as the VIP swap is complete.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top