Question

after migrating to another location, the A record of both the droplets point to same domain name. Which gets priority?

  • Posted February 4, 2017
  • DNS

after migrating to another location, the A record of both the droplets point to same domain name (while the IP of the new site is under propagation). Which gets priority after propagation is complete?

Subscribe
Share

Both the droplets have the same name servers of digitalocean – so the domain arrives at digitalocean. After that this get directed to which droplet? Old, new? Neither?

I have kept both the droplets powered on, as I do not want the site to be down.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

@asnair

When it comes to migration, the ideal scenario would be that you migrate the data from one Droplet to another and then change your DNS.

You don’t want to setup two A entries for the same domain that point to two different IP’s – you want to swap the current IP with the new and allow the other to resolve.

You can, of course, shutdown the old Droplet, though that doesn’t force the DNS to resolve faster. It will, however, eliminate the potential for visitors that come to your website from potentially hitting the old server.

In most cases, once your DNS is setup (i.e. initial setup of name servers for your domain), changes such as new IP’s and new entries resolve rather quickly.

Should I have to power off the old droplet while the new ip is propagating (and reluctantly accept the site downtime in the meanwhile)?

Do you mean the PTR record? Because that’s not what decides where a domain goes.